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 python 3.11 #2

Open
hcarlsso opened this issue Mar 1, 2023 · 1 comment · May be fixed by #3
Open

Support python 3.11 #2

hcarlsso opened this issue Mar 1, 2023 · 1 comment · May be fixed by #3

Comments

@hcarlsso
Copy link

hcarlsso commented Mar 1, 2023

Hi,

It seems that its not possible to install this package on python 3.11:

user@hakcar-ThinkPad-T15g-Gen-1:/$ python --version
Python 3.11.2
user@hakcar-ThinkPad-T15g-Gen-1:/$ pip install reeds-shepp
Collecting reeds-shepp
  Using cached reeds_shepp-1.0.7.tar.gz (45 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: reeds-shepp
  Building wheel for reeds-shepp (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [15 lines of output]
      running bdist_wheel
      running build
      running build_ext
      skipping 'reeds_shepp/reeds_shepp.cpp' Cython extension (up-to-date)
      building 'reeds_shepp' extension
      creating build
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/reeds_shepp
      creating build/temp.linux-x86_64-cpython-311/reeds_shepp/src
      x86_64-linux-gnu-gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ireeds_shepp/include -I/opt/venv/include -I/usr/include/python3.11 -c reeds_shepp/reeds_shepp.cpp -o build/temp.linux-x86_64-cpython-311/reeds_shepp/reeds_shepp.o
      reeds_shepp/reeds_shepp.cpp:196:12: fatal error: longintrepr.h: No such file or directory
        196 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for reeds-shepp
  Running setup.py clean for reeds-shepp
Failed to build reeds-shepp
Installing collected packages: reeds-shepp
  Running setup.py install for reeds-shepp ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for reeds-shepp did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      running install
      /opt/venv/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_ext
      skipping 'reeds_shepp/reeds_shepp.cpp' Cython extension (up-to-date)
      building 'reeds_shepp' extension
      creating build
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/reeds_shepp
      creating build/temp.linux-x86_64-cpython-311/reeds_shepp/src
      x86_64-linux-gnu-gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ireeds_shepp/include -I/opt/venv/include -I/usr/include/python3.11 -c reeds_shepp/reeds_shepp.cpp -o build/temp.linux-x86_64-cpython-311/reeds_shepp/reeds_shepp.o
      reeds_shepp/reeds_shepp.cpp:196:12: fatal error: longintrepr.h: No such file or directory
        196 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  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.
╰─> reeds-shepp

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
@hcarlsso hcarlsso linked a pull request Mar 20, 2023 that will close this issue
@M-Aali
Copy link

M-Aali commented Feb 6, 2024

I couldn't install it using "pip" too, so I installed the package from source:

  1. clone - https://github.com/liespace/pyReedsShepp.git
  2. build - python setup.py build_ext --inplace
  3. Install with - pip install .

I didn't have Boost cpp libraries installed. So I got errors at step 3. After installing Boost, still needed to add the directory of Boost in my computer ("C:/local/boost_1_74_0") to "include_dirs" in setup.py and then run "pip install ."
Here is the modified part of setup.py:
"ext_modules = [
Extension("reeds_shepp",
sources = sources,
language="c++",
include_dirs = ["reeds_shepp/include", "C:/local/boost_1_74_0"],
)
]"

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

Successfully merging a pull request may close this issue.

2 participants