Comments (8)
@koen-dejonghe I think you can safely skip fancyimpute
. It is a problematic package. The other error, let me dig into and figure out.
from modern-time-series-forecasting-with-python.
With the new anaconda_env.yml
, the conda environment installs without issues on my machine.
Thank you very much.
from modern-time-series-forecasting-with-python.
These dependency errors are notoriously hard to figure out. One way to try and resolve is to unpin versions in the conda file one by one.
for instance:
Try changing statsforecast==0.6.0
to statsforecast>=0.6.0
and python-kaleido==0.1.0
to python-kaleido>=0.1.0
And if that's also not working,
- u8darts<=0.19.0
to - u8darts==0.19.0
or - u8darts>=0.19.0
While this can resolve the conda dependency issues, there is a small risk that some code may not work.
from modern-time-series-forecasting-with-python.
I have followed the instructions for statsforecast and python-kaleido. Seems to work, but then:
Executing transaction: done
Installing pip dependencies: | Ran pip subprocess with arguments:
['/opt/homebrew/anaconda3/envs/modern_ts/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/.../Modern-Time-Series-Forecasting-with-Python/condaenv.3kbl5r_a.requirements.txt', '--exists-action=b']
Pip subprocess output:
Collecting git+https://github.com/manujosephv/pytorch_tabular.git@76e83fb (from -r /Users/.../Modern-Time-Series-Forecasting-with-Python/condaenv.3kbl5r_a.requirements.txt (line 8))
Cloning https://github.com/manujosephv/pytorch_tabular.git (to revision 76e83fb) to /private/var/folders/wy/v6f0ncw16k58dwlsf1jjph7c0000gq/T/pip-req-build-_6pcpbj7
Resolved https://github.com/manujosephv/pytorch_tabular.git to commit 76e83fb
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
Pip subprocess error:
Running command git clone --filter=blob:none --quiet https://github.com/manujosephv/pytorch_tabular.git /private/var/folders/wy/v6f0ncw16k58dwlsf1jjph7c0000gq/T/pip-req-build-_6pcpbj7
WARNING: Did not find branch or tag '76e83fb', assuming revision or ref.
Running command git checkout -q 76e83fb
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
error in pytorch_tabular setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier)
protobuf<=3.20.*
~~~~~~^
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
failed
CondaEnvException: Pip failed
from modern-time-series-forecasting-with-python.
fancyimpute
also does not install:
subprocess.CalledProcessError: Command '['cmake', '--version']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for osqp
Failed to build osqp
ERROR: Could not build wheels for osqp, which is required to install pyproject.toml-based projects
I dug further into this, by trying to install al sorts of packages with brew (cmake, llvm, suite-sparse), but to no avail.
from modern-time-series-forecasting-with-python.
...
WARNING: Did not find branch or tag '76e83fb', assuming revision or ref.
Running command git checkout -q 76e83fb
error: subprocess-exited-with-error× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
error in pytorch_tabular setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier)
protobuf<=3.20.*
~~~~~~^
[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed× Encountered error while generating package metadata.
╰─> See above for output.note: This is an issue with the package mentioned above, not pip.
hint: See above for details.failed
CondaEnvException: Pip failed
I got exactly the same error
from modern-time-series-forecasting-with-python.
As of 22.0, pip
has made some changes which might be causing this issue. I've seen this for other libraries as well.
Issue on packaging
So, this is the solution:
I have removed timesynth
and fancyimpute
from the anaconda env. That along with the changes to statsforecast
and python-kaleido
make it working in my M1 Pro. (I haven't checked in statsforecast
and python-kaleido
changes because it seems to be Mac specific. I'll probably add it to the Readme as well. The downside is that there is one notebook in chapter 1 which uses timesynth
. You can try installing that separately and see if that works. Good news is that the rest of the environment works fine now.
Let me know if this works for you so that I can pin the issue and add it to readme.
from modern-time-series-forecasting-with-python.
Mac M2/M1 problem on runnin test_installation.py:
AssertionError: Torch not compiled with CUDA enabled
I did the version yml corrections for
statsforecast>=0.6.0 and
python-kaleido>=0.1.0 and
u8darts>=0.19.0
mamba env create -f anaconda_env.yml
no fancyimpute, no timesynth
from modern-time-series-forecasting-with-python.
Related Issues (20)
- ModuleNotFoundError: No module named 'src' HOT 3
- Environment Issues on M1 pro HOT 1
- Chapter 04 - Kaboudan Metric HOT 1
- [Chapter 08] Gradient boosting decision trees, Mistype HOT 1
- Chapter 13) output tensor dimension error HOT 1
- sklearn.linear_model RidgeCV got an unexpected keyword argument 'normalize' HOT 2
- Issues installing environment on M2 Macbook Air
- Chapter 08 : 01-Forecasting with ML HOT 2
- Setting up environment: 404 pytorch HOT 1
- Reference to downloaded code in preface before download location is mentioned HOT 1
- Abstract method supports_multivariate not implemented in baselines.py HOT 2
- Target Transformation in ML_Forecast class not working (workaround solution included) HOT 1
- In implementation of Seasonal Decompose (STL) with FourierSeries, `max_cycle=np.max(seasonal_cycle)` is wrong? HOT 2
- For BoxCoxTransformer, `y = self._add_one(y)` twice in fit + transform?
- TypeError: Passing a set as an indexer is not supported. Use a list instead. Occured in Chapter08. HOT 2
- ValueError from `eval_model` function within Chapter 4: 02-Baseline Forecasts using darts.ipynb Cell 12
- Mismatch between `ts_utils.py` implementation of `forecast_bias` vs what is written in Chapter 4 of Book
- Chapter 4- 02-Baseline Forecasts using darts
- Command "conda env create -f anaconda_env.yml" fails HOT 2
- Chapter 07 Code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modern-time-series-forecasting-with-python.