DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th November 2014
pmaddams
-Guest-
 
Posts: n/a
Default 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
So that seems all right. But when I attempt to "sudo pkg_add python-3.4.1" it tells me:

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
Any ideas? Appreciate the help.

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
Reply With Quote
  #2   (View Single Post)  
Old 24th November 2014
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

Looks like you are trying to use -release packages on a -current system?

What did you install from to install the OS?

Tim.
Reply With Quote
  #3   (View Single Post)  
Old 24th November 2014
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

I agree with TronDD in suspecting a mismatch between flavors. Please provide the output of the following command:

$ sysctl kern.version
Reply With Quote
  #4   (View Single Post)  
Old 24th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Hello, and welcome!

It looks like you are attempting to use 5.6-release packages with a -current system. Your uname output shows a build number of 594, and the amd64 5.6-release was built somewhere in the 300's. $ sysctl kern.version provides a more helpful summary of your system, by the way.

If I'm right regarding the situation .... then the answer is clear:

You cannot mix and match -release packages with a -current OS.

If that's what you've done, review FAQ 5.1 regarding the flavors of OpenBSD, and see FAQ 15.4.1 regarding synchronization of ports/packages with the system you are running.

If you point your PKG_PATH to the mirror at /pub/OpenBSD/snapshots/packages/amd64/, you'll have a better chance of success, but only when your -current system and the Project's provided snapshot packages have been built at approximately the same time. It's different teams, using different server farms, and there is no guarantee they'll ever be in perfect sync. Snapshot packages are provied only as a convenience.

Users of -current may have to build the occasional port on their own.
Reply With Quote
  #5   (View Single Post)  
Old 24th November 2014
pmaddams
-Guest-
 
Posts: n/a
Default

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
I will try to install a package from the snapshots mirror after reading the FAQ more thoroughly.
Reply With Quote
  #6   (View Single Post)  
Old 25th December 2022
gordon.f gordon.f is offline
Fdisk Soldier
 
Join Date: Oct 2021
Location: Europe
Posts: 60
Default

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
Could you please tell me why I am having problems while try to install modules for Python?

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?
Reply With Quote
  #7   (View Single Post)  
Old 25th December 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

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.
Reply With Quote
  #8   (View Single Post)  
Old 25th December 2022
gordon.f gordon.f is offline
Fdisk Soldier
 
Join Date: Oct 2021
Location: Europe
Posts: 60
Default

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
Reply With Quote
  #9   (View Single Post)  
Old 26th December 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

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.
Reply With Quote
Old 26th December 2022
gordon.f gordon.f is offline
Fdisk Soldier
 
Join Date: Oct 2021
Location: Europe
Posts: 60
Default

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.
Reply With Quote
Old 26th December 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

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/
Reply With Quote
Old 26th December 2022
gordon.f gordon.f is offline
Fdisk Soldier
 
Join Date: Oct 2021
Location: Europe
Posts: 60
Default

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:
Generally you should stick with packages if possible (i.e. if the modules you need are available). e.g. for the ones you mentioned you can do pkg_add py3-bcrypt py3-greenlet. This is particularly important for compiled extensions because they'll need to be updated for OS and Python changes so doing this allows pkg_add -u to update them; also compiled extensions often need the odd patch to get them to build on OpenBSD, so a pip install might fail for these.
Ok, let's assume you used pkg_add py3-bcrypt and it actually works. To my understanding it installed for the Python in your system. But after you cd to your project folder and activate the virtual environment and try to install the dependencies(i.e. Flask) with pipenv or pip, the problem comes again. I guess virtual environment can not detect the modules installed on the system's Python and tries to download/install already installed bcrypt/or whatever module.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 09:25 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick