Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
python-2.7
- Page 1
Re: Installing programs from Github
Programming
Software Development
6 Days Ago
by rproffitt
>
Python
is an interpreted language, which means the source code of a
Python
program is converted into bytecode that is then executed by the
Python
virtual machine. As such the .exe would be the
Python
virtual machine and not your
Python
apps.
How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
6 Days Ago
by Hanginium65
…the extension .tar.bz2. I’ve included the
Python
script and the errors I got after running it.… solving this issue. I’m a beginner in
Python
. from keystoneauth1 import session from keystoneauth1.identity import … is the error I got after running the script.
Python
Traceback (most recent call last): File "/opt/…
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
6 Days Ago
by Salem
… is file 1 $ cat foo_2.txt This is file
2
This is file two This is file too # Three…tar.gz: gzip compressed data, from Unix, original size modulo
2
^32 10240 foo.tar: POSIX tar archive (GNU) # … it is actually storing a compressed version. The tarfile
python
library does know about tar files, and gives you …
Re: Installing programs from Github
Programming
Software Development
6 Days Ago
by Reverend Jim
… as native controls for the platform. There is also a
python
package called pyinstaller which you can use to wrap a…
python
application as an executable (.exe). I find ths useful when …, for example, to hmviewer.exe (home movie viewer) rather than
python
.exe, which I would have to do wthout running it…
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
6 Days Ago
by usmanmalik57
…convert documents to numeric values) and the
Python
[LangChain](https://
python
.langchain.com/docs/get_started/introduction) library as …in an environment variable and retrieve it in your
Python
application via the following script. ``` openai_key = …containing the knowledge base you want to search.
2
. Based on the user query, use similarity …
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
1 Day Ago
by Hanginium65
Good day, Salem. My apologies for taking so long to reply to your suggestion. I refactored my code to read the contents of the tar.bz2 file and then pass them as a file-like object to the 'put_object' and also to change the content type for the file transfer to "application/octet-stream". The first was sent through to object storage …
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
1 Day Ago
by Salem
I don't understand why you need to extract all the files from the compressed `tar.bz2` just to upload to a backup. Also, line 69 is now meaningless having just posted only a snippet of the code. Before the error, what was the last `logger.info` message?
Installing programs from Github
Programming
Software Development
6 Days Ago
by Audun
Hi I downloaded Tkinter Designer, but there´s no exe there. I´ve used Thonny as a "compiler" for running scripts, and I used it to "make" a a simple program, but I don´t know how to save as an exe, and I don´t know how I would put these files into Thonny. Am I even using the right program ?
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
3 Days Ago
by usmanmalik57
… is at the same height as indoor volleyball (
2
.24m for women and
2
.43m for men). The game is contested by…
Re: How Do I address ERROR: access violation writing 0x0000000000005140,
Programming
Web Development
3 Weeks Ago
by rproffitt
Python
shouldn't create such an error. Reference https://www.reddit.… was mine I'd place a logging command in my
python
script at each step so I could nail down which… code threw the error. Tutorial on that at https://docs.
python
.org/3/howto/logging.html
7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM
Programming
Computer Science
2 Weeks Ago
by usmanmalik57
…static.daniweb.com/attachments/4/dde6bac6ebb29a1e02dcb63ac3f000c1.png) ##
2
. Text Summarization with Mistral 7b Let's … following script. ``` input_text = "Write a
Python
fuction to add two numbers" response = generate_response… again ask Mistral for the solutions. ##
7
. Named Entity Recognition Another common task you …
ABC for Github-programs and Python
Programming
Software Development
1 Week Ago
by Audun
… I downloaded a bunch of
Python
-tools. When I run this command in "
Python
3.12", which looks… syntax error. "To create a virtual environment,
Python
supplies a built in venv module which provides the basic…folder you have selected in your terminal / command line:
python
-m venv openai-env" The instructions said nothing …
Re: ABC for Github-programs and Python
Programming
Software Development
1 Week Ago
by Reverend Jim
… and do D:\>cd apps D:\apps>
python
-m venv MyVirtual If I install any packages in… done the D:\apps\MyVirtual folder contains a pile of
python
files (executables, packages, etc. You activate the virtual …really just play with environment variables so that all required
python
stuff comes from MyVirtual. Any packages you install in…
Re: ABC for Github-programs and Python
Programming
Software Development
1 Week Ago
by Reverend Jim
I have developed a number of GUI applications in
python
. I found that the wxpython package was far better than tkinter. wxpython is based on wxwidgets which is essentially windows controls. Because wxwidgets are compiled for each major system, controls rendered by wxpython look like the native controls for whatever system is hosting.
A module that comes with Python, doesn´t register?
Programming
Web Development
1 Week Ago
by Audun
Hi Title: A module that comes with
Python
, doesn´t register. This is the error message: %Run 'open … double-checked to see if I had installed it, and ...
Python
3.12. Its there. This is the guide I´m… trying to get through: https://finnstats.com/2024/01/17/
python
-for-image-based-data-mining/ It says its supposed to…
Re: A module that comes with Python, doesn´t register?
Programming
Web Development
1 Week Ago
by Reverend Jim
I tried installing
python
3.12 and had the same problem. I …wxpython). I was able to install the individual packages under
python
3.10. I know that the "next to… package was not given and is pip install opencv-
python
The only pip command that was given was for … So my suggestion is to punt the 3.12
python
and install the 3.11x.
Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace
Programming
Computer Science
4 Weeks Ago
by usmanmalik57
… containing external knowledge into a vector database.
2
. Convert the input query into corresponding vector …dataset into chunks using the [Pythhon LangChain](https://
python
.langchain.com/docs/get_started/introduction) module. Subsequently…weights for the `gemma-2b-it` model, a
2
billion parameters instruction variant of Gemma. ``` model_name …
How Do I address ERROR: access violation writing 0x0000000000005140,
Programming
Web Development
3 Weeks Ago
by A_957
…!? I am attempting to create an interactive web application In
Python
Flask where users can input text and receive responses generated… using a model from gpt4all. The application uses Flask, a
Python
web framework, for the backend, and jQuery for the frontend…
Re: How Do I address ERROR: access violation writing 0x0000000000005140,
Programming
Web Development
2 Weeks Ago
by Dani
I don't have any
python
experience, sadly, but I am super awesome at jQuery. Once you solve this server-side problem at hand, if you find yourself with the jQ side of things not working, please don't hesitate to post.
Re: i don´t understand this syntax error when using OpenCV
Programming
Databases
1 Week Ago
by Reverend Jim
What happens if you open a
python
shell and just type "import cv2"? As I said in your other thread, the problem might be with
python
3.12. It imports ok under 3.10.
Re: i don´t understand this syntax error when using OpenCV
Programming
Databases
1 Week Ago
by Audun
…: (unicode error) 'unicodeescape' codec can't decode bytes in position
2
-3: truncated \UXXXXXXXX escape >>> Then I did… trying to get through: https://finnstats.com/2024/01/17/
python
-for-image-based-data-mining/
Re: i don´t understand this syntax error when using OpenCV
Programming
Databases
1 Week Ago
by Audun
… in the "CMD" that opens when I press
Python
3.12, and what happened was, it just said nothing…
AI-powered Code Reviews: The Future of Collaborative Development
Programming
3 Weeks Ago
by SEO_935
AI-powered code reviews are bringing about a revolution in the way developers collaborate, enabling more efficient, accurate, and thorough evaluations of code prior to its integration into the central project repository. This transformation is made possible by leveraging machine learning and artificial intelligence to automate and enhance different…
Re: Applying PySide's QAbstractTableModel
Programming
Software Development
3 Weeks Ago
by Mark_94
Even although this topic is 11 years old (in 2024), it's still very helpfulby showing how to properly program in Python3. I've readily translated it to PySide6 and it works fine except for one tiny prob: sorting the MP column with "TypeError: '<' not supported between instances of 'str' and 'float'". I'm not sure how to fix it.
Claude 3 Opus Vs. Google Gemini Vs. GPT-4 for Zero-Shot Text Classification
Programming
Computer Science
1 Week Ago
by usmanmalik57
On March 4, 2024, [Anthropic](https://www.anthropic.com/) launched the [Claude 3 family of large language models](https://www.anthropic.com/news/claude-3-family). Anthropic claimed that its Claude 3 Opus model outperforms GPT-4 on various benchmarks. Intrigued by Anthropic's claim, I performed a simple test to compare the performances of Claude …
Re: what's the correct way of learning programming?
Programming
1 Month Ago
by Dani
Python
works as a first language, but I would also recommend …
Why am getting different syntax errors when running a Python script
Programming
Software Development
1 Month Ago
by Tom_45
…, name, rank) names.append(item) #print(item) name = match[
2
] item = (year, name, rank) names.append(item) #print(item…out of range error on the name = match[
2
], which is the female name in a tuple …is being executed. Obviously, I'm new to
Python
, but have a solid understanding of how object …
Track Faces from Videos with Margins Using Deep Learning in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
…``` ! pip install deepface ! pip install moviepy ``` The script imports the
Python
libraries required to run the code in this article. ``` import…within the new dimensions f['facial_area']['x'] -= delta_w //
2
f['facial_area']['y'] -= delta_h //
2
f['facial_area']['w'] = max_w f['facial_area']['h'] = …
Re: Using ChatGPT to Interact with Third-Party Applications in Python
Programming
Computer Science
1 Month Ago
by catherine_11
Integrating ChatGPT with third-party applications in
Python
involves utilizing [OpenAI's API](http://www.google.com). Begin by obtaining API credentials, then craft
Python
scripts to send requests and process responses. Adhere to OpenAI's documentation for optimal integration, ensuring secure and efficient interaction with the ChatGPT model.
Problem Returning MySQL Stored Procedure results using Python
Programming
Databases
2 Months Ago
by cored0mp
… am having trouble with my transaction processing application implemented in
python
/MySQL. Here is some "working" testing code. import… returning the variable "tacos" into any format that
python
can access. To wit, here is what I'm getting…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC