Skip to main content
0 votes
1 answer
28 views

How to install Old Python 3.6 debugger for vscode

I want to run python script (3.6.9) in vscode. According to this site, My vscode's python Debugger is not support for python debugger,so I try to install old python debugger as in the diagram below, ...
user25718's user avatar
2 votes
2 answers
120 views

Can't install matplotlib in Python 3.6

I've created a Python 3.6 environment in my WSL Ubuntu 22.04 operating system using virtualenv -p python3.6 <my_env>. I need to download some packages, particularly matplotlib, but I'm having ...
Andrea Barone's user avatar
0 votes
1 answer
56 views

Python - Django - Encoding UTF-8

I have a problem with text encoding. The context: I'm working on a django 1.11, python 3.6 app (it started in python 2.7 and django < 1.11 and was upgraded later). I have to use an API that doesn't ...
Barbadoug's user avatar
1 vote
1 answer
50 views

TypeError: 'type' object is not subscriptable with prefetch_related

I’m trying to return a specific queryset using prefetch_related to optimize future queries, but I’m encountering an issue. When I don’t specify a return type, the code works fine. However, I want to ...
Gokhul's user avatar
  • 11
0 votes
1 answer
68 views

Unable to get pie chart to correctly format with matplotlib

my code is this: plt.pie(df['Rainfall'].value_counts().values, labels = df['Rainfall'].value_counts().index, autopct='%1.1f%%') plt.show() df.groupby('Rainfall').mean() ...
John.R's user avatar
  • 3
0 votes
0 answers
119 views

Unrecognized arguments error while converting tensorflow model to onnx by tf2onnx

I'm trying to convert tensorflow model to onnx using tf2onnx. While running the python3 -m tf2onnx.convert --saved-model /dir/tf_model --output /dir/model.onnx --verbose (dir = directory for my ...
chames8217's user avatar
0 votes
0 answers
222 views

What is the correct maxmem parameter value in Python's hashlib.scrypt method?

I am trying to use Python's hashlib.scrypt to hash passwords. According to OWASP the recommended settings for scrypt are ... use scrypt with a minimum CPU/memory cost parameter of (2^17), a minimum ...
John's user avatar
  • 13.8k
0 votes
1 answer
1k views

Run Yolov8 for Python 3.6

Yolov8 is build to run with 3.8 or above and pip install ultralytics is not compatible with prior versions. I have the constraint of using a prior version of Python to execute the code on a ...
Timothee W's user avatar
-2 votes
2 answers
161 views

Can we use python f-string placeholder with index number? [closed]

How can we achieve the following in Python 3.6 using f-string (instead of using format()) method? quantity = 3 itemno = 567 price = 49 myorder = "I want {0} pieces of item number {1} for {2:.2f} ...
nam's user avatar
  • 24k
0 votes
0 answers
25 views

M Chip Mac and pipenv with python 3.6

I have a project that requires Python 3.6 and uses pipenv, I have recently got a new machine and having a lot of difficulty getting pipenv to work. From what I see python 3.6 is no longer supported by ...
karl's user avatar
  • 331
0 votes
2 answers
124 views

I am not able to display and save a video from my Flir hadron camera using Gstreamer command in python3 Opencv

I'm trying to display and save my Flir Hadron camera videos using gstreamer pipelines in Python 3 OpenCV. I have a perfectly working Gstreamer pipelines that are able to display and save videos with ...
Ihssane Oubari's user avatar
0 votes
0 answers
32 views

oifits module for python3

when I open a *.fits file in OIFitsExplorer, I obtain a structure as in the figure. How can I get data only from GRAVITY_SC_P1 in oifits python3 module? I access the data as follows: target = "...
Elena Greg's user avatar
  • 1,165
0 votes
0 answers
19 views

How do you import pictures to Python console without other software/add-ons

I have looked forever and nothing helps to print/add pictures to Python. I don't want to download software or add-ons just plain Python. I have also tried AI and it doesn't help. (PS. I am in Python 3....
Borne's user avatar
  • 11
1 vote
1 answer
668 views

Install python3.6.8 failed in MacOS Sonoma useing pyenv

I'm trying to install python3.6.8 onto a Mac using pyenv. However, I'm getting the error: BUILD FAILED (OS X 14.3.1 using python-build 20180424) Inspect or clean up the working tree at /var/folders/...
PumpkinBoom's user avatar
1 vote
0 answers
99 views

No module named 'PyQt5.QtTextToSpeech'

Jetson Nano Ubuntu18.04 Python 3.6.9 PyQt5 Version: 5.10.1+dfsg-1ubuntu2 PyQt5 installed, use apt install xxx I tried to excute from PyQt5.QtTextToSpeech import QTextToSpeech I got an error: Python ...
shitian xie's user avatar

15 30 50 per page
1
2 3 4 5
374