Questions tagged as 'python'

0
answers

'UserAdminCreatinForm' object has no attribute 'get' Django

I was trying to send data from a user to the database and received the following error. fromdjangoimportformsfromdjango.contrib.auth.formsimportUserCreationForm#fromdjango.contrib.authimportget_user_modelfromdjango.contrib.auth.formsimportReadO...
asked by 09.10.2018 / 21:40
1
answer

Error executing application with graphical interface in Python 3

Error executing application with graphical interface in Python 3. File "/home/nexide/PycharmProjects/untitled1/.idea/testew.py", line 1, in <module> from tkinter import * ImportError: No module named tkinter Process finished with ex...
asked by 08.08.2016 / 17:29
1
answer

Select item from a column in Python

I have managed to filter the items I want, but they are in a kind of column. I did it this way: import os cmd = os.popen('arping -I enp1s0 -c 2 192.168.0.1') arr = cmd.read().split('\n') for line in arr: if 'Unicast' in line:...
asked by 11.10.2018 / 16:43
1
answer

Placing Which Lyrics More Is Repeated And In Order

How do I make a function that Traverses a Text Text="TEST" and the function put in order for me The most repeated letters with Ex Dictionary: DICTIONARY = {T: 2, E: 2, S: 1} As I have in the library the Collections function I would like someone...
asked by 11.10.2018 / 18:58
1
answer

Problem with excess houses Decimals!

Initially I was developing a python code that would help me better understand Nikola Tesla's Number Theory ( video ). Explaining quickly, starting with 360, adding each separate value results in 9, for example: 3 + 6 + 0 = 9, always dividing...
asked by 14.10.2018 / 16:30
0
answers

The syntax of the file name, directory name, or volume label is incorrect

I can not solve this problem that says: "The syntax of the file name, directory name, or volume label is incorrect." I thought it was an ill-specified path, but I do not think it was. import socket,time,subprocess,tempfile,os ip='192.168.0.102...
asked by 09.10.2018 / 03:17
0
answers

Problems with form Flask-Admin with additive fields in the relationship N-N

I have the models below class ProdutosIngredientes(db.Model): __tablename__ = 'produtos_ingredientes' id = db.Column(db.Integer(), primary_key=True) produtos_id = db.Column('produtos_id', db.Integer, db.ForeignKey('produtos.id'))...
asked by 03.10.2018 / 02:37
1
answer

How to make pdfkit ignore extensions?

I have the following code import pdfkit options = { 'page-size': 'Letter', 'margin-top': '0.75in', 'margin-right': '0.75in', 'margin-bottom': '0.75in', 'margin-left': '0.75in', 'encoding': "UTF-8", 'custom-header'...
asked by 02.10.2018 / 15:12
0
answers

Error updating function in Python

I'm developing an install.py file that will serve as an alternative to install and create qq program executable in a simple and easy way. I am having difficulty updating function, I get to download the git update but I can not copy / move to the...
asked by 01.10.2018 / 21:35
1
answer

Use of Class in Kivy

Good afternoon, I want to make a program that uses several combobox and in a single window. But I can not get both of them to appear. When I run the program, only one of the combobox appears. Below I send the current code. from kivy.app import...
asked by 03.10.2018 / 22:04