Giter Club home page Giter Club logo

Comments (8)

manujosephv avatar manujosephv commented on July 24, 2024 1

@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.

koen-dejonghe avatar koen-dejonghe commented on July 24, 2024 1

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.

manujosephv avatar manujosephv commented on July 24, 2024

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.

koen-dejonghe avatar koen-dejonghe commented on July 24, 2024

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.

koen-dejonghe avatar koen-dejonghe commented on July 24, 2024

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.

Richdadua avatar Richdadua commented on July 24, 2024

...

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.

manujosephv avatar manujosephv commented on July 24, 2024

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.

fip17 avatar fip17 commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.