Questions tagged as 'python-3.x'

0
answers

GUI in Python using Guizero and Raspberry Pi

I am working on my electrical engineering course completion project and need to perform a front end for graphical interface visualization for data verification. I'm using raspberry pi 3 and the guizero library to create an initial layout, how...
asked by 18.09.2018 / 22:49
0
answers

Problem in logic, how to stop an infinite loop under such circumstances?

I'm having a logic problem here: I'm developing a script for automating tasks, and I need to select the floor button. It runs every step in the established order without stopping (or while the stop_onclick button is not pressed) but I also need...
asked by 21.09.2018 / 23:33
1
answer

Show modal only if there is an active session

When someone registers your name and email I create a session and render the page with the name of who registered, but I can not understand how I do it so that the time I render the page again appears a modal . views.py: from django.sho...
asked by 19.09.2018 / 16:04
1
answer

Imports in python that are not found

Good afternoon!    I'm facing some problems with imports downloaded with the pip, more specifically imports Pypi Wikipedia and Google ...    I install both via pip install and they can be found in the site-packages folder in Python. But imports...
asked by 12.09.2018 / 20:01
0
answers

Subtotal in Columns - Pivot Table - Pandas

I'm trying to create a pivot table that has, besides the general total, a subtotal between column levels and lines as well. The lines I've already achieved through the following function: table = df_consulta.pivot_table(index=["CAT1","CAT2...
asked by 10.09.2018 / 17:29
0
answers

Error in socket module in Python

I'm trying to make a code that creates a TCP client: import socket target_host = 'www.google.com' target_port = 80 client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client.connect((target_host, target_port)) client.send('GET / HTTP...
asked by 21.10.2018 / 04:37
1
answer

I can not do web scraping properly from a Python web site

Well, I was making a code that would check the day of each comic / gif page, and if the day is the same as the current day (in the code I put 14 only because the site does not update the weekend and I I needed to test it somehow), I would downlo...
asked by 15.09.2018 / 23:39
0
answers

error: (-215) scn == 3 || scn == 4 in function cvtColor

I'm totally lazy with raspberry and I'm trying to use opencv version 3.4.2 with python 3.5.2 on raspberry pi 3 using the camera itself for raspberry to run an example facial recognition code using the camera. In linux mint, the same code runs su...
asked by 02.09.2018 / 05:58
0
answers

retrieve txt file in formatted with utf-8 in python

Good evening!    I'm having trouble recovering .txt files with python for popular lists or dictionaries, the problem is that these files do not come with uft-8 formatting. example txt content: what is today's date? (here comes a separating tab)...
asked by 10.09.2018 / 23:52
1
answer

How to use sleep for a loading effect tkinter graphical interface

I want to use the sleep of the time module to give a load / wait effect on checking for a condition. Without using tkinter functions, the effect works perfectly, but when I try to do the same with tkinter , this no longer works. Could any...
asked by 27.08.2018 / 16:06