Closed bbluhmwb closed 10 months ago
@bbluhmwb according to the error message
error during processing No such file or directory
stan/lib/stan_math/make/libraries:117: *** "Need to set TBB_CXX_TYPE for non-standard compiler other than gcc or clang.". Stop.
Traceback (most recent call last):
try run export TBB_CXX_TYPE=gcc
before the pip install
@edwinnglabs thanks for your feedback!
If I run export TBB_CXX_TYPE=gcc
before the pip install I run into another error:
Command "make clean-all" failed
Command ['make', 'examples/bernoulli/bernoulli']
error during processing No such file or directory
Complete logs below:
Building wheel for orbit-ml (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for orbit-ml (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [147 lines of output]
running bdist_wheel
running build
running build_py
Importing cmdstanpy...
Installing cmdstan...
Installing CmdStan version: 2.31.0
Install directory: /home/codespace/.cmdstan
Downloading CmdStan version 2.31.0
0.00B [00:00, ?B/s]
0%| | 0.00/47.3M [00:00<?, ?B/s]
68%|██████▊ | 32.4M/47.3M [00:00<00:00, 340MB/s]
Download successful, file: /tmp/tmpyd94eni_
Extracting distribution
0%| | 0/29790 [00:00<?, ?it/s]
1%| | 250/29790 [00:00<00:19, 1477.71it/s]
1%|▏ | 398/29790 [00:00<00:42, 694.83it/s]
3%|▎ | 793/29790 [00:00<00:19, 1459.33it/s]
4%|▍ | 1188/29790 [00:00<00:13, 2084.38it/s]
5%|▍ | 1481/29790 [00:00<00:12, 2307.06it/s]
7%|▋ | 2209/29790 [00:00<00:07, 3652.86it/s]
9%|▉ | 2688/29790 [00:01<00:06, 3970.06it/s]
11%|█ | 3139/29790 [00:01<00:06, 3966.00it/s]
12%|█▏ | 3572/29790 [00:01<00:06, 3822.03it/s]
14%|█▎ | 4055/29790 [00:01<00:06, 4096.91it/s]
15%|█▌ | 4596/29790 [00:01<00:05, 4463.42it/s]
17%|█▋ | 5061/29790 [00:01<00:05, 4302.12it/s]
19%|█▊ | 5579/29790 [00:01<00:05, 4546.75it/s]
20%|██ | 6078/29790 [00:01<00:05, 4673.38it/s]
22%|██▏ | 6589/29790 [00:01<00:04, 4799.52it/s]
24%|██▍ | 7151/29790 [00:01<00:04, 5035.85it/s]
26%|██▌ | 7689/29790 [00:02<00:04, 5136.03it/s]
28%|██▊ | 8207/29790 [00:02<00:04, 5143.14it/s]
29%|██▉ | 8724/29790 [00:02<00:04, 5061.08it/s]
31%|███ | 9233/29790 [00:02<00:04, 5019.00it/s]
33%|███▎ | 9795/29790 [00:02<00:03, 5194.36it/s]
35%|███▍ | 10316/29790 [00:02<00:04, 4789.21it/s]
37%|███▋ | 10896/29790 [00:02<00:03, 5070.02it/s]
38%|███▊ | 11411/29790 [00:02<00:03, 5084.02it/s]
40%|████ | 11946/29790 [00:02<00:03, 5160.08it/s]
42%|████▏ | 12598/29790 [00:03<00:03, 5556.73it/s]
44%|████▍ | 13183/29790 [00:03<00:02, 5643.05it/s]
46%|████▌ | 13750/29790 [00:03<00:02, 5631.35it/s]
48%|████▊ | 14340/29790 [00:03<00:02, 5710.03it/s]
50%|█████ | 14913/29790 [00:03<00:02, 5373.21it/s]
52%|█████▏ | 15503/29790 [00:03<00:02, 5497.56it/s]
54%|█████▍ | 16057/29790 [00:03<00:02, 4861.72it/s]
56%|█████▌ | 16576/29790 [00:03<00:02, 4947.26it/s]
57%|█████▋ | 17126/29790 [00:03<00:02, 5099.56it/s]
60%|█████▉ | 17736/29790 [00:03<00:02, 5381.32it/s]
62%|██████▏ | 18323/29790 [00:04<00:02, 5521.75it/s]
63%|██████▎ | 18882/29790 [00:04<00:02, 5432.51it/s]
65%|██████▌ | 19445/29790 [00:04<00:01, 5487.04it/s]
67%|██████▋ | 19998/29790 [00:04<00:01, 5313.74it/s]
69%|██████▉ | 20533/29790 [00:04<00:01, 5311.53it/s]
71%|███████ | 21080/29790 [00:04<00:01, 5357.49it/s]
73%|███████▎ | 21618/29790 [00:04<00:01, 5146.23it/s]
75%|███████▍ | 22238/29790 [00:04<00:01, 5446.59it/s]
76%|███████▋ | 22786/29790 [00:04<00:01, 5112.04it/s]
78%|███████▊ | 23382/29790 [00:05<00:01, 5348.87it/s]
80%|████████ | 23923/29790 [00:05<00:01, 3906.79it/s]
82%|████████▏ | 24414/29790 [00:05<00:01, 4135.24it/s]
84%|████████▎ | 24876/29790 [00:05<00:01, 4135.08it/s]
85%|████████▌ | 25323/29790 [00:05<00:01, 4117.50it/s]
86%|████████▋ | 25758/29790 [00:05<00:00, 4109.37it/s]
88%|████████▊ | 26255/29790 [00:05<00:00, 4339.89it/s]
90%|████████▉ | 26750/29790 [00:05<00:00, 4508.97it/s]
92%|█████████▏| 27288/29790 [00:06<00:00, 4755.17it/s]
93%|█████████▎| 27796/29790 [00:06<00:00, 4846.88it/s]
95%|█████████▍| 28288/29790 [00:06<00:00, 4676.21it/s]
97%|█████████▋| 28826/29790 [00:06<00:00, 4875.14it/s]
99%|█████████▊| 29372/29790 [00:06<00:00, 5044.47it/s]
Unpacked download as cmdstan-2.31.0
Building version cmdstan-2.31.0, may take several minutes, depending on your system.
cmd: make build -j2
cwd: None
--- CmdStan v2.31.0 built ---
Test model compilation
cmd: make examples/bernoulli/bernoulli
cwd: None
06:46:20 - cmdstanpy - WARNING - CmdStan installation failed.
Command "make clean-all" failed
Command ['make', 'examples/bernoulli/bernoulli']
error during processing No such file or directory
CmdStan installation failed.
Command "make clean-all" failed
Command ['make', 'examples/bernoulli/bernoulli']
error during processing No such file or directory
--- Compiling, linking C++ code ---
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.9 -I stan/lib/stan_math/lib/boost_1.78.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -c -Wno-ignored-attributes -x c++ -o examples/bernoulli/bernoulli.o examples/bernoulli/bernoulli.hpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.9 -I stan/lib/stan_math/lib/boost_1.78.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -Wl,-L,"/home/codespace/.cmdstan/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb" -Wl,-rpath,"/home/codespace/.cmdstan/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb" examples/bernoulli/bernoulli.o src/cmdstan/main.o -Wl,-L,"/home/codespace/.cmdstan/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb" -Wl,-rpath,"/home/codespace/.cmdstan/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb" stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_nvecserial.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_cvodes.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_idas.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_kinsol.a stan/lib/stan_math/lib/tbb/libtbb.so.2 -o examples/bernoulli/bernoulli
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [make/program:59: examples/bernoulli/bernoulli] Error 1
Traceback (most recent call last):
File "/opt/conda/envs/mlflow-flavors-dev2/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/opt/conda/envs/mlflow-flavors-dev2/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/opt/conda/envs/mlflow-flavors-dev2/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 249, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 413, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 398, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 99, in <module>
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 108, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1221, in run_command
super().run_command(command)
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 325, in run
self.run_command("build")
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1221, in run_command
super().run_command(command)
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1221, in run_command
super().run_command(command)
File "/tmp/pip-build-env-771rbzch/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 77, in run
File "<string>", line 67, in install_cmdstanpy
RuntimeError: CmdStan failed to install in repackaged directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for orbit-ml
Failed to build orbit-ml
ERROR: Could not build wheels for orbit-ml, which is required to install pyproject.toml-based projects
@bbluhmwb is conda an option for you? e.g.
conda config --add channels conda-forge
conda config --set channel_priority strict
conda install orbit-ml
i wonder if there is anything specific with your cmdstanpy version and your os.
@edwinnglabs
is conda an option for you? e.g.
Conda is not really an option unfortunately as I want to build a pip-installable package that pulls orbit depdendency from setup.py
i wonder if there is anything specific with your cmdstanpy version and your os.
This is a good question which I find difficult to answer as I currently would not know what else to check. I am working on github codespaces, command lsb_release -a
gives the following output:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
@edwinnglabs
is conda an option for you? e.g.
Conda is not really an option unfortunately as I want to build a pip-installable package that pulls orbit depdendency from setup.py
i wonder if there is anything specific with your cmdstanpy version and your os.
This is a good question which I find difficult to answer as I currently would not know what else to check. I am working on github codespaces, command
lsb_release -a
gives the following output:No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.5 LTS Release: 20.04 Codename: focal
Are you able to run pip install cmdstanpy
?
yes this works:
Successfully installed cmdstanpy-1.1.0 numpy-1.24.2 pandas-1.5.3 python-dateutil-2.8.2 pytz-2022.7.1 six-1.16.0 tqdm-4.64.1
Also found out that I can get cmdstan installed from within Python using this workaround
However, when I then try to pip install orbit-ml I yet run into another error:
CmdStan installation failed.
Command "make build" failed
Command ['make', 'build', '-j2']
error during processing No such file or directory
In any case I guess this must be an environment problem and not caused by orbit-ml installation process. Will report back in case I find a solution.
Hi did you figure out the problem? I have the same issue here where I tried to do pip install when building a docker image.
Hi, even I have similar issue installing orbit-ml on ubuntu. Please help at the earliest.
I have the same issue with orbit-ml on Mac:
ERROR: Could not build wheels for orbit-ml, which is required to install pyproject.toml-based projects
Have the same issue on databricks, even if i do pip install cmdstanpy
before the actual pip install orbit-ml
I still have the same error RuntimeError: CmdStan failed to install in repackaged directory
The curious thing is that I have this error even with the --no-dependencies
flag.
I had the same issue. Unable to install onto a Windows 10 anaconda env with either pip or conda/mamba. This happened to me when I upgraded my laptop (whereas I didn't bother to export my env to .yml, because I have the dumb).
I believe this had been caused by Microsoft Visual Studio C++ compiler. In my specific case, the issue ultimately might have been a little different; it was with PyStan not being 100% compatible with Windows...
Anyway, I beat myself to death trying to make Windows work, but the fix was ultimately to just put everything into WSL, which has non-FUBAR C++ compiler. I swear the models run a lot faster on WSL now too!
Everybody don't be like me, "broken MSVC compiler" is not what you want to be when you grow up...
I was able to solve the problem by manually installing cmdstanpy using this command:
conda install -c conda-forge cmdstanpy
Afterwards:
pip install orbit-ml
worked with no issues.
Hope this is helpful for someone.
This is also associated with the version stored in noarch was not catching up the change in cmdstanpy
. This should be fixed now
Describe the bug I am trying to pip install the latest version
orbit-ml-1.1.4.2
into my conda env in github codespaces but running into an error.Do you have any idea of how to fix the issue? Thanks a lot!
Error:
To Reproduce Steps to reproduce the behavior:
pip install orbit-ml
Expected behavior Installation without error
Environment (please complete the following information):
cython==0.29.33