Questions tagged as 'python'

0
answers

Create .exe from .py

Hi, I have my .py code and I run it from SPYDER with Anaconda, no problem. Now I want to create an .exe from my .py file but when I try to execute it I get an error "Failed to execute script name.py" I think the error is because of the extern...
asked by 07.06.2018 / 16:17
0
answers

is it possible to speed up a Sqlite3 query in python if I need to search all the elements in the table?

I made a code that makes it work well, evaluates the value of column 2 (plan) for each of the elements in column one (nrocaja). The plan is a list of lists serialized as a BLOB, which the code retrieves, deserializes and evaluates each of...
asked by 09.06.2018 / 02:29
0
answers

cudaGetDevice () failed. Status: CUDA driver version is insufficient for CUDA runtime version "

I am using an instance of EC2 Deep Learning Windows 10 g2.2xlarge. I have this problem when I try to run an implementation within jupyter notebook, In the terminal says the following message:    "cudaGetDevice () failed. Status: The ver...
asked by 11.06.2018 / 17:16
0
answers

WebService Python http.server

I am developing a small webservice, when I enter localhots: 8000 it shows me this is a test, but rarely the post method is not working for me, because when I want to send variables to it in the url or in a form, these are not reflected or the Ch...
asked by 11.06.2018 / 22:18
1
answer

error login gmail selenium with python

I have an error with the following code, as the ide works correctly and throws "successful login" by another lador the browser open gmail enter user click to the next xpath Enter password clicks the xpath password but nothing happ...
asked by 11.06.2018 / 19:43
0
answers

DataFrame cell value grouped by 'groupby ()'

I have the following DataFrame of pandas that I call reacciones : Modelo Apoyo Grupo Fx Fy Fz 0 Reacciones 00 P1 G -1.0 0 162.0 1 Reacciones 00 P1 Q -3.0...
asked by 07.06.2018 / 11:59
2
answers

print a variable [closed]

For example: edad = 18 print("Tengo %d años) % edad According to what they told me, I had to formulate it like this but I'm getting this error:    TypeError: unsupported operand type (s) for%: 'NoneType' and 'int'     
asked by 07.06.2018 / 06:06
2
answers

Memory consumption when processing .csv file

First of all, I would like to thank you if someone takes the trouble to read the question and second to warn that I am a total novice. I'm doing this for a hobby. I'm doing a program to perform queries on very large .csv files with records fr...
asked by 06.06.2018 / 08:25
0
answers

could not locate runnable browser

I'm trying to open internet explorer with webbrowser, this is my simple code: import webbrowser' Op=webbrowser.get("iexplorer") Op.open("www.facebook.com")' but it returns me in error:    Traceback (most recent call last): File   "C: \ U...
asked by 17.06.2018 / 03:27
0
answers

Create one RDD from another, but changing the value of a column (pyspark)

I must change an attribute in an RDD, passing it to 1 if it is "A", and to 0 if it is "B". Even the new attribute should be integer, rather than the current one. ... StructField("key", IntegerType(), True), StructField("inf", Strin...
asked by 17.06.2018 / 13:52