Questions tagged as 'python-3.x'

1
answer

Search script on YouTube from Google API V3. I have the error (urllib.error.HTTPError: HTTP Error 404: Not Found)

I am trying to test this script in Google Python to do searches on YouTube. The code I have removed from here: link I had to make a couple of changes to make it work with Python 3 The only thing I've done is add parentheses to all pr...
asked by 16.06.2018 / 18:34
1
answer

Python HTTPConnectionPool Failed to establish a new connection: [Errno 11004] getaddrinfo failed

I was trying to follow a scraping tutorial on grupoothis , and I The following error arises after a couple of queries. The error in question Traceback (most recent call last): File "C:\Users\Sebastián\AppData\Local\Programs\Python...
asked by 17.06.2018 / 22:30
0
answers

Select Databases + Django

I'm doing a page that works with 2 postgresql database managers and sql server, postgres is on the application server and sql server can be on the same server or on another server my question is how can I connect with the server sql server being...
asked by 19.06.2018 / 15:57
1
answer

Shared lists in instances of classes (objects) [duplicated]

I have the following code class Num(object): i = list() def __init__(self): pass def imp(self): print(self.__i) def add(self, n): self.__i.append(n) from Num import * n1 = Num() n2 = Num() n1....
asked by 20.06.2018 / 08:07
1
answer

Proplema with layout: Widget does not resize with the window

I have a Dialog with a unique Wigdet that occupies the entire window. In this case it is a QTextEdit and is created with Qt Designer . This is the file in Python : from PyQt4 import QtCore, QtGui try:...
asked by 20.06.2018 / 14:33
0
answers

How to solve TypeError: string indices must be integers?

I have the result of a union with dataframe merge. actor_crew = pd.merge(actor, crew, on='directors', how='inner') basic_actor_crew = pd.merge(Title_Data, actor_crew, on='tconst', how='inner') basic_actor_crew_ratings = pd.merge(basic_actor_cr...
asked by 14.06.2018 / 19:35
0
answers

Connecting MySQL Database with Python

requesting your support to find the reason why my Python code does not connect to a Server other than Localhost mounted on XAMPP. The error it throws is about my IP address, not so much about the server's. Annex code and error output. Greetings!...
asked by 12.06.2018 / 19:17
0
answers

Django + Models from existing database

Hi, I'm working on a project that I have a database in postgresql and my client needs to also work with an existing database on sql server that has about 150 tables of which I only need about 20, my question is Can you create the model of only...
asked by 12.06.2018 / 20:01
1
answer

Multiple Database django

Hi, I'm new to django, I'm working on a project where I use sql server 2008 myself, but I have a problem where I'm going to put the application will not always be connected to the same database server or to the same database data because they ha...
asked by 19.06.2018 / 21:15
0
answers

is it possible to speed up a Sqlite3 query in python if I need to search all the elements in the table?

I made a code that makes it work well, evaluates the value of column 2 (plan) for each of the elements in column one (nrocaja). The plan is a list of lists serialized as a BLOB, which the code retrieves, deserializes and evaluates each of...
asked by 09.06.2018 / 04:29