pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: python39 fails to build (setuptools)
On Mon, Jan 10, 2022 at 11:03 AM Greg Troxel <gdt%lexort.com@localhost> wrote:
> LD_LIBRARY_PATH=/tmp/work/lang/python39/work/Python-3.9.9 CC='gcc -pthread' LDSHARED='gcc -pthread -shared -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib ' OPT='-DNDEBUG -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build
> Traceback (most recent call last):
> File "/tmp/work/lang/python39/work/Python-3.9.9/./setup.py", line 33, in <module>
> from distutils import log, text_file
> File "/usr/pkg/lib/python3.9/site-packages/setuptools/__init__.py", line 16, in <module>
> import setuptools.version
> File "/usr/pkg/lib/python3.9/site-packages/setuptools/version.py", line 1, in <module>
> import pkg_resources
> File "/usr/pkg/lib/python3.9/site-packages/pkg_resources/__init__.py", line 23, in <module>
> import zipfile
> File "/tmp/work/lang/python39/work/Python-3.9.9/Lib/zipfile.py", line 6, in <module>
> import binascii
> ModuleNotFoundError: No module named 'binascii'
Do you have the environment variable PYTHONHOME or PYTHONPATH set?
Home |
Main Index |
Thread Index |
Old Index