Questions tagged [python-3.6]

0 votes
1 replies
Python3: Does a call to pymysql.rollback() require a commit?
I'm using python3.6 and pymysql 0.7.11. The call to rollback rolls a transaction back, according to the documentation. A call to commit finali...
asked 4 months ago
0 votes
1 replies
Decrypting environmental variables in AWS Lambda not working in Python 3.6
I have encrypted an environmental variable in an AWS Lambda function with an AWS KMS. Then I have tried to decrypt the variable in code using the...
asked 4 months ago
2 votes
3 replies
“Is there a way to get sequence of most consecutive alphabet?”
I am working on a python problem which has a string such as “aaabbcc” and a number n (integer). I have to display a sequence of any Alphabetic c...
asked 4 months ago
0 votes
1 replies
How to make this function where I can give it an argument or not
So I made this very small function. it is a bonehead easy function but frankly borderline my capabilities.. Im learning. The function works as ex...
asked 4 months ago
0 votes
1 replies
shlex.split() returning whole command as a single string
shlex.split() is not giving the proper output on the input string. In python interpreter, storing the input value in a variable produces the ex...
asked 4 months ago
0 votes
0 replies
Django model with automatic username and data creating through factory
I want to create two new django models (clients and advisors) in my current app and create some test data with factory. The problem is that I can...
asked 4 months ago
0 votes
0 replies
secure ftp connection using python module pysftp
I need to connect to secure FTP server from windows-7 machine. I have user credentials to login to the server and its working when i secure ftp...
asked 4 months ago
-1 votes
0 replies
How to solve multivariate optimization problem with 160 different variables with excel or python?
I have data of 160 rows and 2 columns(point, hit). I have to maximize total =sum of each point*hit while minimizing the sum of hits. How to solve...
0 votes
0 replies
How to read file with columns which have non-fixed widths? [duplicate]
I try to read the file into pandas. The file has values separated by space, but with different number of spaces I tried: pd.read_csv('file.csv',...
asked 4 months ago
0 votes
0 replies
How to create a progressbar capturing the progress of a subprocess in tkinter with threading
I am currently programming a GUI with tkinter in Python 3.6 for another Program, which is called through subprocess. I would like to represent th...
0 votes
0 replies
Custom Class raises error when trying to call fit_transform
I have created custom classes that want to use with scikit-learn Pipelines and Feature-Unions. Each class takes as input a data frame with 2 co...
0 votes
1 replies
Filter models on the basis of dictionary key
I am facing a problem while filtering a record from the database. In my database I have records which contain a dictfield. for eg region is a di...
asked 4 months ago
0 votes
1 replies
I'm starting to believe that my python installation is broken
How can this happen? /home/gui/Documents/GIT/Neuraxle/neuraxle/hyperparams/distributions.py in rvs(self) 282 :return: an integer....
asked 4 months ago
0 votes
0 replies
importerror DLL Failed to load-tensorflow
So i am 14 and i am working on a new project with self driving car and i am going to need tensorflow for detecting other cars and objects but eve...
0 votes
1 replies
How to detect Socket/connection is closed abruptly in Python 3.6
How can I check if the client disconnects abruptly in Python 3.6. Here is my code, s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) print('...
asked 4 months ago
1 votes
0 replies
Parameters of environment created with openAI gym not getting updated on manual update
I am trying to create an openAI gym environment for a four room gridworld to implement SMDP options framework. I have multiple gridmap files that...
0 votes
0 replies
failing to send text message through a script via adb
I am trying to send a text message using adb, I am able to open the text window with the number inserted in, but my input text is failing . Alth...
asked 4 months ago
-1 votes
2 replies
Name ''total'' is not defined
What should I differently? The Result is line 12 print(total) NameError: name 'total' is not defined def gross_pay (hours,rate): info =()...
asked 4 months ago
0 votes
1 replies
Port forward webserver with SSH thru python 3.6
I have a webserver running which is built with python flask but the the problem is that the server is only running locally. The solution that I...
asked 4 months ago
0 votes
0 replies
Unable to trigger excel macro using python 3
I am unable to get the code executed to trigger an excel macro. Below is summary of the traceback. File "c:\Anaconda3\lib\site-packages\win32c...
asked 4 months ago
0 votes
5 replies
Representing a text file into a list using python
I want to open a text file in a list using Python. The structure of my text.txt file is as follows: "Sentence 1.", "Sentence 2.",..., "Sente...
asked 4 months ago
1 votes
0 replies
How can I find network interface name based on vid and pid of USB
I'm using LTE USB Dongle. I want to select special connected Dongle. I have some code that find special USB Device base on VID and PID. If find...
asked 4 months ago
0 votes
0 replies
How to fix collisions in pygame
I'm attempting to detect a collision between two objects (both images). I have rect's for both the objects, but cannot get the collision to be de...
asked 4 months ago
0 votes
0 replies
pygame.mixer.Sound in PyQt5
i use pygame.mixer.sound for audio and sender pyqt5 for event, but when i click on button play my audio file starts from the begining and plays t...
asked 4 months ago
0 votes
0 replies
argument groups in argument group are missing help content?
I try to use argument groups inside an argument group. But the subgroups do not have help content, how can I fix this? normal_group = parser.add...
asked 4 months ago