Questions tagged as 'python'

2
answers

Problems when moving DC motors

I have a Raspberry Pi with a web server where there is a joystick. I have programmed a script in python that is responsible for translating the position of the joystick to the speed that the DC motors have to have for the car to turn as indicate...
asked by 22.10.2017 / 00:20
1
answer

Error installing Ubuntu Ubuntu 16.04 "dpkg: error processing archive /var/cache/apt/archives/apport_2.20.1-0ubuntu2.15_all.deb"

I have an application made in Django that is now in production mode in ubuntu server 16.04 and I need to generate its SSL Certificate so that users can access through HTTPS, for this I have guided myself with this tutorial: link After...
asked by 04.01.2018 / 02:01
1
answer

Run Python file from a PHP file

I would like you to help me with a problem that I have with my code, which I have been reviewing a lot but I can not fix it, this is my program in php, which runs on an Apache server (using raspberry pi 3 B), I will also leave you my python prog...
asked by 30.09.2017 / 04:41
2
answers

Filters Data URL CSV Python

I'm working with a report I get from a URL. I'm looking to make filters which return only the data from the Fillrate column less than 0.05 along with the name, request, impressions data and once obtained only those values saved in a CSV. I do no...
asked by 02.10.2017 / 20:51
1
answer

How to define the host and port to use in a Flask app?

To execute an application in Flask we use the method app.run() In this method we can pass configuration parameters, among them: host, port, debug By default, the Flask application runs in host = localhost port = 5000 So, if we wan...
asked by 17.03.2018 / 06:02
1
answer

Problem loading QTableWidget

I want to load the data of a table, the problem arises when I press the button it throws me the following error:    C: \ Users \ framework \ Downloads \ Python \ PyQt> python new.py   TypeError: loadData () takes 0 positional arguments but 2...
asked by 02.10.2017 / 15:22
1
answer

Infinite loop in Python

I am currently working on a project where I need to loop an infinite loop to a python code so that the data I'm asking for from a .json database is updated every so often. p> The code is as follows: from RPLCD import CharLCD import json...
asked by 21.03.2018 / 00:27
1
answer

python - re-dimension element with a random number

I want to re-dimension the frame that I create, the idea is to take a random number to pass it as value height() , this must be done in a certain cycle in this case 100 times with a value update time each second time.sleep(1) , this...
asked by 18.03.2018 / 05:26
1
answer

Print a column of a csv

I have a csv file several columns. I simplify it in the following case with two. ID texto 1 Los niños comen sardinas 2 Los pájaros vuelan alto porque tienen alas 3 Érase una vez la vida 4 Un 67% de los adultos vive en l...
asked by 03.11.2017 / 17:53
1
answer

Find patterns in python lists

I have a somewhat complex problem, on the one hand I have a list that contains lists. These contain integers that represent positions on a map: rutas = [[0,1,2,3],[0,1,2],[7,4,8],...[5,6],[0,1,3,4]] I also have another list, which contains,...
asked by 18.07.2017 / 09:39