Questions tagged [python-3.11]

Python 3.11 is the newest release of the Python language. Please use the [python] tag for general Python related questions.

Python is an interpreted, high-level and general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant indentation.

References

308 questions
0
votes
1 answer

logging.BasicConfig encoding param is not working

I'm getting logging error (UnicodeEncodeError) while trying log and print url which contain not ASCII letter. I specified encoding while setting up logger in my_logging.py my_logging.py import logging import sys from pathlib import Path def…
555Russich
  • 354
  • 2
  • 10
0
votes
0 answers

I am a beginner in coding with Python, I want to know why Python is not printing the content of my file in the terminal

with open("bruh.txt") as file: print(file.read()) print(file.closed) Output: PS C:\\Users\\hp\\Desktop\\sss\> & C:/Users/hp/AppData/Local/Mi crosoft/WindowsApps/python3.11.exe c:/Users/hp/Desktop/sss/file.py True PS…
lily36
  • 1
0
votes
2 answers

diffrent results in jupter notebooks and in chatgpt

This is what ChatGPT replied after i asked if my code was correct, but this the result I'm getting in Jupyter notebooks Can someone explain what what am I doing wrong and how to correct it?
0
votes
0 answers

Python 3.10 compatibility issues with openssl

I understand that there is a known issue starting from Python 3.10 and above with OpenSSL. I also comprehend that this can be resolved using the wrapper library "pyOpenSSL." However, I did not find any resources demonstrating a proper example of…
Izik
  • 746
  • 1
  • 9
  • 25
0
votes
0 answers

Bad Request when authenticating with xbox live api

When authenticating with the xbox live api the following code returns 400. For full context, here is the full source of the described…
Pilot1782
  • 13
  • 3
0
votes
0 answers

Python3.11 install pyvsc package

I install the latest version "pyvsc" module in python3.11.4, but it throws error /tmp/pip-install-vhqnf19u/CMakeLists.txt can not found, just as shown below: 25 [root@rd1 17:36 ~/pyvsc]# pip3 install -e . Obtaining file:///root/pyvsc Installing…
0
votes
0 answers

/opt/python/cryptography/hazmat/bindings/_rust.abi3.so: cannot open shared object file in aws lambda layer stack: Runtime.ImportModuleError

I'm facing an issue with my AWS Lambda Layer Stack using AWS SAM (Serverless Application Model). I am encountering a Runtime.ImportModuleError with the following error message: Runtime.ImportModuleError: Unable to import module 'signin':…
0
votes
0 answers

Hi, I am try to upgrade one of egg to python 3.11 (migrated in poetry) from python 3.7 but I faces following error

@pytest.fixture def http_client(io_loop): E fixture 'io_loop' not found available fixtures: anyio_backend, anyio_backend_name, anyio_backend_options, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cli_runner, cov,…
0
votes
1 answer

How to stop asyncio tasks in TaskGroup after catching KeyboardInterrupt exception twice within a certain time frame?

I have Python program that runs multiple asyncio tasks using asyncio.TaskGroup. All of the tasks are waiting for some event to happen and I want them being cancelled when any of them completes. I want that the program can also be closed by sending…
Afkaaja
  • 47
  • 5
0
votes
0 answers

PyCharm missing conftest fixtures with Python 3.11

I recently updated a project from Python 3.10 to 3.11 which broke my ability to run tests through PyCharm. The issue is that fixtures in conftest are no longer recognized, and nearly all of the tests I work with are organized in that way. In fact,…
rurp
  • 1,376
  • 2
  • 14
  • 22
0
votes
0 answers

Python cryptography fails to load due to _rust DDL import error

I've a Python application that can run in two ways: Stand alone -> launched directly using the python interpreter From a windows service -> wrapping application with pywin32 and using the same interpreter When app starts in standalone mode it…
0
votes
0 answers

Can't find input file libssh2.lib using pip install parallel-ssh

I'm trying to install a python package on Windows 10 and am getting the following output from the command line. Error is being thrown while building the wheel for the dependency ssh2-python Building wheel for ssh2-python (setup.py) ... error …
0
votes
1 answer

Pytorch not detecting GPU (RTX 4000

I am using Linux Mint 21.1 and I've download and installed cuda_12.2.1_535.86.10_linux.run from https://developer.nvidia.com/cuda-downloads. After cuda installation, I tried to run /usr/local/cuda/extras/demo_suite/deviceQuery and got the…
ricksant
  • 117
  • 9
0
votes
0 answers

Getting Below Error: `Context.__init__() got an unexpected keyword argument 'app'` , while using latest celery v5.3.1 with Python 3.11

from celery.bin.worker import worker from my_project import consumer_app def start_worker(): logger.info("Starting workers..") while True: try: worker(app=consumer_app).execute_from_commandline() except…
0
votes
1 answer

Unable to install PaddleOCR on Python 3.11 with GitHub Actions on Windows OS

I am trying to automate the installation of PaddleOCR using GitHub Actions for my project. The process works smoothly on other Python versions and operating systems. However, I am encountering an issue specifically with Python 3.11 on the Windows…
Eftal Gezer
  • 191
  • 1
  • 8