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

2332 questions
0
votes
1 answer

How to visualize a vtu file in python?

I am using meshio package to extract the information out of a vtu file that represents the 2d version of flow past a cylinder (Von-Karman vortices) at a Reynolds no. of 220 for one time-step. I am able to extract the x and y coordinates in a…
0
votes
1 answer

Python3 can't open file 'practice1.py': [Errno 2] No such file or directory

Please help me... I'm a fresh python user. I'm on python 3.8.3, MacOS Sierra 10.12, and VSCode 1.55.0. This error just showed up when I typed the python3 filename.py. But my program worked fine when I simply clicked the run play button. However…
Arya IC
  • 1
  • 1
  • 5
0
votes
0 answers

Recursive descend parser for evalutating math expressions throws an error and I do not how to fix it

I'm new here and have a generall question. I'm trying to create a recursive descent parser for the evaluation of mathematic expressions, and the parser I have crafted until now also works very good for integers and floategers. But now I am trying to…
Lucy
  • 1
  • 2
0
votes
1 answer

How to use file in-memory?

The following code currently saves the file to disk. Can I save it to memory instead? def synthesize(iam_token, text): url = 'https://example.com/tts:synthesize' headers = { 'Authorization': 'Bearer ' + iam_token, } data =…
LA_
  • 19,823
  • 58
  • 172
  • 308
0
votes
2 answers

Uninstall Python 3.8 and use Python 3.9 | Ubuntu 18.04

I have now installed Python 3.9, and have now replaced Python 3.8. Running Terminal shows that Python 3.9 is being used: Terminal using py39 venv
user15501559
0
votes
1 answer

Coins not showing up

I am trying to make a spaceship game where you control a spaceship and fire bullets to destroy enemy ships. I am trying to make the screen full of coins, but when I run, no coins show up? How can I make it so that the coins fill the screen? This is…
Alan Bagel
  • 818
  • 5
  • 24
0
votes
1 answer

Rows not showing properly

I am making a Table object where you can see the columns and rows. When I try updating the table, the table is not updated properly. Why is this? This is my current code: class Table: def __init__(self, headers, rows): self.headers,…
Alan Bagel
  • 818
  • 5
  • 24
0
votes
0 answers

Can't import libtorrent from Python 3.8.7

so i am trying to import libtorrent from python file to make some code that download a torrent, but when I import it, it returns the following error Traceback (most recent call last): File "/Users/myUser/Documents/someDirectory/test.py", line 1,…
0
votes
2 answers

Resample time series data based on a column maximum value?

I have the below dataframe Date A_Gen A_Load B_Gen B_Load S_Gen 2010-01-01 00:00 30 20 40 40 70 2010-01-01 01:00 45 25 35 30 70 2010-01-01 02:00 25 22 30 25 55 What…
swhh
  • 87
  • 1
  • 7
0
votes
1 answer

Pip missing in python script

I checked that I am using python 3.8.5 on my windows 10. I'm trying to install a package with pip but the terminal tells me '[pip' is not recognized as an internal or external command, operable program or batch file.] I am using Python version 3.8.5…
0
votes
1 answer

Python automatically changing its value - Tkinter

Let's say I have 3 files - main.py CommunicationsHandler.py main_canvas.py Contents of main.py # Showing only main part from CommunicationsHandler import CommunicationsHandler def replace_window(event): …
Blake
  • 28
  • 2
  • 10
0
votes
1 answer

How to make custom reserved keywords in python3

I want to know whether I can make a normal text to have a functionality like a reserved word. For example : "and" is a reserved keyword in python and what I want to do is, give the same power as of "and" to another thing, let's say "abc". So w, i =…
0
votes
3 answers

Python remove blank spaces in output with integers

I'm looking for a solution for this, searched and tried several ones, but none working with int datatypes, using python 3.8.5. begin = 1 end = 273 print ("lines:", begin, "-", end) result: lines: 1 - 273 needed: lines: 1-273 What do I need to do…
0
votes
0 answers

Neopixel change brightness while running a animation

I'm using the Neopixel library from jgarff to control my Neopixel LED strips and I want to change the brightness while a animation is running. In the library I'm using there isn't a command to refresh the brightness, but there is a command that…
0
votes
0 answers

python-AIML 0.9.3 date formatting with date tag

I am using AIML 2.0 on Python 3.8, Windows 10 and I am trying to format the date using the date tag: WHAT IS THE DATE