Questions tagged as 'python'

0
answers

How to debug python code in the Geany IDE?

I'm learning programming in python and for this I'm using the GEANY IDE in Fedora 24. I'm happy to use it, but I can not debug my code. I already installed the debug plugin. Would anyone know how to debug?     
asked by 27.02.2017 / 23:37
1
answer

Install Python Curl library 3.4.4

Someone has a .zip link to install the librarian "import pycurl" Using Windows and Python 3.4.4     
asked by 28.02.2017 / 12:35
1
answer

How to print a .txt file in Python

I try to print this part of my work in a .txt file (code below), but I can not, because at the time of giving Run in the file that whole part goes out blank: Itisworthmentioningthatevenleavingblank,thefileissavedanyway,butallthefieldsthatwereto...
asked by 23.02.2017 / 17:24
1
answer

How to catch the query string from a Restful request

I need to get the parameters passed by the URI, for example: http://localhost/endpoint/param1/param2/param3 if param1 == "adduser" id = param2 name = param3 Example of a function that did not work: I'm looking for a way to search...
asked by 24.02.2017 / 19:55
1
answer

Django without model visualization in the common user admin even having permissions and being in the same group

Good afternoon, So I am trying to give permissions that already comes in django to an ordinary user who even belonging to the group can not access the models that is granted to it. Someone had this problem of not viewing models in admin. version...
asked by 03.03.2017 / 19:02
1
answer

Low resolution text in Python Kivy

I'm starting in Python and Kivy, but I'm not understanding why the low resolution of the generated objects. In a simple screen of username and password, it is possible to observe the text serrated, that is, with low rendering. Is there a way...
asked by 10.03.2018 / 18:04
0
answers

Problem when making python script request administrator permission

I use Python 3.5 on Windows 8 and a simple script presented problem: I want to copy a file from my desktop to the C: \ Windows folder. First I tried this: from shutil import copy path1='C:\Users\username\Desktop\registro.py' path2='C:\Windows...
asked by 14.02.2017 / 15:27
0
answers

This error happens when I run the program in Ubuntu, and in Win10 it works normal. What to do?

Program def trabaLinhas(caminho): colunas = extraindoZip.listaArq(caminho)[1] dadosV = pd.DataFrame(columns=colunas) for coluna in colunas: listaLinhas = lerTxt(caminho, coluna) dadosVazao = [] count = 0...
asked by 16.02.2017 / 15:30
0
answers

AttributeError: 'NoneType' object has no attribute '_product'

I'm trying to do a project with Python and Docker, but I'm having some programming problems. I have 2 files with error that are ProvisionOps.py and DockerOps.py. Follow ProvisionOps.py #!/usr/bin/python # -*- coding: UTF-8 -*- #...
asked by 12.04.2017 / 00:05
1
answer

Import the numpy package

In Windows 10, using Python 3.6.0. How do I import the numpy1.11.2 module? I already used the miniconda and the package was loaded but I am not successful in the Python 3.6.0 interactive python. Thankful     
asked by 02.03.2017 / 14:14