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

Win installation error #67

Open
monkeycc opened this issue Jul 20, 2022 · 6 comments
Open

Win installation error #67

monkeycc opened this issue Jul 20, 2022 · 6 comments

Comments

@monkeycc
Copy link

WIN11
anaconda python 3.7

Building wheel for pyrfr (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      [<setuptools.extension.Extension('pyrfr._regression') at 0x18d195b3488>, <setuptools.extension.Extension('pyrfr._util') at 0x18d1be1a288>]
      running bdist_wheel
      running build
      running build_ext
      building 'pyrfr._regression' extension
      swigging pyrfr/regression.i to pyrfr/regression_wrap.cpp
      swig.exe -python -c++ -modern -py3 -features nondynamic -I./include -o pyrfr/regression_wrap.cpp pyrfr/regression.i
      error: command 'swig.exe' failed: None
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyrfr
  Running setup.py clean for pyrfr
Successfully built lap smac pynisher
Failed to build pyrfr
Installing collected packages: sortedcontainers, pytz, msgpack, lap, heapdict, geojson, easydict, zipp, zict, xmltodict, Werkzeug, typing-extensions, tornado, toolz, tifffile, threadpoolctl, tblib, shapely, scipy, regex, pyzmq, pyyaml, PyWavelets, python-dateutil, pyrfr, pyparsing, pycryptodome, psutil, opencv-contrib-python, networkx, natsort, munch, MarkupSafe, locket, llvmlite, joblib, itsdangerous, imageio, future, fsspec, fonttools, et-xmlfile, emcee, cython, cycler, colorama, cloudpickle, chardet, Babel, tqdm, scikit-learn, pynisher, partd, pandas, packaging, openpyxl, numba, kiwisolver, Jinja2, importlib-metadata, ConfigSpace, bce-python-sdk, scikit-image, motmetrics, matplotlib, dask, click, pycocotools, flask, distributed, smac, Flask-Babel, visualdl, paddleslim
  Running setup.py install for pyrfr ... error
  error: subprocess-exited-with-error

  × Running setup.py install for pyrfr did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      [<setuptools.extension.Extension('pyrfr._regression') at 0x1e614c9d508>, <setuptools.extension.Extension('pyrfr._util') at 0x1e6173c3dc8>]
      running install
      D:\anaconda3\envs\PaddleRS\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        setuptools.SetuptoolsDeprecationWarning,
      running build_ext
      building 'pyrfr._regression' extension
      swigging pyrfr/regression.i to pyrfr/regression_wrap.cpp
      swig.exe -python -c++ -modern -py3 -features nondynamic -I./include -o pyrfr/regression_wrap.cpp pyrfr/regression.i
      error: command 'swig.exe' failed: None
      [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.
╰─> pyrfr

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
@DE0CH
Copy link

DE0CH commented Sep 10, 2022

You might need to install swig

@siwang2011
Copy link

You might need to install swig

I already install swig(3.0.6) but i can't install pyrfr(0.8.3)
My platform is Win11 python3.7.1

@DE0CH
Copy link

DE0CH commented Oct 11, 2022

How did you install swig? Is swig in PATH?

@siwang2011
Copy link

How did you install swig? Is swig in PATH?

Finally I install the pyrfr, I just install the vs_build tools
anyway thanks for your help.

@ajr82
Copy link

ajr82 commented Jan 13, 2023

Hi, I get an error while trying to install pyrfr too

Windows 11
Python 3.9

I have downloaded swig and have added it in PATH. I also have vs_build tools installed.

This is the error that I am getting:

_pip install pyrfr

Collecting pyrfr
Using cached pyrfr-0.8.3.tar.gz (293 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyrfr
Building wheel for pyrfr (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
[<setuptools.extension.Extension('pyrfr._regression') at 0x13170767070>, <setuptools.extension.Extension('pyrfr._util') at 0x131707670a0>]
Deprecated command line option: -modern. Ignored, this option is now always on.
Deprecated command line option: -py3. Ignored, this option is no longer supported.
.\include\rfr\nodes\k_ary_node.hpp(1) : Warning 401: Nothing known about base class 'k_ary_node_minimal< 2,rfr::splits::binary_split_one_feature_rss_loss< double,double,unsigned int,std::default_random_engine,128 >,double,double,unsigned int,std::default_random_engine >'. Ignored.
.\include\rfr\nodes\k_ary_node.hpp(1) : Warning 401: Maybe you forgot to instantiate 'k_ary_node_minimal< 2,rfr::splits::binary_split_one_feature_rss_loss< double,double,unsigned int,std::default_random_engine,128 >,double,double,unsigned int,std::default_random_engine >' using %template.
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
regression_wrap.cpp
C:\Users\ajraj\AppData\Local\Programs\Python\Python39\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\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 pyrfr
Running setup.py clean for pyrfr
Failed to build pyrfr
Installing collected packages: pyrfr
Running setup.py install for pyrfr ... error
error: subprocess-exited-with-error

× Running setup.py install for pyrfr did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
[<setuptools.extension.Extension('pyrfr._regression') at 0x1ef416c7070>, <setuptools.extension.Extension('pyrfr._util') at 0x1ef416c70a0>]
C:\Users\ajraj\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Deprecated command line option: -modern. Ignored, this option is now always on.
Deprecated command line option: -py3. Ignored, this option is no longer supported.
.\include\rfr\nodes\k_ary_node.hpp(1) : Warning 401: Nothing known about base class 'k_ary_node_minimal< 2,rfr::splits::binary_split_one_feature_rss_loss< double,double,unsigned int,std::default_random_engine,128 >,double,double,unsigned int,std::default_random_engine >'. Ignored.
.\include\rfr\nodes\k_ary_node.hpp(1) : Warning 401: Maybe you forgot to instantiate 'k_ary_node_minimal< 2,rfr::splits::binary_split_one_feature_rss_loss< double,double,unsigned int,std::default_random_engine,128 >,double,double,unsigned int,std::default_random_engine >' using %template.
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
regression_wrap.cpp
C:\Users\ajraj\AppData\Local\Programs\Python\Python39\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\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: legacy-install-failure

× Encountered error while trying to install package.
╰─> pyrfr

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure._

Any suggestions on fixing this?

Thank you!

@DE0CH
Copy link

DE0CH commented Jan 14, 2023

Seems like the main error is

C:\Users\ajraj\AppData\Local\Programs\Python\Python39\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory

This stackoverflow might help.

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

4 participants