Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I'm still waiting for the advent of the computer science groupie.


devel / comp.lang.python / Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

SubjectAuthor
o Trying to use pyinstaller under python 3.11, and, recently started receiving errJacob Kruger

1
Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: jacob.kruger.work@gmail.com (Jacob Kruger)
Newsgroups: comp.lang.python
Subject: Trying to use pyinstaller under python 3.11, and, recently started
receiving error message about specific module/distribution
Date: Sun, 31 Mar 2024 14:20:45 +0200
Lines: 127
Message-ID: <mailman.39.1711887660.3468.python-list@python.org>
References: <a372b841-7b50-4737-aaac-11cb1bb057ae@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de aHsM6lcJMtFKMjYO7MuhmQTcWNW2sBMUUFrmLMZquAVA==
Cancel-Lock: sha1:9wAHgxJDkIXSkqftm8deIbCTv/w= sha256:aV3k6IlWb2WlNKp7fpboz/pB2hlRlzdp5LZ4Qx5sZDE=
Return-Path: <jacob.kruger.work@gmail.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=gmail.com header.i=@gmail.com header.b=QS+a7vcJ;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'message:': 0.03;
'argument': 0.04; 'traceback': 0.04; '(most': 0.05; '31,': 0.05;
'last):': 0.05; "python's": 0.05; 'week,': 0.05; 'subject:python':
0.06; 'string': 0.07; 'subject:error': 0.07; 'subject:module':
0.07; 'enabled': 0.09; 'environment,': 0.09; 'freeze': 0.09;
'options,': 0.09; 'skip:^ 10': 0.09; 'subject:Trying': 0.09;
'import': 0.15; '144,': 0.16; '228,': 0.16; 'compiled': 0.16;
'exe': 0.16; 'issue?': 0.16; 'merge,': 0.16; 'pyinstaller': 0.16;
'received:mail-wm1-x335.google.com': 0.16; 'relevant,': 0.16;
'skip:" 70': 0.16; 'subject:distribution': 0.16; 'utils': 0.16;
'python': 0.16; 'instead': 0.17; "can't": 0.17; 'message-
id:@gmail.com': 0.18; 'installing': 0.19; 'to:addr:python-list':
0.20; 'all,': 0.20; 'issue': 0.21; 'skip:_ 10': 0.22; 'version':
0.23; 'code': 0.23; 'command': 0.23; 'installed': 0.23; 'skip:p
30': 0.23; 'run': 0.23; 'anything': 0.25; 'past': 0.25; 'tried':
0.26; 'output': 0.28; 'it,': 0.29; 'error': 0.29; 'header:User-
Agent:1': 0.30; 'raise': 0.31; 'think': 0.32; '"",': 0.32;
'happening': 0.32; 'resolve': 0.32; 'unless': 0.32;
'received:192.168.1': 0.32; 'windows': 0.34; 'same': 0.34;
'received:google.com': 0.34; 'running': 0.34; 'fine': 0.35;
'following': 0.35; 'from:addr:gmail.com': 0.35; 'also,': 0.36;
'lists': 0.37; 'really': 0.37; "it's": 0.37; 'received:192.168':
0.37; 'file': 0.38; 'list': 0.39; 'case.': 0.40;
'subject:message': 0.40; 'something': 0.40; 'try': 0.40; 'should':
0.40; 'in,': 0.60; 'likely': 0.61; 'skip:o 10': 0.61; '25,': 0.62;
'full': 0.64; 'validation': 0.64; 'required': 0.65; 'less': 0.65;
'worked': 0.67; 'and,': 0.69; 'following:': 0.69; 'within': 0.69;
'receive': 0.71; 'virtual': 0.71; 'skip:f 20': 0.75; 'moment':
0.81; '34,': 0.84; 'collect,': 0.84; 'etc.,': 0.84; 'skip:" 100':
0.84; 'skip:" 90': 0.84; 'subject: \n ': 0.84; 'subject:specific':
0.84; 'caused': 0.86
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1711887657; x=1712492457; darn=python.org;
h=content-transfer-encoding:subject:from:to:content-language
:user-agent:mime-version:date:message-id:from:to:cc:subject:date
:message-id:reply-to;
bh=Qs87g1DeK1XOolR5LVSm/RoolzMsgOMFSxkW3t9O3r0=;
b=QS+a7vcJASknOJViiQwez0HTlAzVLuwfzJHRwClkKodVkCEnD4/dY4jUwhmc9Hy9Rk
eoIL+YxI1V75L4lrj+5XWOx5ibOYi5VcHE4pVRHhAv+r8s48c9ude27EqSJBvqculdlp
Crr4s6VQL++E6UnObz2cD3D9lGe9xdBLmXNCjsbZhYvspw1z90L5QVzcC85AumZAFDV8
ewwk7z1yWtx4M/mLnpmSNpuOi6kXKJvlZk/mb+DhmcAN2gQGTbSU0NPHYKsr3iRjsi2U
LbVWEBpLKfn1hni2EGLk0qveB4PoFjOBlDAxSu0wgYCybwDfaA3pne0B8Lq4DTe5IGhY
R37g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1711887657; x=1712492457;
h=content-transfer-encoding:subject:from:to:content-language
:user-agent:mime-version:date:message-id:x-gm-message-state:from:to
:cc:subject:date:message-id:reply-to;
bh=Qs87g1DeK1XOolR5LVSm/RoolzMsgOMFSxkW3t9O3r0=;
b=GJOXRzMOJfdWmJc0CFeN5e5WKnmzTPftLb5ll/gD3wkGNyiUU8n4VUV9Ll33m7i18I
zrMFSKHCOiwL8GqWncujHKtsT2vZg4FxINrIBdWdBcqXw1h/f3fKjCybwDymglCN7vVO
bI65pFwbdes45mEQhvmu6uU62sojqT9j6f8glJc+1vlVi4wtewYu8agUV3Ui/mOrcK1n
szqqHuwgpHTAP2HtG++WkhPWmTxO3KaDsHhao/QwFahAvNQL8GabXa51mJsd6XbNfMj8
BPBRf3qafni2Ks3FQHMTcO5OfRRa+hXPJyfDwzXqG4LkK2xQQx8+riNZWvHirHyNHdyL
XUwg==
X-Gm-Message-State: AOJu0Yy+q7WyuYa+T5Hzyhq28u5i7HiSEmCxngEWwg4n64I4LV93TijP
Atyl+AV2CuBr7vbM+7nXrC0qpKgZSGynCUWwG/e48nfBgIAVENEQUIz6JHNj
X-Google-Smtp-Source: AGHT+IGi1iuGuOphKHddhKIDj6SOC1zp+eR6oQlW96pEzVpju1mibrBunXXVRsjdfQpyaGSWqaYaWg==
X-Received: by 2002:a05:600c:470e:b0:414:93ad:98a6 with SMTP id
v14-20020a05600c470e00b0041493ad98a6mr6346511wmo.37.1711887657317;
Sun, 31 Mar 2024 05:20:57 -0700 (PDT)
User-Agent: Mozilla Thunderbird
Content-Language: en-US
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: <a372b841-7b50-4737-aaac-11cb1bb057ae@gmail.com>
 by: Jacob Kruger - Sun, 31 Mar 2024 12:20 UTC

This started happening this past week, and, while it's worked fine in
the past, the moment I try to launch the pyinstaller process at all, to
generate compiled output, or even if just launch it with no command line
options, I receive the following error message:

pkg_resources.DistributionNotFound: The 'altgraph' distribution was not
found and is required by the application

The full contents of the output string when I even try to just launch
pyinstaller with no commands/arguments is the following:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File
"C:\pythonScripts\monitoring_nssm\venv\Scripts\pyinstaller.exe\__main__.py",
line 7, in <module>
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\__main__.py",
line 228, in _console_script_run
run()
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\__main__.py",
line 170, in run
    parser = generate_parser()
^^^^^^^^^^^^^^^^^
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\__main__.py",
line 136, in generate_parser
    import PyInstaller.building.build_main
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\building\build_main.py",
line 28, in <module>
    from PyInstaller.building.api import COLLECT, EXE, MERGE, PYZ
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\building\api.py",
line 32, in <module>
    from PyInstaller.building.splash import Splash  # argument type
validation in EXE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\building\splash.py",
line 23, in <module>
    from PyInstaller.depend import bindepend
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\depend\bindepend.py",
line 25, in <module>
    from PyInstaller.depend import dylib, utils
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\depend\utils.py",
line 31, in <module>
    from PyInstaller.lib.modulegraph import modulegraph
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py",
line 34, in <module>
    from altgraph.ObjectGraph import ObjectGraph
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\altgraph\__init__.py",
line 144, in <module>
    __version__ = pkg_resources.require("altgraph")[0].version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\pkg_resources\__init__.py",
line 952, in require
    needed = self.resolve(parse_requirements(requirements))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\pkg_resources\__init__.py",
line 813, in resolve
    dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
  File
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\pkg_resources\__init__.py",
line 854, in _resolve_dist
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'altgraph' distribution was not
found and is required by the application

# ---end of output---

I have tried completely removing python's installation, and,
reinstalling it, but, same issue more or less immediately.

If I freeze pip's installed list within this specific virtual
environment, it lists the following:

altgraph==0.17.4
packaging==24.0
pefile==2023.2.7
pyinstaller==6.5.0
pyinstaller-hooks-contrib==2024.3
pywin32-ctypes==0.2.2

# ---end of requirements.txt---

And, if, just for testing, I launch python interpreter, and, ask it to
import altgraph, it provides the same last line of error output?

If relevant, running with python 3.11.8, under windows 11 64-bit, and,
can't think of anything that specifically occurred/changed this past
week, besides normal things like windows updates, etc., but, don't
really think that's likely to be relevant, unless something to do with
pywin32 has caused an issue?

Should I try installing python 3.12 version instead and see if it changes?

Also, if relevant, while running under latest up-to-date version of
windows 11 64 bit, have in any case enabled case-sensitivity on the
folder I store all my python code in, just in case.

TIA

--

Jacob Kruger
+2782 413 4791
"Resistance is futile!...Acceptance is versatile..."

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor