Sep-10-2020, 02:51 PM
I have compiled Python 3.8.5 and tested ok, I am on Solaris 10 system
now I need to add some modules but I get these errors
root@ssc50005:/sun-temp/pysftp-0.2.9$ LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
root@ssc50005:/sun-temp/pysftp-0.2.9$ export LD_LIBRARY_PATH
root@ssc50005:/sun-temp/pysftp-0.2.9$ /usr/local/Python-3.8.5/python setup.py install
Traceback (most recent call last):
File "setup.py", line 3, in <module>
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
and also:
root@ssc50005:/sun-temp/setuptools-50.3.0$ /usr/local/Python-3.8.5/python setup.py install
['/sun-temp/setuptools-50.3.0', '/usr/local/lib/python38.zip', '/usr/local/Python-3.8.5/Lib', '/usr/local/Python-3.8.5/build/lib.solaris-2.10-sun4u.32bit-3.8']
Traceback (most recent call last):
File "setup.py", line 11, in <module>
import _ctypes
ModuleNotFoundError: No module named '_ctypes'
but this module is present:
root@ssc50005:/sun-temp/setuptools-50.3.0$ find /usr/local/Python-3.8.5/ -name _ctypes*
/usr/local/Python-3.8.5/PCbuild/_ctypes_test.vcxproj.filters
/usr/local/Python-3.8.5/PCbuild/_ctypes.vcxproj.filters
/usr/local/Python-3.8.5/PCbuild/_ctypes.vcxproj
/usr/local/Python-3.8.5/PCbuild/_ctypes_test.vcxproj
/usr/local/Python-3.8.5/build/lib.solaris-2.10-sun4u.32bit-3.8/_ctypes_test.so
/usr/local/Python-3.8.5/build/temp.solaris-2.10-sun4u.32bit-3.8/presidio_sun/SUNFREEWARE/python/Python-3.8.5/Modules/_ctypes
/usr/local/Python-3.8.5/build/temp.solaris-2.10-sun4u.32bit-3.8/presidio_sun/SUNFREEWARE/python/Python-3.8.5/Modules/_ctypes/_ctypes_test.o
/usr/local/Python-3.8.5/Modules/_ctypes
/usr/local/Python-3.8.5/Modules/_ctypes/_ctypes_test.c
/usr/local/Python-3.8.5/Modules/_ctypes/_ctypes_test.h
/usr/local/Python-3.8.5/Modules/_ctypes/_ctypes.c
so how to set path on python ?
using PYTHONPATH to /usr/local/Python-3.8.5/Modules ?
now I need to add some modules but I get these errors
root@ssc50005:/sun-temp/pysftp-0.2.9$ LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
root@ssc50005:/sun-temp/pysftp-0.2.9$ export LD_LIBRARY_PATH
root@ssc50005:/sun-temp/pysftp-0.2.9$ /usr/local/Python-3.8.5/python setup.py install
Traceback (most recent call last):
File "setup.py", line 3, in <module>
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
and also:
root@ssc50005:/sun-temp/setuptools-50.3.0$ /usr/local/Python-3.8.5/python setup.py install
['/sun-temp/setuptools-50.3.0', '/usr/local/lib/python38.zip', '/usr/local/Python-3.8.5/Lib', '/usr/local/Python-3.8.5/build/lib.solaris-2.10-sun4u.32bit-3.8']
Traceback (most recent call last):
File "setup.py", line 11, in <module>
import _ctypes
ModuleNotFoundError: No module named '_ctypes'
but this module is present:
root@ssc50005:/sun-temp/setuptools-50.3.0$ find /usr/local/Python-3.8.5/ -name _ctypes*
/usr/local/Python-3.8.5/PCbuild/_ctypes_test.vcxproj.filters
/usr/local/Python-3.8.5/PCbuild/_ctypes.vcxproj.filters
/usr/local/Python-3.8.5/PCbuild/_ctypes.vcxproj
/usr/local/Python-3.8.5/PCbuild/_ctypes_test.vcxproj
/usr/local/Python-3.8.5/build/lib.solaris-2.10-sun4u.32bit-3.8/_ctypes_test.so
/usr/local/Python-3.8.5/build/temp.solaris-2.10-sun4u.32bit-3.8/presidio_sun/SUNFREEWARE/python/Python-3.8.5/Modules/_ctypes
/usr/local/Python-3.8.5/build/temp.solaris-2.10-sun4u.32bit-3.8/presidio_sun/SUNFREEWARE/python/Python-3.8.5/Modules/_ctypes/_ctypes_test.o
/usr/local/Python-3.8.5/Modules/_ctypes
/usr/local/Python-3.8.5/Modules/_ctypes/_ctypes_test.c
/usr/local/Python-3.8.5/Modules/_ctypes/_ctypes_test.h
/usr/local/Python-3.8.5/Modules/_ctypes/_ctypes.c
so how to set path on python ?
using PYTHONPATH to /usr/local/Python-3.8.5/Modules ?