Giter Club home page Giter Club logo

Comments (6)

simozacca avatar simozacca commented on August 26, 2024

The error may be associated either to BNPY installation or to the runtime creation of the temporary directory used by BNPY. Please answer and check the following debugging list to try to identify the issue:

  • Is your version of bnpy-dev the most updated in the main branch of this repository https://bitbucket.org/michaelchughes/bnpy-dev/src/master/?
  • How did you install BNPY? Did you install any of the suggested alternatives described here: https://bitbucket.org/michaelchughes/bnpy-dev/wiki/Installation.md? Also, what is your version of the required numpy and scipy in the current python environment?
  • Could you please try to remove ANY FOLDER from the current directory where you are executing the demo? Especially, please make sure to remove _TMPDIR/
  • Do you have permission to create and remove directories in you current running directory?
  • Could you please report the value of the variable ${BNPY} that you appropriately defined in the script demo-WES.sh?

Thank you

from hatchet.

sahilseth avatar sahilseth commented on August 26, 2024

Thanks for getting back!

It seems to be the most up-to-date

cd /home/sseth/apps/bnpy/github_bnpy-dev
origin  https://[email protected]/michaelchughes/bnpy-dev (fetch)
git pull
Already up-to-date.
git branch
* master

I did not install the Fast C++ libraries for HMM inference

numpy                     1.15.1           py27h1d66e8a_0
scipy                     1.1.0            py27hfa4b5c9_1

I do have write permissions.

BNPY="/home/sseth/apps/bnpy/github_bnpy-dev"

I removed the TMPDIR, and reran, with the same error.

Thanks!

from hatchet.

simozacca avatar simozacca commented on August 26, 2024

According to the BNPY documentation (https://bitbucket.org/michaelchughes/bnpy-dev/wiki/Installation.md), BNPY requires numpy (version 1.8 or later). As such, we should first try to get the required version of Numpy. If you do not want or cannot change the packages of your current python environment, I recommend to use a virtual python environment, inside which you can install all the required packages with appropriate versions without affecting the default python enviroment. You will simply activate you virtual environment before running any component of HATCHet. There are two options:

  1. virtualenv, the simplest option (read more at https://virtualenv.pypa.io/en/latest/ or https://docs.python-guide.org/dev/virtualenvs/)
  2. Anaconda, the cleanest option (read more at https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/20/conda/)

Moreover, as this appears to be a BNPY-specific issue I would suggest the following two things to do:

  1. Run the few commands suggested at https://bitbucket.org/michaelchughes/bnpy-dev/wiki/Installation.md to make sure everything works
  2. Try to import BNPY in your python environment to make sure it works properly. You can perform this test by using the same python commands used by cluBB component, i.e.
import os, sys
bnpydir = "/home/sseth/apps/bnpy/github_bnpy-dev/"

tmp = os.path.splitext(output)[0] + "_TMPDIR/"
if os.path.exists(tmp):
    shutil.rmtree(tmp)
os.makedirs(tmp)
os.environ["BNPYOUTDIR"] = tmp
sys.path.append(bnpydir)
import bnpy

from hatchet.

sahilseth avatar sahilseth commented on August 26, 2024

thanks for the pointers. Indeed it was an issue with the version of libs. It works well on a new env, with updated libs.

Thanks!

from hatchet.

sahilseth avatar sahilseth commented on August 26, 2024

I was about to raise an issue with bnpy-dev on bitbucket, but realize they have moved to github. Would hatchet move to use the new bnpy version instead?

from hatchet.

simozacca avatar simozacca commented on August 26, 2024

Yes, HATCHet is going to support both the versions, both the old one in bitbucket (bnpy-dev) and the new one (bnpy) maintained on github.
We are testing to make sure that new version of BNPY is working as expected (we deeply tested the old one), and we will add this feature very soon.

For now I would recommend to keep using the bitbucket version, which is fully compatible.
As such, I close this issue for now but please feel free to re-open it in case of need.

from hatchet.

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.