Questions tagged as 'python'

0
answers

Django + IIS ERROR 500

I'm trying to put my project into production with IIS, following this tutorial but when I start the IIS I get the following error: Error occurred while reading WSGI handler: Traceback (most recent call last): File "c:\users\e10136\appdat...
asked by 27.03.2018 / 11:39
1
answer

How would you then declare a loop with while, remove elements from it?

How could in this case draw the ages that are less than 18, those that are greater than 18 and then print them? I did it that way but the loop works but not the print. Edad_persona=int(input("Ingrese su edad:")) while Edad_persona!=999: pr...
asked by 07.04.2018 / 17:46
1
answer

Add row at the end that adds totals of columns in POSTGRESQL

I have the following query, in postgresql and psycopg2: cur.execute("""select admin_eps.nombre_eps, admin_eps.nit_eps, SUM(COALESCE((sbmEmp/30*diastmes + sbmEmp/240*1.25*hon + sbmEmp/240*1.25*hed + sb...
asked by 29.03.2018 / 21:10
1
answer

No module named 'encodings' in python

I have a server with Centos 7 and ps I'm working with python, I need to install a module with pip3 but whenever I'm going to execute it I get the following error: Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError...
asked by 03.04.2018 / 19:55
0
answers

When updating pip, the error goes out and it does not let you update it

Using the get-pip.py of link , I execute the following commands: python -m pip install --upgrade pip python -m pip install -U pip In both cases, I always get this error and it never lets me update it. Collecting pip Using cached pip-9...
asked by 04.04.2018 / 11:30
1
answer

Create a graphical tree of directories and files in python

Greetings I would like to get a graphic type tree from my folders and their respective files with python I currently have the following code: rootDir = 'media/gestionDocumental/' directorioArr=[] for dirName, subdirList, fileList in o...
asked by 04.04.2018 / 14:16
0
answers

Change bar style in matplotlib

Generate a code to analyze the frequency of the sound. But I want to know how I can modify the style of the bars. That is, add effects of pyqt as setGraphicEffect(QT::DropShadowEffect) for example, and add this result within a frame an...
asked by 25.03.2018 / 05:20
1
answer

matplotlib and tkinter to plot in real time

I am trying to graph a series of data from a text file, but my idea is that this graph only appears when I press a button on a GUI made in tkinter. However, at the moment of pressing the button the graph appears but without the data, that is, it...
asked by 27.03.2018 / 18:24
1
answer

Error matplotlib.pyplot spectrogram

I'm doing an audio spectrum analyzer in python, however I run into 2 problems. 1.- It does not read the information of mp3 files. 2.- When I change the file that it receives for a file of 2 audio channels it throws me an error. This is my...
asked by 24.03.2018 / 17:03
1
answer

How to create and read yaml files in python?

I understand that in python to be more ordered, .yaml files are used. The problem is that I do not know how to read or create them. Can someone help me?     
asked by 31.03.2018 / 02:39