Questions tagged as 'python'

1
answer

How to use two decorator APIs in Appweb Flask

I'm new to the programming world and I'm looking forward to a more in-depth web application. I made a resquests of a json dictionary of two different api. IwanttoputthisdatascrapingintoatableinmyindexpagesoI'mnotsurehowtodothiswithtwoapi....
asked by 27.09.2018 / 22:50
0
answers

How to change the contents of a window in PyQT 5?

I'm using PyQT 5 to develop a user interface and I'm having a question: how do I change the contents of an area within the main window? I want to do this because I do not want to have to create a new window every time I want a different layout. T...
asked by 25.09.2018 / 01:38
0
answers

How to configure env variables with subprocess in python in Windows 10?

I'm trying to create a script to assist in creating virtual env with virtualenvwrapper-win in Windows 10. I've researched a lot and so far I have not found a solution to the initial settings. First I would like to configure 'WORKON_HOME =' to...
asked by 22.09.2018 / 15:05
1
answer

GitLab CI passes the test even with error

I'm working with python / flask in an application. I want to test the CI of GitLab, so I did a test that generates an error, just to see how it would work. But, it happens that the CI passes the Job even giving error. can you help me?     
asked by 22.09.2018 / 15:27
0
answers

Execute remote CMD commands in python (PSEXEC)

Here is a test where you get the error: import subprocess ip = '192.168.15.5' ipDest = '\\' +ip subprocess.Popen(['psexec', '/s', ipDest, 'cmd'], shell = True) Error presenting:    'psexec' is not recognized as an internal command   or...
asked by 19.09.2018 / 02:46
1
answer

How do I change the contents of a qLabel at runtime?

Good afternoon everyone! I need each qLinedit row to be numbered in ascending order from 1 to 24, I created a qLabel for this, but I do not know how to make it change the numbering according to each line, I could only print a lot of [i] as shown...
asked by 18.09.2018 / 23:04
0
answers

Make post request in python by sending a base64 image

Hello, I am studying python and I am trying to create a post in python that receives an image, saves it to the computer and sends it to an external service through a request.post. aux = imagem.read().encode("base64") files = {'file':aux} hea...
asked by 28.09.2018 / 23:39
1
answer

How can I use Scrapy on Anaconda

Hello, I'm having trouble creating a project with Scrapy. I'm studying data science in college and I have to use Scrapy. I'm using the Anaconda. First through the Spider IDE (Anaconda Navigator), I am now trying for the same prompt. The problem...
asked by 18.09.2018 / 02:58
0
answers

Problem integrating Ajax with Django code

I was making a code which reads a weather forecast and shows the value on a web platform, and the value is updated after a certain amount of time without needing to refresh the page. I was trying to accomplish in django, but I'm having trouble i...
asked by 18.09.2018 / 02:58
1
answer

Error X has 2 features per sample; expecting 3147

I'm trying to work with predictions, Machine Learning, but I've been having predicament problems from the saved workout, according to the following error: predict(file_name) File "C:/Python/categoriesTest/CategoriaTestFunctions.py", line...
asked by 18.09.2018 / 13:59