Questions tagged as 'python'

1
answer

import mysql.connector error from the debian shell

I have a script that imports mysql.connector that works correctly from the idle, but when I try to execute them from the shell of the s.o. always throws me the error:    Traceback (most recent call last):       File "/home/pi/Projects...
asked by 11.05.2018 / 20:54
0
answers

PermissionError: [Errno 13] Permission denied Windows

I am doing a web application with flask and in one part an image is uploaded but when I do the process I get the error that I do not have permissions, I already executed as administrator the windows CMD, I gave it permissions of the folder in th...
asked by 11.05.2018 / 22:02
0
answers

WebScrapping Beautiful Soup

I am trying to scrap the following page link , initially I thought about using Selenium but I found a pattern in the url, now I have the following code that is repeated in all the links, I can use beautiful soup What would be the regular expres...
asked by 13.05.2018 / 01:25
0
answers

"python" is not recognized as an internal or external command, program or batch file executable

I have an error and I do not know how to solve it. When I try to execute the python command this error appears in the cmd "python" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. I have a...
asked by 11.05.2018 / 13:07
0
answers

how to get the name of the field and the table where the field is located using pyodbc?

I need to obtain the name of the columns from a query and also the name of the table from which the column comes, reviewing the documentation of pyodbc I have managed to obtain the name of the columns but I can not get the name, the problem is t...
asked by 10.05.2018 / 22:23
0
answers

In Blender, how to save object properties in key-frames with python

When I change the material of an object as I can save that action in a keyframe, since the idea is that during the animation the objects change material repeatedly. The materials have color and transparency data. This from a script in Python lan...
asked by 10.05.2018 / 19:04
0
answers

Problems with PyPDF2 and wand

I'm trying to show a preview of a pdf loaded via form. I also share the error when I try to do python3 manage.py makemigrations A help is greatly appreciated. Python Version: 3.5 Django Version: 1.11 Now I share the cod...
asked by 10.05.2018 / 18:53
1
answer

because I have this error in Tensorflow?

import tensorflow as tf import numpy as np # Dataset x_data = np.array([[1.,0.,2], [0.,1.,3], [1.,0.,2], [1.,1.,4]]) y_data = np.array([[3.], [0.], [1.], [2.]]) # Hyperparamters n_input = 3 n_hidden = 10 n_output = 1 lr = 0.01 epochs = 10000 di...
asked by 13.05.2018 / 17:52
0
answers

flow problem GUROBI PYTHON

# flujo stamina for i in Equipos: for j in Equipos: for c in Canchas: for g in Grupos: for t in Modulos: if i != j and g1 == g2 and (i in tabla_grupos[g1] == True...
asked by 10.05.2018 / 01:55
0
answers

Optimize opening of a Python program

I find the following problem, I have the following code, but it takes a long time to open the first time, I would like to know if there is any way to optimize the code. Or something like that here I leave my code: The interface is in a sep...
asked by 09.05.2018 / 23:01