I have a code and I need to use threads, but always squeeze threads to give this error.
import pyHook
import pythoncom
import os
import threading
import time
import tempfile
import datetime
import smtplib
from email.mime.text import MIMEText
f...
I'm trying to read some XML files with the Element Tree of Python, but one of them, when I go to do the parser gives me this error:
xml.etree.ElementTree.ParseError: not well-formed (invalid token)
This is the line that gives the err...
CEF changed the way it displays lottery results on its site, before I was able to get the results that all came into HTML via webscraping relatively easily using BealtfulSoup, but now those results are displayed running via javascript browser. I...
I'm starting my studies in programming, I decided to start with python, and in one of the videotapes the teacher said to type:
import math
But when I type import I can not find this library, and videotape is dated from last year. I would li...
Hello,
I'm not able to import any library in python using pycharm. When I type, for example, the command import time , the words go gray and do not bring anything.
I am developing an application for the generation of reports of fiber-optic certifications, and such reports are elaborated by importing XML and TXT files. The question is this:
A certification is made within an "Excerpt", which has the follo...
I'm having a big problem with Django requests. In the last few months I've upgraded to Django 2.0, and I'm updating all the libs.
I noticed that this impacted on a number of scripts I had, mostly those that talk to https. For example, my Push...
I'm studying a book Automating Massive Tasks with Python. I'm on page 317 that talks about Selenium WebDriver about methods of finding elements on pages.
Table 11.3 - The Selenium WebDriver methods for finding elements.
After doing this littl...
I'm doing a very simple example using Django.
In my view I have the following:
def index(request,idade):
string = '''
{% if idoso >= 65 %}
Você já é idoso
{% else %}
Você não é idoso
{...
I have a python project that runs inside a Docker.
When the (Build) image is assembled reliably from a
RUN pip install -r requirements.txt
but when it executes the command it returns a connection error.
Complete Dockerfile
FROM pyt...