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

how to download and run python3.11.4 in linux debian 11

I successfully downloaded the tarz for python3.11.4 but when I enter python it still says I am using python3.9. I am using a chromebook with linux debian 11 I ran the tarball and everything downloaded and is setup but when I exit and go back in…
0
votes
1 answer

Kivy Screen Overlapping Instances Issue: Labels and Checkboxes

I'm facing a problem with my Kivy application where each time I open the same screen/page twice, the widgets (labels and checkboxes) overlap, causing a messy and undesirable user interface. It seems that Kivy is keeping all instances of the screen,…
0
votes
0 answers

Error while installing python-snappy on ubuntu with python3.11 version, fatal error: snappy-c.h: No such file or directory

I am facing below error while installing python-snappy on ubuntu. I am using python-snappy==0.6.1 version. This package worked with python3.8 however I am seeing issue with python3.11 version. Running setup.py install for python-snappy:…
Priya Rani
  • 1,063
  • 3
  • 11
  • 21
0
votes
0 answers

Import function in python not working properly after uninstalling pyenv

Previously I have been experimenting with pyenv and a few hours ago i wanted to fully uninstall and remove it from my computer. After doing so everything in python stopped working. Including VScode. So I uninstalled everything and re-installed both…
0
votes
0 answers

Why does Python3.11 code construction modify inputted co_code?

I'm trying to create a code object (Python 3.11) with modified co_code to another function, but I notice that the CodeType constructor seems to modify the inputted co_code. For example: import types import random def f(a): a = a + 1 return…
Abhishek G
  • 90
  • 6
0
votes
0 answers

i want to print arabic string value + num value in the same line

i updatae in databse the variable self.se_var.get() = 1 se_value = "ع د/ب ج/7" + "/" + (self.se_var.get()) print(se_value) the result I get is: ع د/ب ج/7/1 but i need the result like that: ع د/ب ج/7 and "/" and "1" from left to right can any one…
0
votes
0 answers

Why in python it generate modulenotfinderror even after installation of module and add the path in environment variable

In my python program it generate modulenotfounderror. I want a valid solution for this kind of error.this error is arise a lot of problem to run the python program. I have added the path of python and sites packages and vs code and installed all…
0
votes
1 answer

Selenium chrome driver error on Docker Container

in my local test the code is perfectly worked but when i build the docker, after run a docker image, "selenium.common.exceptions.WebDriverException: Message: Service /root/.wdm/drivers/chromedriver/linux64/114.0.5735.90/chromedriver unexpectedly…
0
votes
0 answers

psutil python package version 5.9.5 not able to install with python3.11.4

trying to upgrade psutil package to latest version 5.9.5 not able to install with python3.11.4 tried installing psutil latest package with python3.11.4 and lower version of psutil getting below error running install_scripts psutil could…
naveen
  • 1
0
votes
0 answers

cannot access local variable 'messages' where it is not associated with a value

views.py error cannot access local variable 'messages' where it is not associated with a value cannot access local variable 'messages' where it is not associated with a value cannot access local variable 'messages' where it is not associated with a…
ramu
  • 1
0
votes
0 answers

Why am i getting this error in a simple code? (Bad file descriptor)

Why this simple code: # Python 3.11.4 file = open('pe.txt','w') file.write("que") file.close() That opens a text file called o, writes "que" and closes, launches error: OSError: [Errno 9] Bad file descriptor in file.close(), any ideas? pe.txt has…
rVan
  • 27
  • 4
0
votes
1 answer

requests.get url json but for selected columns/field

I have a sample dataset looking like this: "id": 1, "name": "meow", "address": "123 meowmeow St, city, state 12345", "users": [ { "id": 1, "initials": "L.L", …
0
votes
2 answers

python tkinter scrollbar not aligning properly

I am trying to make a program that will make python easier using OOP, and when I tried to make a horizontal scrollbar. It did not end well This is my code for the scrollbar: def add_scrollbar(self, pos1, pos2, orientation, List): …
0
votes
0 answers

Roblox Uploading Discord Bot Python Code Error

I have error code 401 response while uploading, so I want to make when I send template of shirt or pants then it will upload to my roblox group. So when I am typing !uploadshirt (I want to upload my shirt template) Usage is: !uploadshirt name:Name…
0
votes
1 answer

Invalid behavior of __main__.py and __init__.py files

I am currently working on a Python package. The package can be imported or it can also run from command line with -m switch. Inside the package I am building a dependency injection container using - python-dependency-injector. Now, here is my…
arpymastro
  • 751
  • 3
  • 16
  • 34