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

[BUG] installation not working on windows #1560

Open
Wiilly-B opened this issue Apr 29, 2024 · 3 comments
Open

[BUG] installation not working on windows #1560

Wiilly-B opened this issue Apr 29, 2024 · 3 comments
Labels
bug Something isn't working

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.

@NaveenTime
Copy link

@Wiilly-B Did you figure out a way around this? Facing the same issue while installing pytorch-forecasting

@fkiraly fkiraly changed the title Issue with installation [BUG] installation not working on windows Aug 30, 2024
@fkiraly fkiraly added the bug Something isn't working label Aug 30, 2024
@fkiraly
Copy link
Collaborator

fkiraly commented Aug 30, 2024

Windows was not supported on version 1.0.0 (at least, it was not tested), and there are some remaining compatibility issues: #1623.

This should be, hopefully, resolved with the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Needs triage & validation
Development

No branches or pull requests

4 participants