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

Caffe error: can't use pretrained prototxt and caffemodel with caffe.Net

I want to use DEX trained net from here. But I'm having the following problem, when I use net = caffe.Net('dex_imdb_wiki.caffemodel', 1, weights='age.prototxt') This is the error log: [libprotobuf ERROR google/protobuf/text_format.cc:307] Error…
0
votes
1 answer

How to get rid of error "Non-existing setting 'Suite Setup'" in Robot FW Python

I have 2 files in my project TestCase.robot UserKeys.robot UserKeys.robot file has below Setting *** Settings *** Library SeleniumLibrary Library DatabaseLibrary Library Collections Library difflib Suite Setup Connect To…
Dilip
  • 1
  • 3
0
votes
1 answer

Why is an absolute positioned widget not shown?

Using Qt5 I am trying to make a widget work using absolute positioning. The code below is a minimum working example of something I am trying to do. A quick walk through of the code: CentralWidget is the central widget of the main window and holds…
Woltan
  • 12,751
  • 12
  • 70
  • 97
0
votes
1 answer

Python3.8 list of objects to json

i'm having issues on convert list of objects in JSON, i tried with the following: json.dumps(list) but i get the following error: { "errorMessage": "Object of type Person is not JSON serializable", "errorType": "TypeError", "stackTrace": [ …
0
votes
1 answer

Python: Combination output in multiple excel sheets

I am new in Python. I have generated a 3 number combination set out of 24 numbers (Total combinations 2024). My intention is to put the combinations in different excel sheets in the same workbook. For example, 100 combinations in each sheet. I got…
raj
  • 1
  • 2
0
votes
1 answer

I was making an app and i am getting the unexpected indent error, which I am unable to resolve, how do i remove it?

I was making an app i have tried everything but the error is not going. it's just a simple GUI but if you find any mistakes, please do tell me, I am still learning python and this is the first time using tkinter and need some help import tkinter…
0
votes
0 answers

How can I create an executable from a scrapy project?

Lets say you need to distribute a Scrapy 2.1.0 project to someone and they don't know python. How do you package this project up into an executable that can be run by double clicking or via command line passing arguments? project structure: proj/ …
0
votes
0 answers

Can I store more than one file with overwriting the other files in the same folder in python having the same name

I have a dictionary file that has the following structure,if I have some files with the existing data.json name already,how can I store the more files to the same directory without overwriting the data.json file myRecord= { 'name':'ivan', …
hacker029
  • 11
  • 1
0
votes
1 answer

Python- 'Automate the boring stuff'- while loop

A fairly simple question from an absolute beginner. Please bear with me. --I'm following along in the book 'Automate the Boring Stuff' and am at while loops. --- --The following Python 3.8 code--: name = '' while name != 'your name': …
0
votes
1 answer

Multiple conditions for "walrus operator" assignment

I'd like to know if it's possible to use the "walrus operator" to assign the value based on some condition as well as existing. For example, assign the string to post_url if that string contains some substring: if post_url := data.get("Post url")…
Shaun Barney
  • 596
  • 5
  • 20
0
votes
0 answers

Porting a ctypes Library Call from Python 2.7 to 3.8

I'm trying to access the C-funtions with the following prototypes through ctypes library in python HandleT OpenFile (const char *FName, ResultT *ReturnCode); ResultT GetItem (HandleT handle, void **data, int *len); ResultT is an enum. Let's say…
Flirog
  • 1
0
votes
1 answer

How to store a result of SQL query as String in python

I am using Robot framework in python and I am running below query: ${queryResults1}= query select count(*) from table It gives me below result: ${queryResults2} = [(91,)] How to convert above result as String?
Dilip
  • 1
  • 3
0
votes
1 answer

error: Value of type variable "AnyStr" of "urljoin" cannot be "Optional[str]" in mypy

I have a statement like this: import os from urllib.parse import urljoin ES_SEARCH_URL = urljoin(base=os.getenv("ELASTICSEARCH_URL"), url="index/_search") I have tried with giving many types for ES_SEARCH_URL, but it always gives the following…
Soumendra
  • 1,131
  • 2
  • 23
  • 41
0
votes
2 answers

Parsing Text file input in python

I am having problems reading input from text file. Also I noticed that only the last line is read and parsed. out1.txt: thin279 gatefin 64hamp testme Code: import time from selenium.webdriver.chrome.options import Options chrome_options =…
0
votes
1 answer

Keyword 'BuiltIn.Log To Console' expected 1 to 3 arguments, got 8

Getting this error when I try to execute below query after connecting to DB in Robot Framework - Python Connect to DB @{queryResults}= query select * from schema.table where country='BRAZIL'; log to console many @{queryResults}
Dilip
  • 1
  • 3