Questions tagged as 'python'

1
answer

I want to know why you are giving this error in the variable?

import numpy as np # conda install numpy import cv2 as cv # conda install opencv import matplotlib.pyplot as plt #from PIL import Image # para rodar no console def showfig(image, ucmap): imgplot=plt.imshow(image, ucmap) img...
asked by 23.10.2018 / 16:43
1
answer

Pandas DataFrame.loc () does not find the record

Good morning! I'm trying to manipulate a DataFrame that originates in a DRE (accounting) report. I would like the index to be the account code, which I have already been able to do. However, DataFrame.loc [] does not find the record. Followin...
asked by 25.10.2018 / 16:30
0
answers

Problem with selenium in python

I made a program to download 64 invoices, it goes well until the ninth, but when it arrives in it selenium stops clicking without error All elif get a different id and perform the same action with it, but when it arrives at the ninth elif it...
asked by 25.10.2018 / 15:37
1
answer

I'm having a doubt on the text_input of kivy + sql

Hello, I'm trying to make a registration page and I'm doing some tests in this code, for example, I'm trying to make it when I enter a name in the user field and press enter save this data in SQL but it is giving error, could someone give me a li...
asked by 25.10.2018 / 15:49
2
answers

Guniconr / nginx / virtualenv inside Docker

I'm trying to run the tutorial routine digitalocean inside a docker machine. Using the official website gunicorn My problem happens in the attempt to make the reverse proxy inside the container. My idea was nginx on port 80, the gun...
asked by 25.10.2018 / 04:16
0
answers

ClientException

Hello, I'm taking the ClientException error and I do not know why, I've been trying to fix it for a long time and I'm still making the same mistake to upload my files (I use the Sentry) code below: This is the first message ClientException:...
asked by 17.10.2018 / 21:40
0
answers

How to play this Delphi code in Python or C

I'm developing a software for a ratchet, in the archives of it comes an example of the use of the DLL functions of it, however it is in Delphi. The following function gets a pointer to a structure called CONVFILEFORMAT FAR pF *, this structu...
asked by 19.10.2018 / 13:26
2
answers

The program should consider all validations possible. That is, it can not be allowed to access, delete or change a non-existent position from the list

How to put a statement that the position in the list is empty and that it is not possible to change or delete the value import sys lista = [] resposta = '' continua = '' while resposta != 'S': print('#### MENU ####') print('[L]istar')...
asked by 19.10.2018 / 16:49
1
answer

TypeError: string indices must be integers - PYTHON

When I try to list json, it is returning the error: save.append ((infos ['web_id']) TypeError: string indices must be integers Can you help me understand how this happened? I have little experience in python and it's basically the first AP...
asked by 26.10.2018 / 03:42
1
answer

Run python code through batch in anaconda cmd

I have a batch created to run a python file, but it is opening the windows cmd and how python is installed in anaconda, it does not work, would it have to run directly from the anaconda cmd as an administrator?    start Python c: \ scrapy \ c...
asked by 01.11.2018 / 21:43