Code Monkey home page Code Monkey logo

npbdaa's Issues

Install pyhsmm で urllib.error.HTTPError: HTTP Error 403: Forbidden

Eigen のリポジトリは bitbucket から gitlab に移行したようです。(参照: spack/spack#13890)
したがって https://github.com/RyoOzaki/pyhsmmsetup.py も deprecate しています。Eigenのダウンロードのスクリプトをフォーク元と同様、以下のように変更すればエラーは解消します。加えて、import に requests を追加する必要もあります。

# download Eigen if we don't have it in deps
eigenurl = 'https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz'
eigentarpath = os.path.join('deps', 'Eigen.tar.gz')
eigenpath = os.path.join('deps', 'Eigen')
if not os.path.exists(eigenpath):
    print('Downloading Eigen...')
    r = requests.get(eigenurl)
    with open(eigentarpath, 'wb') as f:
        f.write(r.content)
    with tarfile.open(eigentarpath, 'r') as tar:
        tar.extractall('deps')
    thedir = glob(os.path.join('deps', 'eigen-*'))[0]
    shutil.move(os.path.join(thedir, 'Eigen'), eigenpath)
    print('...done!')

ですが、もしソース元でフォークのモチベーションである "But, the master repository's codes include some bugs in cython codes." が解消されているならば、 mattjj/pyhsmm を利用させるか、"some bugs in cython codes" のプルリクエストを mattjj/pyhsmm に送った方が、今後のメンテナンスコストが下がるように思えます。

先日は Issue の解決ありがとうございました。RyoOzaki/pyhsmm の issue 機能が有効化されていない、また RyoOzaki/npbdaa のセットアップ 中のエラーであるためこちらに失礼します。

[README] requestsについて

setup.pyの実行でrequestsライブラリが必要ですが, READMEに載っていません.
事前に
pip install requests
でインストールを行います.

NameError: name 'Path' is not defined

There is a NameError in summary_and_plot.py (line 100). Just importing the module may resolve this issue.

$ python summary_and_plot.py
Traceback (most recent call last):
  File "summary_and_plot.py", line 100, in <module>
    Path("figures").mkdir(exist_ok=True)
NameError: name 'Path' is not defined

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.