Questions tagged as 'python'

0
answers

How to insert data from a Python script in mysql?

I have not programmed in python for a while and I feel pretty rusty with the language and that's why I need a little help with my script: link What it does is that once executed, all the new files that arrive in a folder (in this case download...
asked by 07.12.2017 / 06:34
1
answer

Error: TypeError: can not multiply sequence by non-int of type 'str'

What is the following error?:    TypeError: can not multiply sequence by non-int of type 'str' This is my code: import math print("teoria de inventarios") print("elige el modelo") print("1.-modelo deterministico") print("2.-modelo con...
asked by 07.12.2017 / 01:21
2
answers

Problem to work with Django

I'm trying to work with Django and I could not. I can not access Django from the cmd. Do we have to configure something in the path to work with Django? - C: \ Django-1.10.8 \ django \ bin-- I have the correct path with Python, and add Django...
asked by 05.12.2017 / 20:24
0
answers

create users in openldap from an SCV

Good morning everyone! I'm starting in the world of ubuntu and also Ldap and I have a problem because I want to make a script that allows me to create users through an SCV file which has three fields (name, surname and email). Once the user is l...
asked by 03.12.2017 / 01:00
1
answer

Openpyxl - SyntaxError: invalid character in identifier

With the following script I try to get the data from a range of cells: wb=openpyxl.load_workbook('testfile.xlsx') sheet = wb.get_sheet_by_name('Hoja1') # Imprimir un rango multiple_cells = sheet['A1':'C20'] for row in multiple_cells:     for...
asked by 15.12.2017 / 19:39
1
answer

from django.apps import apps No module named 'django.apps'

Hi, I am new using django, I am using python 3.5 and django 1.9 but after installing it and trying to create my first project it gives me errors that I do not understand, it is as if django was not installed but if it is? It puts me: Traceback...
asked by 03.12.2017 / 20:41
1
answer

How to install the QT Designer module in Linux (Ubuntu)

I have installed PyQt5 in Linux but I do not know how to install or run the QT Designer module, I would appreciate it if someone can help me.     
asked by 06.12.2017 / 03:34
0
answers

How can I maintain a constant data send to a URL in Python?

Good afternoon friends, I am somewhat desperate with an error I get when sending data captured by an arduino, which sent them through the COM port to a Raspberry and within this I execute the code in python to capture the data (these data are co...
asked by 30.11.2017 / 20:57
2
answers

Get information about a div without id with BeautifulSoup Python

I need to find the code of this HTML: <div class="form-horizontal"> <br> <div class="control-group"> <div class="controls"> <!--...
asked by 28.11.2017 / 19:27
1
answer

python function with django

Good morning, I'm starting to use Django and well I have a problem, and I'm not able to call a function that I created in python through a button and / or a href. In my views.py file I have the method that I want to execute when I click on th...
asked by 28.12.2017 / 16:27