Skip to main content

Questions tagged [python-3.x]

DO NOT USE UNLESS YOUR QUESTION IS FOR PYTHON 3 ONLY. Always use alongside the standard [python] tag.

0 votes
0 answers
9 views

Pydantic type conversion on assignment

I want to use Pydantic to convert a plaintext string password to a hashed value of type bytes on assignment using a specific hash function. This is a minimal example, that shows my current (not-...
DevilsThumb's user avatar
0 votes
0 answers
10 views

How do I modify parameterized values in conftest and pass them to multiple testcases in pytest

The problem: Let us say that there are 10 steps required for a process to complete. I start the steps of the process 1 by 1 and in between these steps, I would like to make different assertions. After ...
yowaf21832's user avatar
-1 votes
1 answer
37 views

Is Python a selectively interpreted language? Why does the following code not work?

As a program runs from top to bottom, why does the following code throw an error directly without executing the first line in the block? if 5 > 2: print("Two is less than Five!") ...
Akshay_J's user avatar
-1 votes
0 answers
14 views

Create left and right side for pedestrian graph using openstreetmap data

I'm trying to create a pedestrian graph using openstreetmap data via python. The graph is created using the OSMnx library. Each edge represents each way, however the pedestrian could actually walk on ...
MrLondon's user avatar
0 votes
0 answers
13 views

.py-script only runs via terminal and not with the "run"-button of Pycharm

I created a new python project inside Pycharm with a virtual environment. It's my first time using virtual environments (I am still a beginner in python & Pycharm). For some reason, Python can't ...
Julia Sprengel's user avatar
-6 votes
0 answers
24 views

How can I personally connect to Python developer? [closed]

I was extremely unable to understand the concept of loops to understand and building the logics I want to connect with one python developer personally so that I can understand the topics better and ...
Aakash 2's user avatar
0 votes
0 answers
22 views

the problem of connecting to a Python socket

I'm trying to make my telegram bot turn off the computer when I wrote 'off' to it. I don't want to connect the bot to the hosting on the site. I chose my phone (Android Redmi Note 10) for hosting. I ...
Да не знаю я's user avatar
0 votes
0 answers
12 views

selenium on WSL2 doesn't open firefox (ubuntu)

My code for web scraper is: from selenium import webdriver from selenium.webdriver.firefox.service import Service as FirefoxService from selenium.webdriver.firefox.options import Options from ...
Polona Premrl's user avatar
-1 votes
0 answers
42 views

Floodfill filling part of the image and not all background

I have a screenshot taken from a chat platform and want to fill all the image of the chat in white, including profile pictures of participants while keeping the chat boxes. The code from this Question ...
J.Doe's user avatar
  • 381
-1 votes
0 answers
23 views

Challenges while trying to conda repair [duplicate]

xxxxx@xxxxxMINGW64 ~/Notebooks $ conda repair Traceback (most recent call last): File "C:\Users\xxxxx\anaconda3\Lib\site-packages\conda\exception_handler.py", line 18, in call return func(*...
MaxM's user avatar
  • 1
-1 votes
0 answers
5 views

Unable to import 'setuptools'PylintE0401:import-error

I am currently trying to publish a package.. 3 questions: using python3 setup.py sdist bdist_wheel to build distribution packages. However, when I run this on the terminal,I get "Errno 2] No ...
Carrie Mackenzie's user avatar
0 votes
0 answers
9 views

image cannot be displayed in Flask Web App

I am developing a small web app assignment by using python and Flask. I need to let user upload image as their icon, store image in static file and store image name into database(assignment ...
DINGYANG ZUO's user avatar
0 votes
0 answers
8 views

pymssql package '_bcp_batch' in Mac M3 chip

I have a Mac with M3 chip and I get an error when I use python3.10^: File "src/pymssql/_pymssql.pyx", line 1, in init pymssql._pymssql ImportError: dlopen(/Library/Frameworks/Python....
Itamar's user avatar
  • 29
-1 votes
3 answers
42 views

What is the correct way to unpack a tuple composed of a TreeNode and an Integer?

I'm implementing an algorithm that requires appending and popping nodes from a Tree in python (in a FIFO way). queue = [] # empty list root = TreeNode() # a standard TreeNode with val, left and ...
user13079354's user avatar
-4 votes
0 answers
14 views

Ultralitics YOLO would not work on my GPU (AMD Radeon Graphics, 512MiB) Python-3.12.3 torch-2.3.1+rocm6.0 CUDA:0 [closed]

While tried to train with GPU[Python-3.12.3 torch-2.3.1+rocm6.0 CUDA:0 (AMD Radeon Graphics, 512MiB)] it will not work, while I am using CPU[Python-3.12.3 torch-2.3.1+rocm6.0 CPU (AMD Ryzen 3 7320U ...
Naol Mergia's user avatar

15 30 50 per page
1
2 3 4 5
22901