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

[bug] python installation #27

Closed
edwardsun opened this issue Feb 19, 2024 · 1 comment
Closed

[bug] python installation #27

edwardsun opened this issue Feb 19, 2024 · 1 comment

Comments

@edwardsun
Copy link

Problem description

It would be great to support latest python >3.10
When doing "pip3 install riskparityportfolio" in python >= 3.11 in ubuntu (i.e. docker image = python:3.11-slim), there is a compilation error:
error: subprocess-exited-with-error

    × Building wheel for quadprog (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [15 lines of output]
        running bdist_wheel
        running build
        running build_ext
        building 'quadprog' extension
        creating build
        creating build/temp.linux-x86_64-cpython-312
        creating build/temp.linux-x86_64-cpython-312/quadprog
        gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/local/include/python3.12 -c quadprog/linear-algebra.c -o build/temp.linux-x86_64-cpython-312/quadprog/linear-algebra.o
        gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/local/include/python3.12 -c quadprog/qr-update.c -o build/temp.linux-x86_64-cpython-312/quadprog/qr-update.o
        gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/local/include/python3.12 -c quadprog/quadprog.c -o build/temp.linux-x86_64-cpython-312/quadprog/quadprog.o
        quadprog/quadprog.c:198:12: fatal error: longintrepr.h: No such file or directory
          198 |   #include "longintrepr.h"
              |            ^~~~~~~~~~~~~~~
        compilation terminated.
        error: command '/usr/bin/gcc' failed with exit code 1
        [end of output]

The issue does not exist in python 3.10

Environment:

  • platform (e.g. Linux, OSX, Windows): Linux
  • riskparityportfolio version (e.g. 1.1): latest (0.4)
  • installation method (e.g. pip, source): pip
@Biszu
Copy link

Biszu commented Feb 21, 2024

It's been resolved less than an hour ago by quadprog@0.1.12 (quadprog/quadprog#41 (comment)). After adding this version to project dependencies, riskparityportfolio installs fine — tried with Python 3.11.

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

2 participants