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
1
vote
0 answers

Installing requirements.txt using pip returns "numpy" module error

I was setting up a program using python. I think some modules are missing. Can someone help me correct the dependencies? I'm currently using python3.11 on Windows 10. I tried to run pip install -r requirements.txt but it returns this error: I used…
DarkShade
  • 31
  • 3
0
votes
0 answers

Python 3.11.5 - Error Enabling jupyter_nbextensions_configurator: ModuleNotFoundError for notebook.base

I'm encountering an issue when trying to enable jupyter_nbextensions_configurator on my Jupyter setup. I get the following error message: jupyter_nbextensions_configurator | error adding extension (enabled: True): The module…
vbfh
  • 115
  • 1
  • 8
0
votes
1 answer

Xcom_pull() got an unexpected keyword argument 'task_id'

I'm learning Apache Airflow from course of Marc Lamberti, I stumbled on a problem, in my task "process_user" def _process_user(ti): user = ti.xcom_pull(task_id = "extract_user") user = user['results'][0] processed_user = …
Umid Umaraliev
  • 41
  • 1
  • 1
  • 5
0
votes
0 answers

Error during indexing a list with another list

I am trying to encode a text using by using indices stored as a list and refer that indices as a value of another list. There is a code: #The part of a code that creates indices for input text referring to a base list and stores them into a new…
Proeliorr
  • 1
  • 1
0
votes
1 answer

How can I "relocate" my pytamaro-library to Python 3.11 outside miniconda?

This is my very first post here! I am working with a MacBook Pro and at the moment I am using a python library called pytamaro. In my system it's found in this path: /Applications/miniconda3/lib/python3.9/site-packages/pytamaro That's why I can use…
bio82rg
  • 3
  • 2
0
votes
0 answers

How to block input before delay

How to stop getting input from input() when there is a delay before typing: Code: time.sleep(5) # assuming as delay a = input() print(a) All works as assumed, but before 5 second when I type anything, it is given output. Is there a way to not get…
A VXQT
  • 1
0
votes
0 answers

Changing Python Interpreter in Spyder resulting in IPython Console not loading

My current Anaconda installation comes with Python 3.11.3, but I want to change to another version of Python 3.9.9 that comes with an application that I'm using. However, every time that I've switched my Python interpreter to that (installed under…
kevw22
  • 163
  • 1
  • 2
  • 8
0
votes
1 answer

"Unicode Blank Symbol Rendering Issue after Updating to Python 3.11 and Django 4.1.7"

I'm facing an issue with rendering a Unicode blank symbol in my Django project after upgrading to Python 3.11 and Django 4.1.7. Previously, I was using the following code snippet in my MyForm class: from django import forms class…
tux007
  • 282
  • 1
  • 3
  • 17
0
votes
1 answer

With Flask Sessions, do I need to explicitly create/change/delete cookies?

I'm confused about cookies in relation to Flask sessions (hereinafter "sessions"). I do understand how sessions rely on client-side cookies. My question is when we create/change/pop the value of a session variable, does that automatically create/set…
ScotterMonkey
  • 1,007
  • 12
  • 25
0
votes
0 answers

Structural pattern matching of lxml HtmlElement attributes

I want to use PEP 634 – Structural Pattern Matching to match an HtmlElement that has a particular attribute. The attributes are accessible through an .attrib attribute that returns an instance of the _Attrib class, and IIUC it has all methods for it…
0
votes
0 answers

ERROR: Could not build wheels for leven, which is required to install pyproject.toml-based projects in Python 3.11, GCC error

I am trying to build a docker image with some libraries installed, here is my dockerfile, FROM python:3.11.4-bookworm WORKDIR /app COPY ./requirements.txt ./requirements.txt #install gcc RUN apt-get update && apt-get install -y gcc RUN pip install…
Shobit Mahajan
  • 362
  • 2
  • 10
0
votes
1 answer

How to fix that weird syntax coloration of Python 3.11 code on VS Code?

I'm encountering a syntax coloration issue on VS Code. I don't know if this my VS Code that cannot handle Python 3.11 or it's an issue with my syntax coloration. For example, this code: from FcpeApp.models import User from FcpeApp.models import…
0
votes
0 answers

Python Module installation via pip does not work and shows error message

I have installed Python 3.11 on my Windows Notebook per downloaded installer from python.com. When I try to install modules in the windows command line I receive an error message and the module has not been installed. For example: pip install…
DO5DKL
  • 1
  • 1
0
votes
3 answers

using packages from functions with layers

I'm trying for some time to solve this issue and it will be nice if anyone had some similar case.I'm building some program on aws lambda and need to use scikit-learn package. The issue is that this package is very big so its difficult to code while…
Y.D
  • 95
  • 8
0
votes
0 answers

pywin32 not loading in properly

I am trying to install pywin32 to use the win32com.client function in python 3. I'm using a windowns computer running windows 10. This is also a work computer so doing anything requiring admin privileges means contacting IT. I have python 3.11…
Meghan
  • 1