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

2024-04-04 Thread Jacob Kruger via Python-list
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  
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  
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

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


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

2024-04-03 Thread Jacob Kruger via Python-list
Ok, last update for now - checked out the following page on 
pyinstaller.org, and, ended up posting to the mailing list, so, let's see:


https://pyinstaller.org/en/latest/when-things-go-wrong.html


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

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


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

2024-04-02 Thread Barry via Python-list


> On 1 Apr 2024, at 15:52, Jacob Kruger via Python-list 
>  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 
  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

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


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

2024-04-01 Thread Jacob Kruger via Python-list
Found many, many mentions of errors, with some of the same keywords, 
but, no resolutions that match my exact issue at all.



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


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

2024-03-31 Thread Barry via Python-list


> On 31 Mar 2024, at 13:24, Jacob Kruger via Python-list 
>  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


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

2024-03-31 Thread Jacob Kruger via Python-list
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 "", line 198, in _run_module_as_main
  File "", line 88, in _run_code
  File 
"C:\pythonScripts\monitoring_nssm\venv\Scripts\pyinstaller.exe\__main__.py", 
line 7, in 
  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 

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

    from PyInstaller.depend import bindepend
  File 
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\depend\bindepend.py", 
line 25, in 

    from PyInstaller.depend import dylib, utils
  File 
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\depend\utils.py", 
line 31, in 

    from PyInstaller.lib.modulegraph import modulegraph
  File 
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", 
line 34, in 

    from altgraph.ObjectGraph import ObjectGraph
  File 
"C:\pythonScripts\monitoring_nssm\venv\Lib\site-packages\altgraph\__init__.py", 
line 144, in 

    __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..."


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