Questions tagged as 'python-2.7'

1
answer

Query executed in Python does not return information from my Oracle database

The problem is that I'm doing some queries to the oracle 9 database from my python 2.7 script with the help of cx_oracle but when printing the cursor values it does not return information which IF IT EXISTS in the database. I have tried pla...
asked by 25.05.2017 / 15:12
0
answers

Problem with Multiprocessing and Process in GUI with Tkinter

I'm designing a GUI with Tkinter in python 2.7 for a project that is working ( link ). The project makes a photomosaic from a bank of images, it is done through the Pillow library. The script when working with image processing uses the multip...
asked by 10.05.2017 / 13:53
0
answers

Help on python programming project [closed]

Good morning everyone, today I bring you a very particular question. It turns out that I must do a project in Python 2.7 in which I am asked to design regular polyhedra (specifically cubes). I do not want to be taught the code to develop, but ra...
asked by 23.03.2017 / 13:58
0
answers

Requests python- Authentication failed NOT support JavaScript

# -*- encoding: utf-8 -*- import requests, json from requests.auth import HTTPBasicAuth from bs4 import BeautifulSoup headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2...
asked by 03.08.2016 / 15:14
1
answer

How can I integrate Pygame and PyQt4?

I'm using Python 2.7 and Ubuntu 14.04. I find myself trying to this to insert my pygame window into my PyQt4 window.    On some platforms it is possible to embed the pygame display in an existing window. To do this, the environment vari...
asked by 09.07.2016 / 18:07
0
answers

Django - ValueError: plural forms expression could be dangerous

I'm working with Django 1.9.6 in Microsoft Visual Studio, using a virtual environment where all the python packages my project requires are installed. One of the characteristics of my project is internationalization, but it is giving me problems...
asked by 27.05.2016 / 08:39
1
answer

PyQt4 error not modulo?

I have a problem. I want to work with PyQt4, but when I import it I get an error: from PyQt4 import QtGui Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> from PyQt4 import QtGui ImportError: No modul...
asked by 10.05.2016 / 15:33
1
answer

'NoneType' object has no attribute 'split'

I can not access to search for a user since I get the error of split . This is my code: views.py def buscar_usuario(request): from django.utils import simplejson busqueda = request.GET.get('busqueda') busquedas = busqueda....
asked by 16.11.2018 / 21:55
1
answer

Problems with menu in python

This is what I have def Menu(): #Muestra en pantalla la imagen guardada en Ganag screen.blit(Menug, (0,0)) #Actualizará el contenido de la pantalla entera for event in pygame.event.get(): dificultad =0 if event.type ==...
asked by 10.10.2018 / 03:24
2
answers

Python take value of a string after removing part of it

What I try to do is put as input value a string where I have to remove the word "name:" and take the first value of the one that follows regardless of whether there is space. example: Entry: Name: Pablo exit- > p If you could help me I try...
asked by 04.05.2018 / 16:14