MetaCell / nwb-explorer

NWB Explorer is a web application to visualise and analyse the content of NWB:N 2 files
Other
23 stars 16 forks source link

Install script error: cannot import name 'Feature' from 'setuptools' #165

Closed azylbertal closed 3 years ago

azylbertal commented 4 years ago

Trying to install on a fresh Linux Mint 19.3 (virtual machine), with node 10.20.1, npm 6.14.4, pip 20.0.2, and git 2.17.1 (using a conda Python 3.7 environment as recommended). With the development branch cloned, running the install.py script results in the following error after some dependencies are successfully installed:

    ERROR: Command errored out with exit status 1:
     command: /home/asaph/anaconda3/envs/nwb-explorer/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-saukz76w/MarkupSafe/setup.py'"'"'; __file__='"'"'/tmp/pip-install-saukz76w/MarkupSafe/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-saukz76w/MarkupSafe/pip-egg-info
         cwd: /tmp/pip-install-saukz76w/MarkupSafe/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-saukz76w/MarkupSafe/setup.py", line 6, in <module>
        from setuptools import setup, Extension, Feature
    ImportError: cannot import name 'Feature' from 'setuptools' (/home/asaph/anaconda3/envs/nwb-explorer/lib/python3.7/site-packages/setuptools/__init__.py)
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
filippomc commented 4 years ago

Hi @azylbertal , thanks for reporting this. This seems related to some imported library using a setuptools deprecated api. Will look at the issue for the next releases, in the meantime you should be able to solve with pip3 install setuptools==45