rospypi / simple

Apache License 2.0
133 stars 12 forks source link

Support for python version > 3.8 #75

Open ajal-fh opened 1 year ago

ajal-fh commented 1 year ago

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 commented 1 year ago

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

miquelmassot commented 1 year ago

Same issue here.

MrKoolB commented 1 year ago

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