Questions tagged as 'python-3.x'

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 / 19:16
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 / 13: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 / 08:06
0
answers

save data from a file in another Python file

I'm in doubt about how to save a sum that contains numbers in one file and pass it to another file (data.txt) I leave the example if I want to add it is line2, the problem is that I do not create the second file. #Primero creo el fichero def c...
asked by 05.06.2018 / 12:01
0
answers

Function attribute within a class

I'm trying to use the Gmail API, and for now I'm on the right track, now I'm trying to make the execution of the program a little more orderly by adding conditional etc ... It turns out that I have the following problem: I have a class called...
asked by 04.06.2018 / 21:25
0
answers

Why do not you recognize the column name with sqlite3?

I am developing a simple code to store and retrieve information in a database to learn how to use sqlite3 in python. The save part works fine but not the recovery part, I throw the following error when the column does exist: sqlite3.OperationalE...
asked by 02.06.2018 / 21:28
0
answers

python is not running the program in sublime 3

No program is running since I install and install anaconda on my mac. I get the following error. I hope someone can help me.    Failed to import the site module Traceback (most recent call last):   File "/Users/felipelopezrestrepo/anaconda3/...
asked by 02.06.2018 / 06:29
1
answer

Return multiple values in a For Loop

I am working on a project with Twitter which must be accessed through Tkinter, the fact is that I had first designed a function only in python, I used a 'For' loop and with print I saw what this gave me as result. The fact is that as a Tkinter w...
asked by 08.06.2018 / 03:28
1
answer

Create own materials to objects from Python

People, what I want is to create own materials to each object so that when modifying some property of the material, it does not do it in more than one object. What happens is that all the materials created assign them to only one object, the fir...
asked by 31.05.2018 / 18:54
0
answers

Import Python from different folders in a root directory

Hi I have to create a script that is in the folder /folder/Scrip/lala/algo.py and the functions are in another folder with the following path: folder / funiconestipo1 / funciones.py, how can I import the functions to where is the script called s...
asked by 30.05.2018 / 21:03