Questions tagged as 'python-3.x'

1
answer

Relate values from a list with strings written by the user

I am trying to relate values from a list to strings written by the user as in this example: We want the chains written by the user to be related to others we have: work at home and family. we want to divide the chain into separate values and pri...
asked by 23.09.2017 / 18:46
1
answer

Get pressed key

I have the script that I leave below but it throws me an error when executing it on line 61: from record import record import os class cliente(record): nombre = "" codigo = 0 ultimapelicula = None habilitado = True class pelicula(rec...
asked by 18.09.2017 / 03:07
1
answer

I want to give some variables the value of elements of a sql table in python

I'm new to Python and I'm trying to create a POS application, but I'm left blank, because I do not know how to solve this. I want the variables nombre and precio to have the value of the table productos and save them in a...
asked by 16.09.2017 / 11:40
1
answer

Decode error - output not utf-8

I'm using Sublime Text 2.0.2 for my work in Python 3. I get an error running it:    "Decode error - output not utf-8" The strange thing is that running it in the Python Shell runs without problems. code_example.py: # -*- coding...
asked by 10.09.2017 / 19:01
1
answer

Call ConsoleApp from python

Good morning. My problem is that I am trying to call a console application (made in c #) from python, and call the process in the same terminal. So I do not return the termianl to continue typing and in turn the exe of c # is only to listen to a...
asked by 05.09.2017 / 03:10
1
answer

PANDAS: Can I fill NAN values in just one column of my dataframe?

I have a dataframe of 3 columns all numeric. Within the data there are missing values NAN and I have no problems in filling them with fillna(method=pad) all except NAN of the first column that require fillna(mean()...
asked by 04.08.2017 / 21:47
0
answers

Error executing script, failure to load DLL

I am trying to apply one of my first applications in Qt5 with Python 3.5.2: import sys from PyQt5 import QtWidgets def window(): app = QtWidgets.QApplication(sys.argv) w = QtWidgets.Qwidget() w.show() sys.exit(app.exec_()) wi...
asked by 18.07.2017 / 23:56
0
answers

Jupyter does not work in Fedora 26

I am using the recent version of fedora (26), and all very well with Python3, it works perfectly the "Scipy stack" with the fedora commands I have been able to install and use numpy, pandas, etc. The problem is that I installed Jupyter with the...
asked by 19.07.2017 / 05:46
1
answer

CMD pip install error. Exception: Traceback (most recent call last):

C:\Users\pcort>pip install virtualenv Collecting virtualenv Using cached virtualenv-15.1.0-py2.py3-none-any.whl Installing collected packages: virtualenv Exception: Traceback (most recent call last): I have read that this problem is sol...
asked by 29.07.2017 / 19:59
0
answers

Error 1054 when executing sql statement at end of cycle

I have a MySQL table called empleados , I'm in the option modificar , this is the final code of the cycle modificar : sql="update Empleados set numdocEmp='"+numdocEmp+"', NombreEmp= '"+nombreEmp+"', salariobasico= '"+salbasic...
asked by 14.07.2017 / 19:21