Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Linux is obsolete -- Andrew Tanenbaum


devel / comp.lang.python / Re: ModuleNotFoundError

SubjectAuthor
* ModuleNotFoundErrorZoltan Szenderak
`- Re: ModuleNotFoundErrorStefan Ram

1
ModuleNotFoundError

<mailman.629.1655319570.20749.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18617&group=comp.lang.python#18617

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: z.szende...@hotmail.com (Zoltan Szenderak)
Newsgroups: comp.lang.python
Subject: ModuleNotFoundError
Date: Wed, 15 Jun 2022 07:13:20 +0000
Lines: 74
Message-ID: <mailman.629.1655319570.20749.python-list@python.org>
References: <DB6PR0602MB327286CB1372993D0E278178E0AA9@DB6PR0602MB3272.eurprd06.prod.outlook.com>
<DB6PR0602MB3272B26D6955A91AE7167887E0AD9@DB6PR0602MB3272.eurprd06.prod.outlook.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de y2aYeZ4cPdhWovUd07ygNg+3vBh6lkqgQuRqXl45Q7mw==
Return-Path: <z.szenderak@hotmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=hotmail.com header.i=@hotmail.com header.b=b3Mi7Nol;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.010
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'traceback': 0.04; '(most':
0.05; 'last):': 0.05; 'modules': 0.07;
'received:eur05-am6-obe.outbound.protection.outlook.com': 0.07;
'bs4': 0.09; 'parse': 0.09; 'perfectly.': 0.09;
'received:40.92.91': 0.09; 'url-ip:13.107.213.67/32': 0.09; 'url-
ip:13.107.213/24': 0.09; 'url-ip:13.107.246.67/32': 0.09; 'url-
ip:13.107.246/24': 0.09; 'help,': 0.14; 'import': 0.15;
'python.org,': 0.16; 'uninstalled': 0.16; 'to:addr:python-list':
0.20; 'skip:& 40': 0.22; 'install': 0.23; 'installed': 0.23;
'skip:p 30': 0.23; 'to:name:python-list@python.org': 0.24;
'help.': 0.25; 'python,': 0.25; 'tried': 0.26; 'requests': 0.28;
'environment': 0.29; 'module': 0.31; 'path': 0.33; 'windows':
0.34; 'work.': 0.34; 'header:In-Reply-To:1': 0.34; "skip:' 10":
0.37; 'others': 0.37; 'url-ip:13.107/16': 0.38; 'file': 0.38;
'skip:u 20': 0.39; 'skip:i 50': 0.60; '10,': 0.61; 'skip:b 30':
0.61; 'skip:i 20': 0.62; 'skip:b 20': 0.63; 'skip:m 20': 0.63;
'everything': 0.63; 'skip:b 10': 0.63; 'skip:r 20': 0.64;
'online,': 0.64; 'requirement': 0.64; 'skip:t 40': 0.64;
'produce': 0.65; 'named': 0.65; 'skip:t 20': 0.66; 'skip:b 40':
0.69; 'skip:w 20': 0.69; 'skip:t 60': 0.70; 'too.': 0.70;
'supposed': 0.76; 'subject:skip:M 10': 0.91
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=jktL075+aqzR86nLOnjyLfSnrEWOZaYDz3KdKpJzawjt9Du3JjLh+IQOHdt1BL3krjXT6Rzivmmw9u8xuerd0KBQbb5+DcvcNl5vSVXmPoXRkjnsNTyYu8iLbWlDI6pggR79w4THcXYipiZ7FJE+mWUMYkkcgfPcN40aBjalO0hLMGQ0IU5TcJj0B4vAHGjwTUesb1xvbNgLOvOBQD7zZbJULfNloKpbGytFJ+A50Ksc6xo4N0b+ZapP9/F8WgDIQSIrOOApJe1dcEViuN3lN9FK/bYJdvbW8Uis4IOtIpLpZkzgaSEMO1pOxdkWOA2oQEjSg6LCuYrbUfic2ibWoQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=aEkhlI0c8k1Rsw5w+tcakU8bJhzdyi3ItgZWhzgTf8k=;
b=gRFphhKNx7pIN1eiMvKRSkXuk9foDbEHNQ5ZnKqfQxgkNnXgi6sbnLBNHI4l2wrZa4IwORfWrjEJZVuZBehCDOlEtobB7PgT3SbfgLcyJGIt5qHkOBpw0kqd0/oumZEKuHBYeh85gDG+UOtBnvk/iifxaoJc4IjZrk0DsM5VlqNKezwaUoKhYt19a8+gk9jtuYvUYaCXwWUHbs1pFJcsTVcHCmSkVvcA82R196F6Bdw43sph4x8KfAuUPjnM55UxEZgM9SpD/BNY4dXRVxmUG46cxHl8iqLKbL7W7bGaw4l8hiU/4xpwEsSf3ZE9sDHIDu1PjMFi/10YI3pRBcxyWw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=aEkhlI0c8k1Rsw5w+tcakU8bJhzdyi3ItgZWhzgTf8k=;
b=b3Mi7Nolfrqh1jbAb1NTAEqv1kInX31R1p2NyDCltG6WnEFOyQRVkljWgAQHK8GfQFqtZgrIe5SNIl7qq1jC/9hImpepD4607cV1pTMd/k0d47HkSZd05wkgCQMpQWamLLyhq7nhtFw+QEnd4LLSJYnQe8bM8AhXhv1u8h2eYq7quvFvPsOQ4mQLKKw43oR5KAHo2Dwox1wSsClwMWGG3Xq8alloepgXWgS354s0liPwogiuUpeUm/UU4Tk4yA8s/HDEcPfQx5Jv03Xk9xrYA9LQUEsyxDFKakWAAAFAGYDhhJEuA190UaB5yRLw4f7NvlQYBvGXlMJM2icD3aq5wA==
Thread-Topic: ModuleNotFoundError
Thread-Index: AQHYgAB8+SCZORGi/EKu5BGbmvSODK1QDYzD
In-Reply-To: <DB6PR0602MB327286CB1372993D0E278178E0AA9@DB6PR0602MB3272.eurprd06.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [YNiTuz5xwPgqwP7za2nsE6bQRD4GkncUpwAXo9vzjnlUUfKnI2jRelw/syYFtkZg]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 0cf63800-f2b7-4228-11c3-08da4e9e8749
x-ms-traffictypediagnostic: DB3PR0602MB3740:EE_
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: vFiy41MTSgxgur4laT2ora/BbL4WeyO09ZbNj6laOtu0IDDfUNL2IGDhu4RPYMl2sjpItDvcRxMz3HfXSnUXel5agYpZQOD4JqLxV/af6uyeo/pY/Pz2bdvtuKpbjU3+qXgzRkDz02uOAEwN9Ohs8nJWis0mCMVn1AZJK/+KsD3a7c+dIYRcJe1Gvod/QCyuT1s01ce6pdVt+C9bLaQJbHX7Zvhp1Cy0VXLm/rzeKpIA+Spc9swD9CWUr0vRWGAq2G42mytA7oAC/07J4UjsIZ6ozyeLuJp2y0LzOulEPVmmzDpQXweqs0S/9MLevyJ2MNCkW2/wtbeBA+qFdjuMCD2UwpkFbgsKHljl70CCp3S9T4hSV98jpU8hvR9P0niUfhrSwY+hBg8ZWbYn3RFhSsS0WVAiIwNm1yBGghdQGKEXbtVaH39ZJeftpr4A6nTJ7q7/qw+0TZsWRznkcvEXo/VT+YnG5D62gkNxRIorrbSkhSpLrH8RdZj3/XJhKWRtB1TAS+q2HhzVI7tN5B9k9MRnYTCAkgHAwgy0ZI7b2JF54pNy+KfZGSdn7pAOEEiL37jXZ7UUk7m29hxcY7s+cA==
x-ms-exchange-antispam-messagedata-chunkcount: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feg2Y+Ar7RXTsIoLJv2WKu8PXboYvYBvBYQ9ApxAIJE1+Foqw2yPU
XBo4k0NxSk16b/jPpwwlu+A0lHTcRPWujf61dQpBJBNCQ663pFjSIF4lnmh4
IMb7t5HfXq5eqN/llz79Tchyum0M/gHOd5vrHgl4vYc1Na3ybYHhcm9pAVrD
ww8MiND8h0bVSG1nzEivqhJUd4kJAK2XR7TqrEGshGmz3ysUaBitjyexPtnH
T6tEf9Cs7nkZeB/lv5Ra7gXPKowwE6/c8VXOBIavtclDixkesQYsUmRuX+kd
2PtiqY0NwvDMYLVcuOtiMJzaE9xrJjX9zPiMTEOurbaFTyOp6w/EXega4Tmm
x0BV32c4P0BLrbJNZug0xR5AK+zkCGLLlhi5ZX7GmsxVqfOL+8nuff8cSSza
4FYh+F2xZ8PYq633S6myVVRy+pURXGDM8qsNlvTzo5GvfGAapuNq/TivPO48
s208Ykviy6kPX9rVL3CguSg/SKRGrYTKt/wl
X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DB6PR0602MB3272.eurprd06.prod.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 0cf63800-f2b7-4228-11c3-08da4e9e8749
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2022 07:13:20.7233 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0602MB3740
X-Mailman-Approved-At: Wed, 15 Jun 2022 14:59:29 -0400
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <DB6PR0602MB3272B26D6955A91AE7167887E0AD9@DB6PR0602MB3272.eurprd06.prod.outlook.com>
X-Mailman-Original-References: <DB6PR0602MB327286CB1372993D0E278178E0AA9@DB6PR0602MB3272.eurprd06.prod.outlook.com>
 by: Zoltan Szenderak - Wed, 15 Jun 2022 07:13 UTC

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 <module>
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

Re: ModuleNotFoundError

<pip-20220615200321@ram.dialup.fu-berlin.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18618&group=comp.lang.python#18618

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram...@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: ModuleNotFoundError
Date: 15 Jun 2022 19:14:57 GMT
Organization: Stefan Ram
Lines: 40
Expires: 1 Apr 2023 11:59:58 GMT
Message-ID: <pip-20220615200321@ram.dialup.fu-berlin.de>
References: <mailman.629.1655319570.20749.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 6JOUIEews43GxCnyC/EYCgQ+oJP9CF1bXE2gf2h0eco5PR
X-Copyright: (C) Copyright 2022 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Accept-Language: de-DE, en-US, it, fr-FR
 by: Stefan Ram - Wed, 15 Jun 2022 19:14 UTC

Zoltan Szenderak <z.szenderak@hotmail.com> writes:
>ModuleNotFoundError:

You installed a module using pip, but Python can't find it.

1st idea

Check out which versions are installed:

py -0

. Make sure, you use the same version of Python and pip, for
example, to use version 3.7:

py -3.7 -m pip install

(possibly append " --user " and then append the name of the
module to install for 3.7 to this line),

then, to start the program,

py -3.7

(append the path to your Python source file the this line).

This would mean that you would use Python 3.7 both for pip
/and/ for your application.

2nd idea

Add this to the start of your script:

import sys
print( sys.path )
sys.exit( 0 )

. Now make sure that the module you need is in one of those
paths shown.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor