Questions tagged [python-3.x]

USE ONLY IF YOUR QUESTION IS VERSION-SPECIFIC. For questions about Python programming that are specific to version 3+ of the language. Use the more generic [python] tag on all Python questions. Use the [python-2.x] tags for Python 2 questions.

0 votes
0 answers
3 views

pyautogui is delayed in .png searches/ going to next line of code too soon

Okay I've gotten pretty far since I started this but I've been wondering about a few things I'd like to improve on. So When the dell.com/support pops up it takes about 10 seconds for it to figure out ...
user avatar
  • 144
0 votes
0 answers
4 views

How do I install geopandas into miniconda?

Trying to install geopandas using: conda install geopandas but keep receiving the errors: miniconda errors image is there something I'm doing wrong here? can't seem to install geopandas at all.
user avatar
  • 1
-1 votes
0 answers
7 views

Merge a python and shell script that has arguments

I have a couple of scripts. The python script (delete.py) deletes a user (./delete <uname>) and a shell script (send_email.sh) sends an email to the user (./send_email <uname>), this is ...
user avatar
  • 1
-1 votes
0 answers
11 views

Python error when executing apt-add-repository on Parrot OS 5.0

I installed the new Parrot OS 5.0 yesterday but I was getting a Python error when trying to add a new repository. It does not mater which repository I try to add, the same error raises over and over: ...
user avatar
0 votes
0 answers
17 views

Python3 string conversion failure using html.unescape

I'm having trouble decoding a string. Here's my code: from html import unescape s = "css?family=\u0026quot;+e,id:i" print(s) print(repr(s)) print(type(s)) print(unescape(s)) print('---') ...
user avatar
  • 595
0 votes
0 answers
7 views

Getting the output from autocomplete from ttkwidget

I found this source code with autocompleteentry, from ttkwidgets.autocomplete import AutocompleteEntry import tkinter as tk window = tk.Tk() tk.Label(window, text="Entry with autocompletion for ...
user avatar
  • 1
0 votes
0 answers
7 views

Can you have two instances of tkinter in Python?

Is it possible to have two instances of tkinter ? import tkinter as tk import tkinter as sk root = tk.Tk() root2 = sk.Tk() ....some window with tk ....some window with sk root.mainloop() root2....
user avatar
1 vote
0 answers
14 views

Determine whether a `call` event is a class definition in settrace

When you use settrace, you can track call events in code execution (among others). However, the documentation mentions: A function is called (or some other code block entered). The global trace ...
user avatar
0 votes
1 answer
11 views

How to iterate PYODBC variable multiple times?

I am querying a SQL Server table from Python like following: query = "SELECT PN, PD, VT FROM inpat" data = cursor.execute(query) Next, I am iterating data like following for i in data: ...
user avatar
0 votes
1 answer
28 views

Reshaping Panda Data Frame and Create New Columns Based On a Column

I want to reshape a data frame like the following: df1 = pd.DataFrame( columns=['Serial','Seq_Sp','PT','FirstPT','DiffAngle','R1'], data=[['1001W','2_1',15.13,15.07,1.9,7.4], ['1001W','...
user avatar
  • 3
0 votes
0 answers
13 views

How to package python application as a service?

I am very new to python and this is my first application that I am trying to deploy. I have below structure in my source-code - __init__.py - myapp.py - myapp_config.json myapp.py is ...
user avatar
1 vote
2 answers
26 views

Why does indexing a binary string return an integer in python3?

If given a binary string in python like bstring = b'hello' why does bstring[0] return the ascii code for the char 'h' (104) and not the binary char b'h' or b'\x68'? It's probably also good to note ...
user avatar
0 votes
0 answers
10 views

How to run multiple python files at the same time in visual studio code while minimizing the drop in runtime speed?

There are apparently many posts on the same subject but older. I want an answer that is more relevant to current version of Visual Studio Code as well as Windows 10 OS. Questions: How to run two ...
user avatar
  • 13
0 votes
0 answers
20 views

combine values from a list of a dictionaries [duplicate]

I'm trying to combine a list that contains dictionaries with matching values. list = [ {"country": "united states", "state": "texas", "city": &...
user avatar
0 votes
0 answers
12 views

Why I am getting an error when I calls update method of vtkDICOMImageReader?

I am trying to get 3d reconstruction of dicoms file using vtk, but I am getting the error "vtkDICOMImageReader.cxx:325 ERR| vtkDICOMImageReader (0x55a109156360): There was a problem retrieving ...
user avatar

15 30 50 per page
1
2 3 4 5
21394