Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for python version > 3.8 #75

Open
ajal-fh opened this issue Jun 20, 2023 · 3 comments
Open

Support for python version > 3.8 #75

ajal-fh opened this issue Jun 20, 2023 · 3 comments

Comments

@ajal-fh
Copy link

ajal-fh commented Jun 20, 2023

I would like to make a request for support for versions >3.8. While trying to install on python 3.11 for some packages like roslz4, tf2-py the installation fails. I would be happy to help if someone could guide on how to go about it. Thank you

@ajal-fh
Copy link
Author

ajal-fh commented Jun 23, 2023

After debugging I could see that ROS logging gets stuck indefinitely on python 3.11. Unsure how to solve this

@miquelmassot
Copy link

Same issue here.

@MrKoolB
Copy link

MrKoolB commented Nov 13, 2023

I also have this issue with roslz4.

Running this command in a freshly made conda environment with python 3.11.5, conda 23.10.0 and windows 10 enterprise leads to the following error:
pip install roslz4 --extra-index-url https://rospypi.github.io/simple/

Looking in indexes: https://pypi.org/simple, https://rospypi.github.io/simple/
Collecting roslz4
  Using cached https://github.com/rospypi/simple/raw/any/roslz4/roslz4-1.14.3.post2.tar.gz (18 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: roslz4
  Building wheel for roslz4 (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\roslz4
      copying ros_comm\utilities\roslz4\src\roslz4\__init__.py -> build\lib.win-amd64-cpython-311\roslz4
      running build_ext
      building '_roslz4' extension
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\ros_comm
      creating build\temp.win-amd64-cpython-311\Release\ros_comm\utilities
      creating build\temp.win-amd64-cpython-311\Release\ros_comm\utilities\roslz4
      creating build\temp.win-amd64-cpython-311\Release\ros_comm\utilities\roslz4\src
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DXXH_NAMESPACE=ROSLZ4_ -Iinclude -Iroscpp_core/cpp_common/include -Ilz4-1.9.2/lib -IC:\Users\kool\Anaconda3\envs\test-env\include -IC:\Users\kool\Anaconda3\envs\test-env\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program 
Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcros_comm/utilities/roslz4/src/_roslz4module.c /Fobuild\temp.win-amd64-cpython-311\Release\ros_comm/utilities/roslz4/src/_roslz4module.obj
      _roslz4module.c
      include\roslz4/lz4s.h(38): fatal error C1083: Cannot open include file: 'lz4.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for roslz4
  Running setup.py clean for roslz4
Failed to build roslz4
ERROR: Could not build wheels for roslz4, which is required to install pyproject.toml-based projects
Packages installed:
bzip2                     1.0.8                he774522_0          
ca-certificates           2023.08.22           haa95532_0          
libffi                    3.4.4                hd77b12b_0          
openssl                   3.0.12               h2bbff1b_0          
pip                       23.3            py311haa95532_0          
python                    3.11.5               he1021f5_0          
setuptools                68.0.0          py311haa95532_0          
sqlite                    3.41.2               h2bbff1b_0          
tk                        8.6.12               h2bbff1b_0          
tzdata                    2023c                h04d1e81_0          
vc                        14.2                 h21ff451_1          
vs2015_runtime            14.27.29016          h5e58377_2          
wheel                     0.41.2          py311haa95532_0          
xz                        5.4.2                h8cc25b3_0          
zlib                      1.2.13               h8cc25b3_0  

The main error is this:
include\roslz4/lz4s.h(38): fatal error C1083: Cannot open include file: 'lz4.h': No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants