Git Product home page Git Product logo

Comments (9)

whyxiang avatar whyxiang commented on May 22, 2024 1

@gslin thanks for reporting this, we've fixed the NumPy version and the problem should not occur on the next tagged release.

@lostella
hello, gluonts python package was just updated on July 23, seems this numpy version problem is still here.

from gluonts.

lostella avatar lostella commented on May 22, 2024

@gslin thanks for reporting this, we've fixed the NumPy version and the problem should not occur on the next tagged release.

from gluonts.

aalexandrov avatar aalexandrov commented on May 22, 2024

Maybe its best to just set an upper bound to the allowed numpy version to numpy>=1.14.0,<1.15.0 in the requirements/requirements.txt file.

@whyxiang: could you give this a shot on a cloned repo points to the current master and applies the suggested fix? The install command should be

pip install ".[shell]" 

from gluonts.

aalexandrov avatar aalexandrov commented on May 22, 2024

FYI, am I the only one that thinks this is (mildly) unexpected - pip should be able to handle this case automatically by resolving all dependencies upfront and computing the intersection of allowed version ranges for dependencies defined through multiple paths.

from gluonts.

whyxiang avatar whyxiang commented on May 22, 2024

@aalexandrov
Hi Alex, I install glutonts 0.3.0 manually by pip install the .whl file downloaded from pypi.org

I am installing both catboost and gluonts packages, catboost requires numpy >=1.15.0 but gluonts requires numpy ==1.14.*

from gluonts.

whyxiang avatar whyxiang commented on May 22, 2024

Maybe its best to just set an upper bound to the allowed numpy version to numpy>=1.14.0,<1.15.0 in the requirements/requirements.txt file.

@whyxiang: could you give this a shot on a cloned repo points to the current master and applies the suggested fix? The install command should be

pip install ".[shell]" 

hello Alex, I pip install using the gluonts-0.3.0.tar.gz downloaded from pypi.org
After extracting files from .tar.gz, I manually edited requirements/requirements.txt file with numpy>=1.14.*, then just python setup.py install

However, the installation cannot be completed. The following warning message shows up, and the installation never moves on
WARNING:root:Package 'sphinx' not found. You will not be able to build the docs.

from gluonts.

aalexandrov avatar aalexandrov commented on May 22, 2024

It seems that the issue is present not just in gluonts==0.3.0 but also in mxnet==1.4.1.

Both packages require numpy<1.15.0, whereas catboost==0.16 requires numpy>=1.16.0, Strictly speaking, this makes catboost==0.16 incompatible with gluonts==0.3.0 or mxnet==1.4.1.

The only solution I can suggest is to use catboost==0.14 or lower.

from gluonts.

aalexandrov avatar aalexandrov commented on May 22, 2024

WARNING:root:Package 'sphinx' not found. You will not be able to build the docs.

This is just a warning, it does not mean that the package is not installed.

from gluonts.

whyxiang avatar whyxiang commented on May 22, 2024

@aalexandrov
Hello Alex,

  1. Yes, the only solution at this moment is to downgrade catboost with numpy==0.14, and it works. I am just wondering whether it is possible to have gluonts and mxnet compatible with latest version of numpy in the future so there would not be any conflict between the latestest version of mxnet, gluonts and other py packages.

  2. the installation cannot be completed, the warning message is the only thing shows up, no error message. This happens after me manually editing requirement.txt to numpy >=1.14.*.

Anyway, this problem is solved, thanks for help :)

from gluonts.

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.