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
1 answer

how to install discord lib on debian server (websocket error)

i tried to install the discord lib on my external debian server with python3 -m pip install -U git+https://github.com/Rapptz/discord.py.git the return is: [...] Command python setup.py egg_info failed with error code 1 in…
Nutzernam3
  • 13
  • 4
0
votes
2 answers

Find and replace program with fileinput library isn't working

import fileinput with fileinput.FileInput('FILE_PATH_ON_MY_COMPUTER', inplace=True, backup='') as file: for line in file: print(line.replace(", uh,", ""), end='') for line in file: print(line.replace(", uh", ""), end='') …
0
votes
1 answer

I am getting following error: TypeError: 'bool' object is not subscriptable

I am getting following error: TypeError: 'bool' object is not subscriptable *** Settings *** Library AppiumLibrary Resource ../../Resources/Library.robot Documentation Test Cases for Login module # Test Setup …
0
votes
1 answer

from flask_mysqldb import MySQL

EDIT: Problem resolved. I was able to finally figure out the problem with some help from another student in the Udemy class along with the answer from Isaac_R here. I had to edit my .bash_profile with the following two lines of code and I am able to…
tylern012
  • 1
  • 3
0
votes
0 answers

Parsing xml file and trying to return Values > 0 Only. invalid literal for int() with base 10: '201806-111-01471'

Here is the basic code. I want to pass on printing if the value is not an int. I am a nube so go easy please. Also, I am sure my code is garbage so if you can also help with that i would be grateful. with open(file) as file: for Properties in…
0
votes
1 answer

List files in directory over socket Python

How can you send a command to list files in a directory over a socket? # # Write a script that connects to 'localhost' port 10000 # You then need to send a command to list the files in the /tmp directory # import socket, os, json sock =…
Ollie
  • 279
  • 5
  • 15
0
votes
0 answers

kivy module would not be installed on pyhton 3.8 in pycharm or cmd

i tried every rthing downloaded dependecies erased others python3.7 3.5 and checked that pycharm is in enterpred on 3.8 and i have latest pip version and tried every thiing but still wouldnt be installed kivy itt gives alot of liiines of…
Rami
  • 1
0
votes
2 answers

pip is not installing Pygame and is giving ERROR

specs : kali with python 3.8.1 I developed a game which requires pygame. so as usual for downloading and installing I used '''$pip install pygame''' and it returned an error message Collecting pygame Using cached pygame-1.9.6.tar.gz (3.2 MB) …
0
votes
0 answers

Why is an array I haven't called changing after calling another array?

I'm currently confused as to why one of my arrays is changing when it hasn't been called. if 2 <= self.counter <= 3: print(self.old[y][x]) self.grid[y][x] = 1 print(self.old[y][x]) The first print displays 0 and the…
Euan Hall
  • 1
  • 3
0
votes
0 answers

When I run my python code in VS code it displays the output in the Terminal tab and not the Output tab

Currently using VS Code version 1.43.2 and Python 3.8.1. I want to know how will I make my codes display in the Output section and NOT the Terminal section when I ran them
0
votes
2 answers

Syntax error in bytes(" ".format(), encoding="utf-8")

When running this: import hashlib hash1 = hashlib.md5(b'admin:Pentester Academy:asdds').hexdigest() hash2 = hashlib.md5(b'GET:/lab/webapp/digest/1').hexdigest() nonce = "526f295f84bcafc67598cd8e760a9cc5" response_unhashed =…
0
votes
1 answer

Selenium XPath, selecting button with same class name

I have html which looks as following:    
Zanam
  • 3,540
  • 9
  • 42
  • 91
0
votes
0 answers

Python logging on multiple files

this is the code i've made so far: import logging, os , json, inspect, sys from logging import handlers class StructuredMessage(object): def __init__(self, **kwargs): self.kwargs = kwargs def __str__(self): return '%s'…
xCloudx8
  • 601
  • 8
  • 21
0
votes
1 answer

Selenium unable to find element for different find options

I am at the following site: https://www.ces-us.com/index.asp and I am using the following code: path_to_chromedriver = r'C:\chromedriver' # change path as needed browser = webdriver.Chrome(executable_path=path_to_chromedriver) url =…
Zanam
  • 3,540
  • 9
  • 42
  • 91
0
votes
0 answers

pip3 install GDAL on Mac Catalina (10.15) problem

I am trying to install GDAL module for python 3 on my mac. So far, I have tried all of the answers available online, but nothing has worked. I have downloaded and installed the GDAL framework from http://www.kyngchaos.com/software/frameworks/. Then…
numpy
  • 23
  • 4