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

Issue with installation #1560

Open
Wiilly-B opened this issue Apr 29, 2024 · 1 comment
Open

Issue with installation #1560

Wiilly-B opened this issue Apr 29, 2024 · 1 comment

Comments

@Wiilly-B
Copy link

Wiilly-B commented Apr 29, 2024

  • PyTorch-Forecasting version: 1.0.0
  • PyTorch version: 2.3.0+cpu
  • Python version: 3.10
  • Operating System: Windows 11

Expected behavior

I executed code pip install pytorch-forecasting to install pytorch forecasting and expected to get result of being able to use pytorch forecasting

Actual behavior

I receive an error when pip installing

However, the result was

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

Traceback (most recent call last):
        File "C:\user\Cython\Build\Dependencies.py", line 1345, in cythonize_one_helper
          return cythonize_one(*m)
                 ^^^^^^^^^^^^^^^^^
        File "C:\user\Cython\Build\Dependencies.py", line 1321, in cythonize_one
          raise CompileError(None, pyx_file)
      Cython.Compiler.Errors.CompileError: sklearn\svm\_liblinear.pyx

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          if error_msg:
              # for SVR: epsilon is called p in libsvm
              error_repl = error_msg.decode('utf-8').replace("p < 0", "epsilon < 0")
              raise ValueError(error_repl)
          cdef BlasFunctions blas_functions
          blas_functions.dot = _dot[double]
                                   ^

Code to reproduce the problem

pip install pytorch-forecasting

Paste the command(s) you ran and the output. Including a link to a colab notebook will speed up issue resolution.
If there was a crash, please include the traceback here.
The code used to initialize the TimeSeriesDataSet and model should be also included.

@ivanightingale
Copy link

Cython.Compiler.Errors.CompileError: sklearn\svm\_liblinear.pyx

Looks like a problem with installation of sklearn actually.

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