Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"They ought to make butt-flavored cat food." --Gallagher


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

SubjectAuthor
o Re: Trying to use pyinstaller under python 3.11, and, recently started receivingJacob Kruger

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

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

  copy mid

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

  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: Re: Trying to use pyinstaller under python 3.11, and, recently
started receiving error message about specific module/distribution
Date: Thu, 4 Apr 2024 10:47:07 +0200
Lines: 82
Message-ID: <mailman.69.1712220442.3468.python-list@python.org>
References: <ac0dc14a-bec5-4e3c-a6f8-22eb68e797b6@gmail.com>
<C1B599CA-15F4-4105-9BAD-6052A82EC5EF@barrys-emacs.org>
<1c7deaf7-617c-40fd-86d3-be0f50186cdd@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 VPxe1Jm0oIksGHEjhbV/NAD3k/CbddInXtdGwROPtR3w==
Cancel-Lock: sha1:5rrc5K9b35pJ//pxZZnQjz5xjng= sha256:vyPLAihVVWXUbIRWLjRQfG7/dwNSLjb47IupLdRk0F0=
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=US0raF/n;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'looks': 0.02; 'argument':
0.04; 'containing': 0.05; 'windows,': 0.05; 'subject:python':
0.06; 'linux,': 0.07; 'mar': 0.07; 'subject:error': 0.07;
'subject:module': 0.07; 'anyway,': 0.09; 'developers.': 0.09;
'enabled': 0.09; 'environment,': 0.09; 'environments': 0.09;
'ok,': 0.09; 'subject:Trying': 0.09; 'url:mailman': 0.15; '3.10':
0.16; '>>>>': 0.16; '>>>>>': 0.16; 'anyway.': 0.16; 'barry': 0.16;
'executables': 0.16; 'like.': 0.16; 'machine,': 0.16; 'many,':
0.16; 'mentions': 0.16; 'modules,': 0.16; 'pip,': 0.16;
'pyinstaller': 0.16; 'relevant,': 0.16; 'resolutions': 0.16;
'stick': 0.16; 'subject:distribution': 0.16; 'tests,': 0.16;
'times,': 0.16; 'wrote:': 0.16; 'python': 0.16; 'instead': 0.17;
'message-id:@gmail.com': 0.18; 'implement': 0.19; 'to:addr:python-
list': 0.20; 'issue': 0.21; 'mac': 0.22; 'version': 0.23; 'code':
0.23; 'command': 0.23; 'installed': 0.23; 'skip:p 30': 0.23;
'run': 0.23; 'list,': 0.24; 'url-ip:188.166.95.178/32': 0.25;
'url-ip:188.166.95/24': 0.25; 'python,': 0.25; 'url:listinfo':
0.25; 'url-ip:188.166/16': 0.25; '11,': 0.26; 'else': 0.27; '>>>':
0.28; 'output': 0.28; 'sense': 0.28; 'environment': 0.29; 'it,':
0.29; 'error': 0.29; 'header:User-Agent:1': 0.30; 'code,': 0.31;
'url-ip:188/8': 0.31; 'wondering': 0.31; 'think': 0.32; "doesn't":
0.32; 'disabled': 0.32; 'files,': 0.32; 'python-list': 0.32;
'words,': 0.32; 'received:192.168.1': 0.32; 'but': 0.32;
'mailing': 0.33; 'there': 0.33; 'windows': 0.34; 'able': 0.34;
'same': 0.34; 'header:In-Reply-To:1': 0.34; 'received:google.com':
0.34; 'running': 0.34; 'trying': 0.35; 'runs': 0.35; 'following':
0.35; 'from:addr:gmail.com': 0.35; 'also,': 0.36; 'target': 0.36;
'people': 0.36; 'source': 0.36; 'couple': 0.37; 'really': 0.37;
'using': 0.37; "it's": 0.37; 'received:192.168': 0.37; 'file':
0.38; 'quite': 0.39; 'single': 0.39; 'mentioned': 0.39; 'use':
0.39; 'to.': 0.39; 'still': 0.40; 'exact': 0.40; 'match': 0.40;
'subject:message': 0.40; 'something': 0.40; 'want': 0.40; 'try':
0.40; 'in,': 0.60; 'including': 0.60; 'search': 0.61; 'here.':
0.61; 'seen': 0.62; 'mainly': 0.64; 'required': 0.65; 'skip:t 20':
0.66; 'now,': 0.67; 'that,': 0.67; 'and,': 0.69; 'discussing':
0.69; 'end,': 0.69; 'perfectly': 0.69; 'working,': 0.69; 'older':
0.70; 'virtual': 0.71; 'causing': 0.75; 'skip:f 20': 0.75; 'out,':
0.78; 'leads': 0.81; 'names,': 0.81; 'reference.': 0.81;
'happens': 0.84; 'choice,': 0.84; 'subject: \n ': 0.84;
'subject:specific': 0.84; 'utilities,': 0.84; 'errors,': 0.91;
'received:mail-lj1-x22b.google.com': 0.91; 'was,': 0.91;
'operates': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1712220440; x=1712825240; darn=python.org;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:from:to:cc:subject:date:message-id:reply-to;
bh=0cxpnxNEQlccQHsJ6/d4jez9d/26rgtp/ttXLnJ9Iwk=;
b=US0raF/nUR5/1Gwo7iYh9TZb21nciq9j+ejfFlpKAlpStThBqpcPNSEPyFinHJ1l7o
XFJYSXSR6KduZpBgbtliuw2KYaVzS1UQH/EeBMSq+BrjSWXajMTK0a45nzC+uZIRoaOH
GtInJx/IRAXpWB3aSlS95vRCg3hT9V54wd7zpVmUMgIXmev3mNG4JugpNzUBss31hQN4
/8GjmYWqIkjAGTCVYETlG0a803H859/EHLJr4Jc8SKOrrEL+j4VV5WIWMwv/MG40ODBk
/Qxkhy5CSRQ0edJkubX2p9W2jt0Pu4f6OpLbn4A8rG0UxYEiGzWcHXDJI+UuQKCScCAT
HMZA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1712220440; x=1712825240;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=0cxpnxNEQlccQHsJ6/d4jez9d/26rgtp/ttXLnJ9Iwk=;
b=p5BXl9JWWrPwLeYmo4YXcta+CHwq2dKEaBquqxSZbpi5pryshExxTcSNZvLFSJQqZC
fCkRjhAOPI+zPbDiKGtOlJQWKenFVrVZxlue2qcxyBrrWSwC/MeMTq7jSMG5RAF69OyS
EAFp6V+W6owykzf+yLr401aXSZJPxKKZgW34+LS8jSSsm/ddEj3FJ4NxPogBgO+2sx1Q
SdpvUQdIlwWFmvbBggyXnvu+UQPQnoKyd3gzmQHFyM6ajxW97FIJox/v0oZc1Lmi24aq
jjSxIVuUW+4T1wJsW70UKfsywza1Rok9MGW0tZp3OGXH97XI/YX3PDBwiWlX5DeFxgQg
gEKw==
X-Gm-Message-State: AOJu0YyACXQK5RJLKn1DPBCmT29tYnlMSIRfAehW24QN3WfhBa7nVREG
j+IogGATU0/iec2kBf01j29S/ewStkKyV8HBUkgOj3MCpM6U0uVZfBDz8WL4W4g=
X-Google-Smtp-Source: AGHT+IEf9wk4USvDtGohDlqVlLSvqaJaKbqT1Ja8tgT0rDpIJK5saFAUfn2dsVI4P3CfuetWHPLNLQ==
X-Received: by 2002:a05:651c:42:b0:2d6:c4ec:782 with SMTP id
d2-20020a05651c004200b002d6c4ec0782mr1351774ljd.49.1712220439480;
Thu, 04 Apr 2024 01:47:19 -0700 (PDT)
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <C1B599CA-15F4-4105-9BAD-6052A82EC5EF@barrys-emacs.org>
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: <1c7deaf7-617c-40fd-86d3-be0f50186cdd@gmail.com>
X-Mailman-Original-References: <ac0dc14a-bec5-4e3c-a6f8-22eb68e797b6@gmail.com>
<C1B599CA-15F4-4105-9BAD-6052A82EC5EF@barrys-emacs.org>
 by: Jacob Kruger - Thu, 4 Apr 2024 08:47 UTC

Ok, had received response on pyinstaller mailing list, but, also just
related to trying clean uninstall/reinstall of modules, but, while
checking that out, something else occurred to me, and, it now operates
as it should.

Anyway, what seemed to be causing issue was actually that, since, while
am working under windows 11, quite often you might need to work with
case-sensitivity in file names, not by choice, but, since a lot of
target platforms, like linux, etc. are case-sensitive, and, at times,
when working with external modules, this might cause hassles, etc.

In other words, the folder/directory where all my python source code is
stored is set to be case-sensitive - there are a couple of ways to
implement this under windows 10 and windows 11, via some external
utilities, or by running the following command from a
terminal/power-shell window, running it as administrator:

fsutil.exe file SetCaseSensitiveInfo C:\folder\path enable

If you instead use disable argument at the end, it then disables
case-sensitivity, and, what did now was, under current project/test
code, I created an additional sub-folder, copied code files, etc. over
into it, disabled case-sensitivity on it, recreated the virtual
environment, and installed all required modules, including pyinstaller
using pip, and, when I then run pyinstaller from there, it works fine,
and, does what I want it to.

In other words, something to do with having case-sensitivity enabled
recursively on the folder/directory containing the code and the virtual
environment seemed to be causing these errors/issues, specific to
altgraph, which doesn't really make sense to me, but, it's now working,
so, will archive this to memory, for later reference.

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

On 2024/04/02 17:11, Barry wrote:
>
>> On 1 Apr 2024, at 15:52, Jacob Kruger via Python-list <python-list@python.org> wrote:
>>
>> Found many, many mentions of errors, with some of the same keywords, but, no resolutions that match my exact issue at all.
> Try asking the pyinstaller developers. I think there is a mailing list.
>
> Barry
>>
>> As in, most of them are mentioning older versions of python, and, mainly different platforms - mac and linux, but, various google searches have not mentioned much of using it on windows, and having it just stop working.
>>
>>
>> Now did even try shifting over to python 3.12, but, still no-go.
>>
>>
>> If launch pyinstaller under python 3.10 on this exact same machine, pyinstaller runs - just keep that older version hovering around for a couple of occasional tests, partly since some of my target environments are still running older versions of python, but anyway.
>>
>>
>> Also, not really relevant, but, cx_freeze is perfectly able to generate executables for this same code, but, then not combining all output into a single file - will stick to that for now, but, not always as convenient, and, still wondering what changed here.
>>
>>
>> Jacob Kruger
>> +2782 413 4791
>> "Resistance is futile!...Acceptance is versatile..."
>>
>>
>>> On 2024/03/31 14:51, Barry wrote:
>>>
>>>>> On 31 Mar 2024, at 13:24, Jacob Kruger via Python-list <python-list@python.org> wrote:
>>>> pkg_resources.DistributionNotFound: The 'altgraph' distribution was not found and is required by the application
>>> I think I have seen this error being discussed before…
>>>
>>> A web search for pyinstaller and that error leads to people discussing why it happens it looks like.
>>>
>>> Barry
>>>
>>>
>> --
>> https://mail.python.org/mailman/listinfo/python-list

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor