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

Installation Failure #2

Open
nistrate opened this issue Feb 14, 2022 · 1 comment
Open

Installation Failure #2

nistrate opened this issue Feb 14, 2022 · 1 comment

Comments

@nistrate
Copy link

Here is the error message when performing: pip install -e .

Building wheel for ssm (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/nistrate/Desktop/myPython/git/ssmdm_git/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z13hh_zy/ssm/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z13hh_zy/ssm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-bjz3_4qg
       cwd: /tmp/pip-install-z13hh_zy/ssm/
  Complete output (7 lines):
  USE_OPENMP False
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
  
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for ssm
  Running setup.py clean for ssm
Failed to build ssm

The installation finishes, however when running either notebook importing errors appear.
ex: ImportError: cannot import name 'logsumexp' from 'autograd.scipy.misc'

Here are the exact steps used for installation:

  1. create a virtual environment: python3 -m venv venv
  2. activate set virtual environment: source venv/bin/activate
  3. install numpy and cython as suggested in ssm package: pip install numpy cython
    if I skip this step installation stops due to lack of these 2 packages.
  4. Follow installation instructions:
    git clone https://github.com/davidzoltowski/ssmdm.git
    cd ssmdm
    pip install -e .
@nistrate
Copy link
Author

Solution: The installation issue disappears if one works in the same environment used by a successfully installed [ssm repo].(https://github.com/lindermanlab/ssm)

NOTE: to avoid future git issues, do not clone the ssmdm into the ssm git folder.

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

1 participant