Questions tagged as 'python-3.x'

1
answer

PYMSSQL - error

Personal I'm having a problem with the pymssql library, whenever I try to make a connection it has the following error: Thisistheconnectionstr:importpyodbccon=pyodbc.connect("DRIVER={SQL Server};server=localhost;database=teste;uid=sa;pwd=Tes...
asked by 02.07.2018 / 22:25
1
answer

help with storing value of a local variable in python

Hello, well, I'm writing an application using SQLite and Python, everything was running fine until I had a problem that I can not solve, I happen to have a db of fipe, so I need to load 3 combobox with brand, model and year , then I decided to do...
asked by 02.07.2018 / 04:43
0
answers

Clear browser address bar without refresh in Django

Personal oops! I'm having a problem, I need to clear the URL of the browser when I sign in, I need it to place the default URL. In the image you see that the URL is / logout /, I want the login URL which is / accounts / login / VLW FOR HELP \...
asked by 05.07.2018 / 19:40
1
answer

Importing Module Inside Python3 Module

There are the following folders: └── Programa/ ├── main.py <----- Inicio esse... ├── bin/ | └── config.py <----- esse importa o db.py └── database/ ├── __init__.py └── db.py In t...
asked by 06.07.2018 / 08:57
0
answers

I can not execute the code because PyCharm says that the App class was not created

PyCharm says that the App class has not been defined, but that does not make sense since I created the App class. from tkinter import * class App: def __init__(self,master): frame = Frame(master) frame.pack() Label(...
asked by 27.06.2018 / 04:41
1
answer

Scraping using Selenium and Beautifulsoup

I'm trying to do a scrap on a book of books, I need to get the titles and categories of all the books posted. On the first try, I get an Attribute Error, which should happen several times because the site is poorly done and the things I'm not al...
asked by 27.06.2018 / 11:30
2
answers

Flask SqlAlcheny TypeError: 'Fermentables' object is not iterable

In model FermentableTypes : class FermentableTypes(db.Model): __tablename__ = "fermentable_types" id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50)) desc = db.Column(db.String(255)) def __s...
asked by 25.06.2018 / 15:36
1
answer

Problems developing a bricks-breaking game in tkinter (collisions with objects)

I'm a few days studying and trying to get the ball by hitting the rectangles from above they add and invert the side from tkinter import * from constantes import * import random class Jogo(): def __init__(self): #Criar tel...
asked by 19.06.2018 / 14:29
1
answer

Problems encrypting text with arrays

Here's the code: import numpy as np def invert(matrix): try: new = list(np.linalg.inv(matrix)) except np.linalg.LinAlgError: return "Matrix not inversible!" for i in range(len(new)): new[i] = list(new[i])...
asked by 07.07.2018 / 16:07
1
answer

Python3 Format print, to take bugs out of symbols

import os with open('lista.txt', 'r') as lista: l = lista.read().splitlines() for s in l: v = os.system('ping '+s) print ((v).format) This ping works, but returns with symbols like this: in letters that have an accen...
asked by 07.07.2018 / 22:02