Questions tagged [python-3.8]

This tag is for issues that are specific to Python 3.8. For general questions use the more generic [python] and [python-3.x] tags.

Python 3.8 was released on 2019-10-14 (PEP 569).


Use this tag if your question is specifically related to Python 3.8. Otherwise, use the following guidelines to determine which tag(s) you should add to your question:

  • If your question applies to Python in general, use only the tag.
  • If your question applies to Python 3.x but not to Python 2.x, add the tag .
  • If you aren't sure, tag your question with and mention which version you're using in the post.

References

1757 questions
0
votes
4 answers

Return next key of a given dictionary key, python 3.6+

I am trying to find a way to get the next key of a Python 3.6+ (which are ordered) For example: dict = {'one':'value 1','two':'value 2','three':'value 3'} What I am trying to achieve is a function to return the next key. something…
F. A
  • 91
  • 9
0
votes
0 answers

MemoryError after upgrading from Python 2.7 to Python 3.8

I have some pandas code that works fine in Python 2.7. I recently upgraded to Python 3.8 (on a new laptop). Both reading large csv-files and merging 'sizable' dataframes now gives: "MemoryError: Unable to allocate 322. MiB for an array with shape…
Erjen
  • 11
  • 4
0
votes
1 answer

IDLE is not opening python3.8

I installed Python3.8 on a LINUX Mint OS in the terminal, but IDLE still opens Python version 3.6.9. How do I get IDLE to open Python 3.8. I can open Python 3.8 from the terminal, but when I open IDLE it opens Python version 3.6.9
0
votes
1 answer

Multiplying single level dataframe to multilevel dataframe

I have a dataframe df as: node date_ A1 A2 bkt B1 B2 B1 B2 0 1/1/2015 0.9 1 2 1 1 1/2/2015 0.7 0.6 5 6 2 1/3/2015 0.9 …
Zanam
  • 3,540
  • 9
  • 42
  • 91
0
votes
1 answer

Determine if a string is a. subset of another string. Don't use contains or in keywords

Suppose I ask the user to input two strings. I want to find out if the smaller string is a substring of the larger one. I'm not allowed to use the contains() command or any other shortcuts. I tried putting the both into different lists: def…
user13062377
0
votes
1 answer

venv - cannot install ansible in Windows 10

I am trying to get ansible installed in venv in Python 3.8 in Windows 10. I have tried: pip install -U setuptools pip3 install ansible pip install –user So far that has not worked. I am getting error: ERROR: Command errored out with exit status…
0
votes
1 answer

Python (3.8) : map(lambda x: x.method() , list_of_objects) not working on

I can't find the reason why map lambda doesn't work when I apply it to a list of objects, for example: class test(): def __init__(self, input): self.input =input def print_intput(self): print(self.input) objectlist=[] for…
Flying Turtle
  • 182
  • 5
  • 18
0
votes
0 answers

Getting UnboundLocalError in Python 3.8 program

It keeps coming up with UnboundLocalError: local variable 'can_i_get' referenced before assignment right here. #this makes you have to have a certain level to get better weapon. #ignore this --> if player_level ==…
imapancake
  • 11
  • 2
0
votes
0 answers

ValueError: RGBA sequence should have length 3 or 4

Getting error for this…
Neeraj K
  • 9
  • 3
0
votes
4 answers

How to list all files in a given directory and subdirectories?

I want to take a path from the user and I want to list the file names of all the directories and sub directories in that path. So far, I was only able to get the file names for directories not subdirectories: I'm not allowed to use os.walk() import…
user13062377
0
votes
3 answers

FileNotFoundError: [Errno 2] No such file or directory: 'pi_digits.txt'

Try to open file that exists with visual Studio Code 1.43.2 This is the py file: with open('pi_digits.txt') as file_object: contents = file_object.read() print(contents) This is the result: PS C:\Users\Osori> & C:/Python/Python38-32/python.exe…
0
votes
0 answers

Python 3.8 Downloading Packages/Modules error using PIP

I am trying to install numpy but it is giving this error please help what should I do ? ERROR: Exception: Traceback (most recent call last): File…
0
votes
1 answer

Python Keyerror 'sapi5', cant understand the error

One question of this type is previously asked but is not very helpful. I am using version Python3.8 in Windows 10 OS. I am getting an error, KeyError: 'sapi5'. dont know why this error is occurring. Please have a look at the below code given . My…
Saurav Kumar
  • 61
  • 12
0
votes
0 answers

Problems installing Networkit with pip3

I am trying to install networkit 6.1 on macOS 10.15.4 with python 3.8. I have double checked and made sure that I have all the requirements. pip3 errors out while Building wheel for networkit (setup.py) Here is what the error message says. After…
Deryc
  • 48
  • 5
0
votes
0 answers

Mypy can't find submodule

I'm trying to help mypy to find correct paths for modules but I don't understand hwo to do it from docs https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports I added stubs by stubgen *.py but still the same. I read that I also have…
Meroz
  • 697
  • 1
  • 6
  • 22
1 2 3
99
100