|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Trouble installing Python (library versions)
Hello everyone.
I am trying to install Python currently, and seem to have incompatible system library versions. Not sure how this is the case - if someone can shed light on this issue, it would help me learn more about OpenBSD's package system. Code:
$ echo $PKG_PATH ftp://ftp5.usa.openbsd.org/pub/OpenBSD/5.6/packages/amd64/ $ uname -a OpenBSD pm.my.domain 5.6 GENERIC.MP#594 amd64 Code:
Can't install python-3.4.1 because of libraries |library sqlite3.27.0 not found | /usr/lib/libsqlite3.so.28.0 (system): bad major |library ssl.27.0 not found | /usr/lib/libssl.so.29.0 (system): bad major EDIT: Excuse me, this thread belongs in the "packages and ports" subforum. Last edited by pmaddams; 24th November 2014 at 09:17 PM. Reason: Moderator: please move to correct subforum |
|
|||
Looks like you are trying to use -release packages on a -current system?
What did you install from to install the OS? Tim. |
|
|||
I agree with TronDD in suspecting a mismatch between flavors. Please provide the output of the following command:
$ sysctl kern.version
|
|
|||
Thanks, guys. Everyone above is correct; I had installed -current rather than -release, not realizing the difference.
Code:
$ sysctl kern.version kern.version=OpenBSD 5.6-current (GENERIC.MP) #594: Sat Nov 22 01:05:00 MST 2014 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP |
|
|||
Dear OpenBSD Users,
I was about to open a thread with a similar name but with a search as "python" on titles brought me here. My goal is that I don't want to clutter the forum but if the admins would love to see another thread I can open up. I'm seeing a behavior while try to install the "greenlet" module. It says Code:
/usr/local/include/python3.9/Python.h:11:10: fatal error: 'limits.h' file not found. #include <limits.h> 1 error generated. error: command '/usr/bin/cc' failed with exit code 1 Edit: There is also an error in the installation of "bcrypt" regarding Rust. I cannot get the whole error message. How can I get the whole error message so I can show it to you? This machine is on the Hyper-V. How can I copy this message? |
|
||||
py3-greenlet is available as a package for python3. How are you attempting to "install" greenlet?
You can use the script(1) utility to capture a complete session, keystrokes and all. Filter it through col(1) to remove extra control characters, then edit before copying/pasting here. Code:
$ script Script started, output file is typescript $ <whatever you were doing> $ exit Script done, output file is typescript $ col -b < typescript > my.session Last edited by jggimi; 25th December 2022 at 06:51 PM. Reason: clarity, instructions for logging a terminal session. |
|
|||
Dear jggimi,
Thank you for the response. There is a project file and it contains a virtual environment folder. That folder contains a lot of modules, some of them rely on bcrypt and greenlet in order to be installed. So as you mentioned I tried pkg_add py3-greenlet and it installed successfully but when you try installing a module that requires greenlet, that module's installation process couldn't find greenlet, so again it gives an error again. Ok, I'll try to catch the outcome with script. Thanks. Edit: Here is the outcome for greenlet Code:
Script started myhost$ /home/user/.local/bin/pipenv install greenlet==1.1.3 32m1mInstalling greenlet==1.1.3...0m 2K32m0m0Installingngreenlet...[1m[0m31m[1m[0m1mError: [1m[0m0m An error occurred while installing [1m[0m33m32mgreenlet0m==1;36m1.10m.1;36m30m[1m[0m0m! Error text: Collecting 33mgreenlet0m==1;36m1.10m.1;36m30m Using cached greenlet-1;36m1.10m.1;36m3.0mtar.gz 1m(0m1;36m910m kB1m)0m Preparing metadata 1m(0msetup.py1m)0m: started Preparing metadata 1m(0msetup.py1m)0m: finished with status 32m'done'0m Building wheels for collected packages: greenlet Building wheel for greenlet 1m(0msetup.py1m)0m: started Building wheel for greenlet 1m(0msetup.py1m)0m: finished with status 32m'error'0m Running setup.py clean for greenlet Failed to build greenlet Installing collected packages: greenlet Running setup.py install for greenlet: started Running setup.py install for greenlet: finished with status 32m'error'0m 2K32m0m Installing greenlet...[1m[0m36mWARNING: Retrying 1m(0m1;35mRetry0m1m(0m33mtotal0m=1;36m40m, 33mconnect0m=3;35mNone0m, 33mread0m=3;35mNone0m, 33mredirect0m=3;35mNone0m, 33mstatus0m=3;35mNone0m1m)0m1m)0m after connection broken by 32m'ReadTimeoutError0m32m(0m32m"HTTPSConnectionPool0m32m(0m32mhost0m32m='0mpypi.org', 33mport0m=1;36m4430m1m)0m: Read timed out. 1m(0mread 33mtimeout0m=1;36m150m1m)0m"1m)0m': 35m/simple/greenlet/0m error: subprocess-exited-with-error python setup.py bdist_wheel did not run successfully. exit code: 1;36m10m > 1m[0m1;36m1100m lines of output1m]0m running bdist_wheel running build running build_py creating build creating build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m creating build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet copying src/greenlet/__init__.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet creating build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/__init__.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_contextvars.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_cpp.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_extension_interface.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_gc.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_generator.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_generator_nested.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_greenlet.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_leaks.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_stack_saved.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_throw.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_tracing.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_version.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_weakref.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests running egg_info writing src/greenlet.egg-info/PKG-INFO writing dependency_links to src/greenlet.egg-info/dependency_links.txt writing requirements to src/greenlet.egg-info/requires.txt writing top-level names to src/greenlet.egg-info/top_level.txt reading manifest file 32m'src/greenlet.egg-info/SOURCES.txt'0m reading manifest template 32m'MANIFEST.in'0m no previously-included directories found matching 32m'docs/_build'0m warning: no files found matching 32m'*.py'0m under directory 32m'appveyor'0m warning: no previously-included files matching 32m'*.pyc'0m found anywhere in distribution warning: no previously-included files matching 32m'*.pyd'0m found anywhere in distribution warning: no previously-included files matching 32m'*.so'0m found anywhere in distribution warning: no previously-included files matching 32m'.coverage'0m found anywhere in distribution adding license file 32m'LICENSE'0m adding license file 32m'LICENSE.PSF'0m adding license file 32m'AUTHORS'0m writing manifest file 32m'src/greenlet.egg-info/SOURCES.txt'0m 35m/home/user/.local/share/virtualenvs/myproject-hevd5zp3/lib/python3.9/site0m 35m-packages/setuptools/command/0m95mbuild_py.py0m:1;36m2020m: SetuptoolsDeprecationWarning: Installing 32m'greenlet.platform'0m as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 32m'greenlet.platform'0m as an importable package, but it is not listed in the `packages` configuration of setuptools. 32m'greenlet.platform'0m has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools 1m(0mand therefore is considered deprecated1m)0m. Please make sure that 32m'greenlet.platform'0m is included as a package by using the `packages` configuration field or the proper discovery methods 1m(0mfor example by using `1;35mfind_namespace_packages0m1m(0m33m...0m1m)0m`35m/0m`find_namespace:` instead of `1;35mfind_packages0m1m(0m33m...0m1m)0m`35m/0m`find:`1m)0m. You can read more about 32m"package discovery"0m and 32m"data files"0m on setuptools documentation page. !! 1;35mcheck.warn0m1m(0mimportable1m)0m copying src/greenlet/greenlet.c -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet copying src/greenlet/greenlet.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet copying src/greenlet/slp_platformselect.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet creating build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/setup_switch_x64_masm.cmd -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_aarch64_gcc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_alpha_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_amd64_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_arm32_gcc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_arm32_ios.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_csky_gcc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_m68k_gcc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_mips_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc64_aix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc64_linux.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc_aix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc_linux.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc_macosx.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_riscv_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_s390_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_sparc_sun_gcc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x32_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x64_masm.asm -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x64_masm.obj -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x64_msvc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x86_msvc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x86_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/tests/_test_extension.c -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/_test_extension_cpp.cpp -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests warning: build_py: byte-compiling is disabled, skipping. running build_ext building 32m'greenlet._greenlet'0m extension creating build/temp.openbsd-1;36m7.20m-amd64-cpython-1;36m390m creating build/temp.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/src creating build/temp.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/src/greenlet cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -g -fPIC -O2 -pipe -g -O2 -pipe -g -fPIC -I/home/user/.local/share/virtualenvs/myproject-hevd5zp3/include -I/usr/local/include/python3.1;36m90m -c src/greenlet/greenlet.c -o build/temp.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/src/greenlet/greenlet.o In file included from src/greenlet/greenlet.1;92mc:110m: In file included from src/greenlet/greenlet.h:1;36m80m: 35m/usr/local/include/python3.9/0m95mPython.h0m:1;92m11:100m: fatal error: 32m'limits.h'0m file not found #include 1m<0m1;95mlimits.h0m1m>0m ^~~~~~~~~~ 1;36m10m error generated. error: command 32m'/usr/bin/cc'0m failed with exit code 1;36m10m note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for greenlet error: subprocess-exited-with-error Running setup.py install for greenlet did not run successfully. exit code: 1;36m10m > 1m[0m1;36m1120m lines of output1m]0m running install 35m/home/user/.local/share/virtualenvs/myproject-hevd5zp3/lib/python3.9/site0m 35m-packages/setuptools/command/0m95minstall.py0m:1;36m340m: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. 1;35mwarnings.warn0m1m(0m running build running build_py creating build creating build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m creating build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet copying src/greenlet/__init__.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet creating build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/__init__.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_contextvars.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_cpp.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_extension_interface.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_gc.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_generator.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_generator_nested.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_greenlet.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_leaks.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_stack_saved.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_throw.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_tracing.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_version.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/test_weakref.py -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests running egg_info writing src/greenlet.egg-info/PKG-INFO writing dependency_links to src/greenlet.egg-info/dependency_links.txt writing requirements to src/greenlet.egg-info/requires.txt writing top-level names to src/greenlet.egg-info/top_level.txt reading manifest file 32m'src/greenlet.egg-info/SOURCES.txt'0m reading manifest template 32m'MANIFEST.in'0m no previously-included directories found matching 32m'docs/_build'0m warning: no files found matching 32m'*.py'0m under directory 32m'appveyor'0m warning: no previously-included files matching 32m'*.pyc'0m found anywhere in distribution warning: no previously-included files matching 32m'*.pyd'0m found anywhere in distribution warning: no previously-included files matching 32m'*.so'0m found anywhere in distribution warning: no previously-included files matching 32m'.coverage'0m found anywhere in distribution adding license file 32m'LICENSE'0m adding license file 32m'LICENSE.PSF'0m adding license file 32m'AUTHORS'0m writing manifest file 32m'src/greenlet.egg-info/SOURCES.txt'0m 35m/home/user/.local/share/virtualenvs/myproject-hevd5zp3/lib/python3.9/site0m 35m-packages/setuptools/command/0m95mbuild_py.py0m:1;36m2020m: SetuptoolsDeprecationWarning: Installing 32m'greenlet.platform'0m as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 32m'greenlet.platform'0m as an importable package, but it is not listed in the `packages` configuration of setuptools. 32m'greenlet.platform'0m has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools 1m(0mand therefore is considered deprecated1m)0m. Please make sure that 32m'greenlet.platform'0m is included as a package by using the `packages` configuration field or the proper discovery methods 1m(0mfor example by using `1;35mfind_namespace_packages0m1m(0m33m...0m1m)0m`35m/0m`find_namespace:` instead of `1;35mfind_packages0m1m(0m33m...0m1m)0m`35m/0m`find:`1m)0m. You can read more about 32m"package discovery"0m and 32m"data files"0m on setuptools documentation page. !! 1;35mcheck.warn0m1m(0mimportable1m)0m copying src/greenlet/greenlet.c -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet copying src/greenlet/greenlet.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet copying src/greenlet/slp_platformselect.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet creating build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/setup_switch_x64_masm.cmd -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_aarch64_gcc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_alpha_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_amd64_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_arm32_gcc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_arm32_ios.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_csky_gcc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_m68k_gcc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_mips_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc64_aix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc64_linux.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc_aix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc_linux.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc_macosx.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_ppc_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_riscv_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_s390_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_sparc_sun_gcc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x32_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x64_masm.asm -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x64_masm.obj -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x64_msvc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x86_msvc.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/platform/switch_x86_unix.h -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/platform copying src/greenlet/tests/_test_extension.c -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests copying src/greenlet/tests/_test_extension_cpp.cpp -> build/lib.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/greenlet/tests warning: build_py: byte-compiling is disabled, skipping. running build_ext building 32m'greenlet._greenlet'0m extension creating build/temp.openbsd-1;36m7.20m-amd64-cpython-1;36m390m creating build/temp.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/src creating build/temp.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/src/greenlet cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -g -fPIC -O2 -pipe -g -O2 -pipe -g -fPIC -I/home/user/.local/share/virtualenvs/myproject-hevd5zp3/include -I/usr/local/include/python3.1;36m90m -c src/greenlet/greenlet.c -o build/temp.openbsd-1;36m7.20m-amd64-cpython-1;36m390m/src/greenlet/greenlet.o In file included from src/greenlet/greenlet.1;92mc:110m: In file included from src/greenlet/greenlet.h:1;36m80m: 35m/usr/local/include/python3.9/0m95mPython.h0m:1;92m11:100m: fatal error: 32m'limits.h'0m file not found #include 1m<0m1;95mlimits.h0m1m>0m ^~~~~~~~~~ 1;36m10m error generated. error: command 32m'/usr/bin/cc'0m failed with exit code 1;36m10m note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure Encountered error while trying to install package. > greenlet note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. [1m[0m0m Installation Failed 2K32m0m Installing greenlet... 1A2Kmyhost$ exit Script done Last edited by gordon.f; 25th December 2022 at 07:48 PM. Reason: Adding greenlet typescript outcome |
|
||||
Thank you for providing additional information.
I have no experience with provisioning Python virtual environments, though the error messages you posted indicate that the setuptools Python utility (py3-setuptools) might be helpful. Hopefully, someone with Python environment experience will be able to steer you in the correct direction. |
|
|||
Dear jggimi,
Thanks a lot, I'll try py3-setuptools. I'll be very glad if there is someone who have provisioned Python virtual environments on the forum. |
|
||||
There was a recent discussion of virtual environments on Reddit. Within, there's a discussion of using "pip freeze > requirements.txt" -- as the way to obtain dependencies.
https://www.reddit.com/r/openbsd/com...l_environment/ |
|
|||
Dear jggimi,
pip freeze > requirements.txt creates a txt file for the current condition of your virtual environment so you can later install everything with the command pip install -r requirements.txt on another machine. But the problem is that there are some modules like Flask(a Python web development framework) relies on another module and if that modules installation fails you can not install Flask. The main problem is that modules can't be installed with pipenv or pip because of OpenBSD's behavior. At that Reddit post the user _sthen said: Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem installing python from pkgs | warudemaru | OpenBSD Packages and Ports | 7 | 7th December 2011 10:01 PM |
Trouble installing NetBSD | sjakke | NetBSD Installation and Upgrading | 14 | 30th August 2011 07:28 PM |
Installing python imaging on OpenBSD ? [error _imagingft C module] | Barakat | OpenBSD Packages and Ports | 8 | 8th April 2011 01:35 AM |
installing hpijs package: library jpeg.63.0 not found | wimwauters | OpenBSD Packages and Ports | 11 | 23rd June 2010 11:30 PM |
Both versions installing in same location, & can't delete | jaymax | FreeBSD General | 5 | 9th June 2008 06:25 PM |