Questions tagged as 'python-2.7'

0
answers

Modify Excel in Python

I'm working with an xlsx that has this data: I need to make a division between cells D and C in this way: D / C and that each value is placed in the cells of column E: In this way, I only need Excel to filter the values of the...
asked by 31.10.2017 / 18:38
1
answer

Error IntegrityError: NOT NULL constraint failed in Django

I want a form to add groups of clients and in turn add clients to these groups, for this I have created the field people in manytomany and using an intermediary Group_member. models.py class Grupo(models.Model): nombre_grupo...
asked by 24.10.2017 / 05:31
1
answer

OsError Python on Ubuntu

I have created a script with Python and when executing it, it responds with this message: Traceback (most recent call last): File "./pruebaHIDS.py", line 6, in <module> for filename in listdir("/Escritorio/Scripts"): OSError: [Errn...
asked by 09.10.2017 / 21:23
1
answer

Class Def Python Try / Except

I'm looking for someone to help me with funciones and clases python. I had always worked with functions but never with functions within functions. When I wanted to run the program I did not perform any of my functions until I chang...
asked by 13.10.2017 / 16:08
1
answer

WebDriver in Python with Pycharm does not work

These are the imports:    Update to the latest version of Selenium from lib2to3.pgen2 import driver import time from selenium import webdriver import datetime driver = webdriver.Chrome() driver.maximize_window() And here is the program...
asked by 23.11.2017 / 20:38
0
answers

Restore connection with SMTPlib

Good afternoon: I have a Python program that what it does is read a Telegram message and send the same message but by email through the SMPT library. The problem is that by chance I send two messages from Telegram at the same time the program...
asked by 29.09.2017 / 15:44
0
answers

Make a SQL query that varies on a table in Python

I want to write the result of several SQL queries that are dependent on a table res[ids] . for i, ids in enumerate(self.res['ids']): print ids cur.execute("""--- hashtag describiendo los grupos de subscrib...
asked by 04.08.2017 / 15:03
0
answers

Import Python file to Neo4j

I need to import the Python file to Neo4j and for that I need to create nodes and labels. But I can not do it. What would it be like? This is my code: from neo4jrestclient.client import GraphDatabase import time from Bio import Entrez db =...
asked by 24.07.2017 / 17:36
0
answers

Error creating extensions in CKAN

Can you tell me how to solve this error?    ImportError: 'module' object has no attribute 'ExampleIAuthfunctionsPlugin' My class: # encoding: utf-8 import ckan.plugins as plugins class ExampleIAuthFunctionsPlugin(plugins.SingletonPlug...
asked by 13.07.2017 / 13:12
0
answers

PATH persistent problem on a server with Python

I try to download Graphlab on a server with the following tutorial . I downloaded it and programmed it with the tools I had wanted to try: (gl-env)ubuntu@ip-172-hey-hey-hey:~/Eclipse-Stats$ source deactivate discarding /home/ubuntu/anaconda2/...
asked by 28.07.2017 / 13:51