aschampion / diluvian

Flood filling networks for segmenting electron microscopy of neural tissue
MIT License
23 stars 13 forks source link

setup.py doesn't work #23

Open MatthewBM opened 5 years ago

MatthewBM commented 5 years ago

Hello,

I had the same issue as issue #14 so I downloaded the sources and I removed 'Kera==2.1.6' from requirements/prod.txt and installed keras using the suggestion in #14.

Then, when I tried python setup.py install I got this:

Traceback (most recent call last): File "setup.py", line 59, in tests_require=parsed_test_requirements File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/init.py", line 145, in setup return distutils.core.setup(**attrs) File "/home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/install.py", line 67, in run self.do_egg_install() File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/install.py", line 117, in do_egg_install cmd.run() File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 418, in run self.easy_install(spec, not self.no_deps) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 660, in easy_install return self.install_item(None, spec, tmpdir, deps, True) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 707, in install_item self.process_distribution(spec, dist, deps) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 752, in process_distribution [requirement], self.local_index, self.easy_install File "/home/ncmir-lab/.local/lib/python2.7/site-packages/pkg_resources/init.py", line 782, in resolve replace_conflicting=replace_conflicting File "/home/ncmir-lab/.local/lib/python2.7/site-packages/pkg_resources/init.py", line 1065, in best_match return self.obtain(req, installer) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/pkg_resources/init.py", line 1077, in obtain return installer(requirement) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 679, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 705, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs return self.build_and_install(setup_script, setup_base) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1158, in build_and_install self.run_setup(setup_script, setup_base, args) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1144, in run_setup run_setup(setup_script, args) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 253, in run_setup raise File "/home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/contextlib.py", line 35, in exit self.gen.throw(type, value, traceback) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/contextlib.py", line 35, in exit self.gen.throw(type, value, traceback) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 166, in save_modules saved_exc.resume() File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 141, in resume six.reraise(type, exc, self._tb) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 154, in save_modules yield saved File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 250, in run_setup _execfile(setup_script, ns) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 45, in _execfile exec(code, globals, locals) File "/tmp/easy_install-_T9Yb2/pyn5-0.1.0/setup.py", line 7, in

ImportError: No module named setuptools_rust

So I tried downloading and installing the most recent setuptools-rust version for python 2.7 from https://pypi.org/project/setuptools-rust/0.5.1/#files

and then when I tried python setup.py install, I get this:

running install running bdist_egg running egg_info writing requirements to diluvian.egg-info/requires.txt writing diluvian.egg-info/PKG-INFO writing top-level names to diluvian.egg-info/top_level.txt writing dependency_links to diluvian.egg-info/dependency_links.txt writing entry points to diluvian.egg-info/entry_points.txt reading manifest file 'diluvian.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching 'pycache' found under directory '' warning: no previously-included files matching '.py[co]' found under directory '' warning: no files found matching '.jpg' under directory 'docs' warning: no files found matching '.png' under directory 'docs' warning: no files found matching '.gif' under directory 'docs' warning: no files found matching '*.txt' under directory 'diluvian' writing manifest file 'diluvian.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/diluvian copying build/lib/diluvian/init.py -> build/bdist.linux-x86_64/egg/diluvian copying build/lib/diluvian/octrees.py -> build/bdist.linux-x86_64/egg/diluvian copying build/lib/diluvian/preprocessing.py -> build/bdist.linux-x86_64/egg/diluvian copying build/lib/diluvian/postprocessing.py -> build/bdist.linux-x86_64/egg/diluvian copying build/lib/diluvian/network.py -> build/bdist.linux-x86_64/egg/diluvian copying build/lib/diluvian/util.py -> build/bdist.linux-x86_64/egg/diluvian copying build/lib/diluvian/diluvian.py -> build/bdist.linux-x86_64/egg/diluvian copying build/lib/diluvian/config.py -> build/bdist.linux-x86_64/egg/diluvian copying build/lib/diluvian/regions.py -> build/bdist.linux-x86_64/egg/diluvian creating build/bdist.linux-x86_64/egg/diluvian/conf copying build/lib/diluvian/conf/default.toml -> build/bdist.linux-x86_64/egg/diluvian/conf copying build/lib/diluvian/conf/cremi_datasets.toml -> build/bdist.linux-x86_64/egg/diluvian/conf copying build/lib/diluvian/conf/cremi_test_datasets.toml -> build/bdist.linux-x86_64/egg/diluvian/conf copying build/lib/diluvian/main.py -> build/bdist.linux-x86_64/egg/diluvian copying build/lib/diluvian/volumes.py -> build/bdist.linux-x86_64/egg/diluvian copying build/lib/diluvian/training.py -> build/bdist.linux-x86_64/egg/diluvian byte-compiling build/bdist.linux-x86_64/egg/diluvian/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/diluvian/octrees.py to octrees.pyc byte-compiling build/bdist.linux-x86_64/egg/diluvian/preprocessing.py to preprocessing.pyc byte-compiling build/bdist.linux-x86_64/egg/diluvian/postprocessing.py to postprocessing.pyc byte-compiling build/bdist.linux-x86_64/egg/diluvian/network.py to network.pyc byte-compiling build/bdist.linux-x86_64/egg/diluvian/util.py to util.pyc byte-compiling build/bdist.linux-x86_64/egg/diluvian/diluvian.py to diluvian.pyc byte-compiling build/bdist.linux-x86_64/egg/diluvian/config.py to config.pyc byte-compiling build/bdist.linux-x86_64/egg/diluvian/regions.py to regions.pyc byte-compiling build/bdist.linux-x86_64/egg/diluvian/main.py to main.pyc byte-compiling build/bdist.linux-x86_64/egg/diluvian/volumes.py to volumes.pyc byte-compiling build/bdist.linux-x86_64/egg/diluvian/training.py to training.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying diluvian.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying diluvian.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying diluvian.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying diluvian.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying diluvian.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO copying diluvian.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying diluvian.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO creating 'dist/diluvian-0.0.6-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing diluvian-0.0.6-py2.7.egg removing '/home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/site-packages/diluvian-0.0.6-py2.7.egg' (and everything under it) creating /home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/site-packages/diluvian-0.0.6-py2.7.egg Extracting diluvian-0.0.6-py2.7.egg to /home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/site-packages diluvian 0.0.6 is already the active version in easy-install.pth Installing diluvian script to /home/ncmir-lab/miniconda2/envs/diluvian/bin

Installed /home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/site-packages/diluvian-0.0.6-py2.7.egg Processing dependencies for diluvian==0.0.6 Searching for pyn5==0.1.0 Reading https://pypi.org/simple/pyn5/ Downloading https://files.pythonhosted.org/packages/4f/ba/0026c6f64d107092aa377f7225c943722c2f9a7612f966b3328fb835f640/pyn5-0.1.0.tar.gz#sha256=7c6c52b5b36fb710f8a014aafd78c95cbbb68f7bc2bcf49960b9d1adb62f4688 Best match: pyn5 0.1.0 Processing pyn5-0.1.0.tar.gz Writing /tmp/easy_install-CrtnJC/pyn5-0.1.0/setup.cfg Running pyn5-0.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-CrtnJC/pyn5-0.1.0/egg-dist-tmp-m01Akx Traceback (most recent call last): File "setup.py", line 59, in tests_require=parsed_test_requirements File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/init.py", line 145, in setup return distutils.core.setup(**attrs) File "/home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/install.py", line 67, in run self.do_egg_install() File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/install.py", line 117, in do_egg_install cmd.run() File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 418, in run self.easy_install(spec, not self.no_deps) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 660, in easy_install return self.install_item(None, spec, tmpdir, deps, True) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 707, in install_item self.process_distribution(spec, dist, deps) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 752, in process_distribution [requirement], self.local_index, self.easy_install File "/home/ncmir-lab/.local/lib/python2.7/site-packages/pkg_resources/init.py", line 782, in resolve replace_conflicting=replace_conflicting File "/home/ncmir-lab/.local/lib/python2.7/site-packages/pkg_resources/init.py", line 1065, in best_match return self.obtain(req, installer) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/pkg_resources/init.py", line 1077, in obtain return installer(requirement) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 679, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 705, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs return self.build_and_install(setup_script, setup_base) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1158, in build_and_install self.run_setup(setup_script, setup_base, args) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1144, in run_setup run_setup(setup_script, args) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 253, in run_setup raise File "/home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/contextlib.py", line 35, in exit self.gen.throw(type, value, traceback) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/home/ncmir-lab/miniconda2/envs/diluvian/lib/python2.7/contextlib.py", line 35, in exit self.gen.throw(type, value, traceback) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 166, in save_modules saved_exc.resume() File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 141, in resume six.reraise(type, exc, self._tb) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 154, in save_modules yield saved File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 250, in run_setup _execfile(setup_script, ns) File "/home/ncmir-lab/.local/lib/python2.7/site-packages/setuptools/sandbox.py", line 45, in _execfile exec(code, globals, locals) File "/tmp/easy_install-CrtnJC/pyn5-0.1.0/setup.py", line 7, in

ImportError: cannot import name Binding