Questions tagged as 'python-2.7'

1
answer

Kivy / buildozer error when creating my apk

I have a problem when trying to create an apk from my .py file created with the kivy framework the error and the commands I use are the following wonder@wonder-M720SR:~/Kivy-Calculator$ buildozer android debug deploy run # Check configu...
asked by 10.10.2017 / 02:08
1
answer

Wait for answers to continue Selenium Python

I want to make this code with functions. With the data of the Login and achieve it and it is perfect, the problem comes later with 2 issues: The first, where it says #Clonar there is a change of URL and it is executed automatically once I...
asked by 12.10.2017 / 15:42
1
answer

Python client / server

I'm doing a client and a server with sockets. The client sends an option (1,2,3) and the server returns the result. In option 1 I send a command (ipconfig) and it returns the result, but then to re-execute another command I have to press agai...
asked by 20.09.2017 / 15:10
1
answer

Use str.split () to select parts of a string separating by consecutive spaces

I am receiving some lines of log, to which I generate a header with the data of some of the fields, as the first ip in the line. To do this use a split of empty spaces and so I could select the information I wanted to use in the header. Bu...
asked by 16.10.2017 / 13:46
0
answers

It tells me that sklearn is missing but that it is up-to-date in /usr/local/lib/python2.7/dist-packages

On the server of my company, when I try to start a python file it tells me that I need sklearn but it seems that it already exists. :~/Eclipse-Stats$ python Main.py 2017-07-24 14:01:55.852751 Traceback (most recent call last): File "...
asked by 24.07.2017 / 14:24
0
answers

Call a class from another file

In a class in a file querySQLPredictions.py we have: class QuerySQLPredictions: """""" def __init__(self,dataFrame_subscriber_content): """""" self.dataFrame_subscriber_content = dataFrame_subscriber_content a...
asked by 11.07.2017 / 15:46
0
answers

Get coordinates of a pixel with OpenCV - Python [closed]

Good, I'm trying to get the coordinate in X (the column number) for the pixel / s that meet a given condition (example RGB = 255,0,0 ) and for a value of Y (row) given. Is there any way to do it in Python using OpenCV?     
asked by 10.07.2017 / 19:50
1
answer

I can not convert a Json format into a csv table

I tried to convert a json to csv, I tried it directly with the library csv and also with pandas , but it tells me TypeError . This is my code: import urllib2, json url = "https://www.ncdc.noaa.gov/cdo-web/api/v2/stations"...
asked by 29.06.2017 / 07:39
0
answers

How to install and use PyQt5 in Windows? (configure.py, Error)

I want to use the PyQt5 in Windows, I was searching and found a .zip file from the official PyQt page, which tells me how to install the file configure.py in Windows, but when executing the file I get the following error:    Error:...
asked by 30.06.2017 / 18:55
2
answers

I want to modify a matrix but I can not

I want to modify the matrix created in arr per column (the one that the user wants) and per row (the one that the user wants) entering the value he wants: from numpy import * arr = zeros((2,2)) for j in arr: for k in j: k = 5 print...
asked by 26.05.2017 / 02:58