Questions tagged as 'python'

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

Error 1054 when executing sql statement at end of cycle

I have a MySQL table called empleados , I'm in the option modificar , this is the final code of the cycle modificar : sql="update Empleados set numdocEmp='"+numdocEmp+"', NombreEmp= '"+nombreEmp+"', salariobasico= '"+salbasic...
asked by 14.07.2017 / 17:21
0
answers

Elements same name Python dictionary

I am counting repeated messages that exist within 30 days, after which the messages are counted from zero again. For example, in 30 days there were 5 messages type "A", after the last message type "A" passed 30 days and did not report any type "...
asked by 09.07.2017 / 22:53
0
answers

main () error missing 1 required positional argument: 'self'

I'm starting in this pygame and I get this error in main ()    missing 1 required positional argument: 'self' import pygame import random r1=pygame.Rect(0,0,0,0) pygame.init() class Recs(object): def __init__(self,numeroinicia):...
asked by 07.07.2017 / 12:29
0
answers

Phyton tkinter, open window and close window

PYTHON 2.7 by means of a button of the main window a second window opens and closes with widhdraw the main one, now from the second one I want to return to the initial window but closing the second window ??     
asked by 11.07.2017 / 23:26
2
answers

sql syntax error in mysql database with python 3

In my mysql project with python, when trying to modify a field of the table, the sequence sql generates error and I do not understand why. I accept the name change but when I enter the new price the error arises. The Cod element is the pr...
asked by 05.07.2017 / 17:48
1
answer

Pass the value of a variable from one function to another function in Python

I am starting my studies in Python and I need to make this code for my class. Basically it consists in the registration of the workers of a company to calculate their salary / salary, applying some discounts and bonuses / incentives. In op...
asked by 08.07.2017 / 05:24
1
answer

Compress code in Spyder editor (Python)

I'm working with the Spyder editor, with a whole python FW. I have created a package that includes several functions and I would like to be able to group them so that they only occupy a line while I do not edit them. Something like what Notepad...
asked by 29.06.2017 / 10:05
1
answer

WebDriverException: Message: 'phantomjs' executable needs to be in PATH

I'm trying to run a program that uses the selenium library and it throws me the following error: Traceback (most recent call last): File "C:\Python34\prueba_nuevo_bot.py", line 2, in <module> bot=FacebookBot() File "C:\Python34\F...
asked by 29.06.2017 / 12:45
0
answers

there is an alternative to sox (sound exchange) for windows

I'm trying to make use of this python script: #!/usr/bin/env python3 # -*- coding: utf-8 -*- """PyVoiceChanger.""" import sys from datetime import datetime from subprocess import call from time import sleep from PyQt5.QtCore import QProce...
asked by 28.06.2017 / 21:34