[issue43229] freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu

2021-03-09 Thread Christian Bachmaier
Christian Bachmaier added the comment: As for some time now, first I have to manually fix https://bugs.python.org/issue40350 first, i.e., use the recommended workaround not None check for spec.loader in /usr/lib/python3.9/modulefinder.py. Setting LIBDIR to /usr/lib/x86_64-linux-gnu

[issue43229] freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu

2021-02-28 Thread Christian Bachmaier
Christian Bachmaier added the comment: Anyone? -- ___ Python tracker <https://bugs.python.org/issue43229> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43229] freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu

2021-02-23 Thread Christian Bachmaier
Change by Christian Bachmaier : -- type: -> compile error ___ Python tracker <https://bugs.python.org/issue43229> ___ ___ Python-bugs-list mailing list Un

[issue43229] freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu

2021-02-23 Thread Christian Bachmaier
Christian Bachmaier added the comment: The same situation in Ubuntu development branch's package python3.9.2-0ubuntu2 . Inserting the follwing if sysconfig.get_config_var('MULTIARCH'): masd = sysconfig.get_config_var('multiarchsubdir') if masd.startswith(os.sep

[issue43229] freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu

2021-02-15 Thread Christian Bachmaier
Christian Bachmaier added the comment: Sorry, my Ubuntu version I mentioned above is the development version of 21.04 and not 20.04. I you would like or this would be a comfortable option for you, I can show this live/interactively in a shell of my test system to track down the error, say

[issue43229] freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu

2021-02-15 Thread Christian Bachmaier
New submission from Christian Bachmaier : Now that the patch from issue 42591 (https://bugs.python.org/issue42591), i.e., msg383154 from 12/16/20 has made it to Ubuntu 20.04 with packet version python3.9.1-1, there show some problems with that. I did: > freeze/freeze.py -o fro

[issue42591] Method Py_FrozenMain missing in libpython3.9

2020-12-16 Thread Christian Bachmaier
Christian Bachmaier added the comment: Vistor Stinner: > If you can test it, I can backport the fix to stable branches. Seems to work like a charm. Basically I used the same testing setup as previously on Dec 10th under Debian testing/bullseye without step 2, as master already contains y

[issue42591] Method Py_FrozenMain missing in libpython3.9

2020-12-16 Thread Christian Bachmaier
Christian Bachmaier added the comment: > Do you mean freeze.py from Tools/freeze/freeze.py? Yes, unfortunately I have to keep a large old system running and there are only few options left. It is a University learning system, where students upload program code and then a huge amo

[issue42591] Method Py_FrozenMain missing in libpython3.9

2020-12-10 Thread Christian Bachmaier
Christian Bachmaier added the comment: Dear Victor, a simple test with the tools/freeze/hello.py example was successfull with your patch and the newest cpython from github. 1. git clone https://github.com/python/cpython.git 2. Applied a patch of your pull request 3. configure, make, amke

[issue42591] Method Py_FrozenMain missing in libpython3.9

2020-12-10 Thread Christian Bachmaier
Christian Bachmaier added the comment: The file containing the source code is Python/frozenmain.c . -- ___ Python tracker <https://bugs.python.org/issue42

[issue42591] Method Py_FrozenMain missing in libpython3.9

2020-12-10 Thread Christian Bachmaier
Christian Bachmaier added the comment: The same under Python 3.9.1 (Package from Debian bullseye/testing). As the method Py_FrozenMain is contained in the source code, maybe ist has something to do with the build process, a change in makefile? As far as I can see, the builder

[issue42591] Method Py_FrozenMain missing in libpython3.9

2020-12-07 Thread Christian Bachmaier
Change by Christian Bachmaier : -- components: +Library (Lib) -C API ___ Python tracker <https://bugs.python.org/issue42591> ___ ___ Python-bugs-list mailin

[issue42591] Method Py_FrozenMain missing in libpython3.9

2020-12-07 Thread Christian Bachmaier
New submission from Christian Bachmaier : In Python 3.9.0 and 3.9.1rc1 (Packages from Ubuntu Devel Branch or Fedora) the Method int Py_FrozenMain(int, char**) is missing in libpython3.9.so Thus, when trying the provided freeze example via freeze.py hello.py & make one gets the linker e

[issue16047] Tools/freeze no longer works in Python 3

2014-03-27 Thread Christian Bachmaier
Christian Bachmaier added the comment: Sorry guys, library loading of a freezed binary is different to interpreter mode. This is a bug in freeze, or at least an undocumented missing feature of freeze. This is no side discussion. And, in Python 3.2 this was working! As described above, just

[issue16047] Tools/freeze no longer works in Python 3

2014-03-25 Thread Christian Bachmaier
Christian Bachmaier added the comment: Same issue with external libraries under (pachted) Python 3.4.0 final on Ubuntu 14.04 LTS or Debian Wheezy/Sid. Meader, is there any option/possibility zu use an external library (like psycopg2.psycopg.so)from the freezed binary? I alreday tried

[issue16047] Tools/freeze no longer works in Python 3

2014-03-25 Thread Christian Bachmaier
Christian Bachmaier added the comment: I also issued a ticket at the bugtracker of the psycopg2 project: http://psycopg.lighthouseapp.com/projects/62710/tickets/201 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16047

[issue16047] Tools/freeze no longer works in Python 3

2014-03-25 Thread Christian Bachmaier
Christian Bachmaier added the comment: Martin: this is clearly a bug, as it is now (Python 3.3 onwards) impossible to use an external module (in a .so) from a frozen binary. The phrase please help was intended to fix the bug. If there is a new option then this would also result in some kind

[issue16047] Tools/freeze no longer works in Python 3

2014-03-25 Thread Christian Bachmaier
Christian Bachmaier added the comment: # ldd hello linux-vdso.so.1 = (0x7fffd677e000) libpython3.4m.so.1.0 = /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0 (0x7f968c6c2000) libpthread.so.0 = /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f968c4a4000

[issue16047] Tools/freeze no longer works in Python 3

2014-03-25 Thread Christian Bachmaier
Christian Bachmaier added the comment: The shared library is not linked into the resulting binary by simply having an import in the Python file. Yes. This is why (at least in Python 3.2) it must be in the right path (subdirectory), see above. freeze does support adding the external library

[issue16047] Tools/freeze no longer works in Python 3

2014-03-25 Thread Christian Bachmaier
Christian Bachmaier added the comment: Sorry I forgot: PyRun seems only support Python 2.x. The only other freeze tool I know for Pyhton3 code is cx_freeze. I would prefere the vanilla freeze of the python distribution itself and as far as I can see using cx_freeze makes more problems for me

[issue16047] Tools/freeze no longer works in Python 3

2014-03-25 Thread Christian Bachmaier
Christian Bachmaier added the comment: To test what I asked for, please run freeze on this script: import _psycopg2 print ('Works.') $ xxx/freeze.py hello.py $ make $ ./hello Traceback (most recent call last): File hello.py, line 3, in module import _psycopg2 File /usr/lib

[issue16047] Tools/freeze no longer works in Python 3

2014-03-25 Thread Christian Bachmaier
Christian Bachmaier added the comment: $ cat hello.py import _psycopg print('Works.') $ export PYTHONVERBOSE=2 $ ./hello 2 res.txt $ cat res.txt | grep psycopg # trying /export/scratch/chris/pgtest/_psycopg.cpython-34m-x86_64-linux-gnu.so # trying /export/scratch/chris/pgtest

[issue16047] Tools/freeze no longer works in Python 3

2014-03-21 Thread Christian Bachmaier
Christian Bachmaier added the comment: Thanks for the patches. After applying issue11824-0.patch and then isse16047-1.patch I am successfully able to freeze a hello world python script under ubuntu 14.04 with python 3.4 rc3. I have attached my new site.py file, since the automatical patch