ModuleNotFoundError

2022-06-15 Thread Zoltan Szenderak



Only on my Windows 10, on my Windows 11 works perfectly. I uninstalled and 
reinstalled python, it did not help, I tried everything I found online, 
Stackoverflow, python.org, did not help. Not just this module, others too. They 
are installed where they are supposed to be and they produce the name not found 
error. Some modules work. The Path is set in the System Environment Variables 
list.

(env) C:\Users\zszen>req3.py
Traceback (most recent call last):
  File "C:\Users\zszen\env\Scripts\req3.py", line 2, in 
import requests_html
ModuleNotFoundError: No module named 'requests_html'

(env) C:\Users\zszen>pip3 install requests_html
Requirement already satisfied: requests_html in 
c:\users\zszen\env\lib\site-packages (0.10.0)
Requirement already satisfied: requests in c:\users\zszen\env\lib\site-packages 
(from requests_html) (2.27.1)
Requirement already satisfied: bs4 in c:\users\zszen\env\lib\site-packages 
(from requests_html) (0.0.1)
Requirement already satisfied: fake-useragent in 
c:\users\zszen\env\lib\site-packages (from requests_html) (0.1.11)
Requirement already satisfied: pyppeteer>=0.0.14 in 
c:\users\zszen\env\lib\site-packages (from requests_html) (1.0.2)
Requirement already satisfied: pyquery in c:\users\zszen\env\lib\site-packages 
(from requests_html) (1.4.3)
Requirement already satisfied: parse in c:\users\zszen\env\lib\site-packages 
(from requests_html) (1.19.0)
Requirement already satisfied: w3lib in c:\users\zszen\env\lib\site-packages 
(from requests_html) (1.22.0)
Requirement already satisfied: appdirs<2.0.0,>=1.4.3 in 
c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
(1.4.4)
Requirement already satisfied: websockets<11.0,>=10.0 in 
c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
(10.3)
Requirement already satisfied: urllib3<2.0.0,>=1.25.8 in 
c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
(1.26.9)
Requirement already satisfied: tqdm<5.0.0,>=4.42.1 in 
c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
(4.64.0)
Requirement already satisfied: importlib-metadata>=1.4 in 
c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
(4.11.4)
Requirement already satisfied: pyee<9.0.0,>=8.1.0 in 
c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
(8.2.2)
Requirement already satisfied: certifi>=2021 in 
c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
(2022.5.18.1)
Requirement already satisfied: beautifulsoup4 in 
c:\users\zszen\env\lib\site-packages (from bs4->requests_html) (4.11.1)
Requirement already satisfied: cssselect>0.7.9 in 
c:\users\zszen\env\lib\site-packages (from pyquery->requests_html) (1.1.0)
Requirement already satisfied: lxml>=2.1 in 
c:\users\zszen\env\lib\site-packages (from pyquery->requests_html) (4.9.0)
Requirement already satisfied: charset-normalizer~=2.0.0 in 
c:\users\zszen\env\lib\site-packages (from requests->requests_html) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in 
c:\users\zszen\env\lib\site-packages (from requests->requests_html) (3.3)
Requirement already satisfied: six>=1.4.1 in 
c:\users\zszen\env\lib\site-packages (from w3lib->requests_html) (1.16.0)
Requirement already satisfied: zipp>=0.5 in 
c:\users\zszen\env\lib\site-packages (from 
importlib-metadata>=1.4->pyppeteer>=0.0.14->requests_html) (3.8.0)
Requirement already satisfied: colorama in c:\users\zszen\env\lib\site-packages 
(from tqdm<5.0.0,>=4.42.1->pyppeteer>=0.0.14->requests_html) (0.4.4)
Requirement already satisfied: soupsieve>1.2 in 
c:\users\zszen\env\lib\site-packages (from beautifulsoup4->bs4->requests_html) 
(2.3.2.post1)

(env) C:\Users\zszen>

Kind regards,

Zoltan


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: fill out bulletins

2022-06-15 Thread Dennis Lee Bieber
On Tue, 14 Jun 2022 11:15:47 -0400, Dennis Lee Bieber
 declaimed the following:

>On Tue, 14 Jun 2022 00:41:07 +0200, jak  declaimed the
>following:
>

>>
>>https://www.guardiacostiera.gov.it/venezia/Documents/Bollettino%20MOD.%20TD123.pdf
>


>   In either case -- they should be manageable spending some time laying
>out the "form" in any decent word processor, and developing the suitable
>mail-merge definitions and database. Or even a decent report-writer with a
>relational database.

Note: if it is the "individual/one-letter-per-box" areas that are
making it seem so difficult for mail-merge... Don't do it that way!

Use one mail-merge field for the entire data item, use a monospace
(fixed width) font (Courier, Lucida Console, etc.), and adjust the
character spacing using the word-processor formatting operation (in Word
this is under the Font pop-up dialog, "advanced" tab). Set it to "expanded"
spacing and adjust the amount of expansion until your chosen font is spaced
properly to appear as one character per form box.

https://support.microsoft.com/en-us/office/change-the-spaces-between-text-e9b96011-1c42-45c0-ad8f-e8a6e4a33462

(On LibreOffice Writer, it is under Format/Character..., Position tab on
the dialog. At least, it is on the version I have on Debian in VirtualBox.)


-- 
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ModuleNotFoundError

2022-06-15 Thread Chris Angelico
On Thu, 16 Jun 2022 at 05:00, Zoltan Szenderak  wrote:
>
>
>
> Only on my Windows 10, on my Windows 11 works perfectly. I uninstalled and 
> reinstalled python, it did not help, I tried everything I found online, 
> Stackoverflow, python.org, did not help. Not just this module, others too. 
> They are installed where they are supposed to be and they produce the name 
> not found error. Some modules work. The Path is set in the System Environment 
> Variables list.
>
> (env) C:\Users\zszen>req3.py
> Traceback (most recent call last):
>   File "C:\Users\zszen\env\Scripts\req3.py", line 2, in 
> import requests_html
> ModuleNotFoundError: No module named 'requests_html'
>
> (env) C:\Users\zszen>pip3 install requests_html
> Requirement already satisfied: requests_html in 
> c:\users\zszen\env\lib\site-packages (0.10.0)
> Requirement already satisfied: requests in 
> c:\users\zszen\env\lib\site-packages (from requests_html) (2.27.1)
> Requirement already satisfied: bs4 in c:\users\zszen\env\lib\site-packages 
> (from requests_html) (0.0.1)
> Requirement already satisfied: fake-useragent in 
> c:\users\zszen\env\lib\site-packages (from requests_html) (0.1.11)
> Requirement already satisfied: pyppeteer>=0.0.14 in 
> c:\users\zszen\env\lib\site-packages (from requests_html) (1.0.2)
> Requirement already satisfied: pyquery in 
> c:\users\zszen\env\lib\site-packages (from requests_html) (1.4.3)
> Requirement already satisfied: parse in c:\users\zszen\env\lib\site-packages 
> (from requests_html) (1.19.0)
> Requirement already satisfied: w3lib in c:\users\zszen\env\lib\site-packages 
> (from requests_html) (1.22.0)
> Requirement already satisfied: appdirs<2.0.0,>=1.4.3 in 
> c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
> (1.4.4)
> Requirement already satisfied: websockets<11.0,>=10.0 in 
> c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
> (10.3)
> Requirement already satisfied: urllib3<2.0.0,>=1.25.8 in 
> c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
> (1.26.9)
> Requirement already satisfied: tqdm<5.0.0,>=4.42.1 in 
> c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
> (4.64.0)
> Requirement already satisfied: importlib-metadata>=1.4 in 
> c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
> (4.11.4)
> Requirement already satisfied: pyee<9.0.0,>=8.1.0 in 
> c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
> (8.2.2)
> Requirement already satisfied: certifi>=2021 in 
> c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) 
> (2022.5.18.1)
> Requirement already satisfied: beautifulsoup4 in 
> c:\users\zszen\env\lib\site-packages (from bs4->requests_html) (4.11.1)
> Requirement already satisfied: cssselect>0.7.9 in 
> c:\users\zszen\env\lib\site-packages (from pyquery->requests_html) (1.1.0)
> Requirement already satisfied: lxml>=2.1 in 
> c:\users\zszen\env\lib\site-packages (from pyquery->requests_html) (4.9.0)
> Requirement already satisfied: charset-normalizer~=2.0.0 in 
> c:\users\zszen\env\lib\site-packages (from requests->requests_html) (2.0.12)
> Requirement already satisfied: idna<4,>=2.5 in 
> c:\users\zszen\env\lib\site-packages (from requests->requests_html) (3.3)
> Requirement already satisfied: six>=1.4.1 in 
> c:\users\zszen\env\lib\site-packages (from w3lib->requests_html) (1.16.0)
> Requirement already satisfied: zipp>=0.5 in 
> c:\users\zszen\env\lib\site-packages (from 
> importlib-metadata>=1.4->pyppeteer>=0.0.14->requests_html) (3.8.0)
> Requirement already satisfied: colorama in 
> c:\users\zszen\env\lib\site-packages (from 
> tqdm<5.0.0,>=4.42.1->pyppeteer>=0.0.14->requests_html) (0.4.4)
> Requirement already satisfied: soupsieve>1.2 in 
> c:\users\zszen\env\lib\site-packages (from 
> beautifulsoup4->bs4->requests_html) (2.3.2.post1)
>
> (env) C:\Users\zszen>
>

What does "pip3 --version" tell you, and what happens if you print out
sys.version at the top of your script? Also possibly sys.executable,
in case your script isn't running from inside the venv that it looks
like it ought to be working in.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list