install_error

Issue #31 new
Former user created an issue

Hi, I'm sorry for my poor English, but I have a question.

I followed the tutorial but got an error. Here is the error.

$ python2.7 setup.py install testing git availability ... fatal: not a git repository (or any of the parent directories): .git running install running bdist_egg running egg_info writing requirements to lsa.egg-info/requires.txt writing lsa.egg-info/PKG-INFO writing top-level names to lsa.egg-info/top_level.txt writing dependency_links to lsa.egg-info/dependency_links.txt writing entry points to lsa.egg-info/entry_points.txt reading manifest file 'lsa.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'lsa.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py copying lsa/lsa_version.py -> build/lib.linux-x86_64-2.7/lsa running build_ext creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/laio.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/lsalibx.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/init.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/lsa_sim.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/check_data.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/ssa.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/fix_qv.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/lsa_compute.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/par_ana.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/compcore.cpp -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/ptheo.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/lsa_version.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/lalib.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/lsa_query.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/vtrend.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/lla_compute.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/compcore.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/lsa_infer.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/la_compute.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/_compcore.so -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/compcore_wrap.cpp -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/lsalib.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/la_query.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/to_trend.py -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/compcore.hpp -> build/bdist.linux-x86_64/egg/lsa copying build/lib.linux-x86_64-2.7/lsa/lsaio.py -> build/bdist.linux-x86_64/egg/lsa byte-compiling build/bdist.linux-x86_64/egg/lsa/laio.py to laio.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/lsalibx.py to lsalibx.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/lsa_sim.py to lsa_sim.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/check_data.py to check_data.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/ssa.py to ssa.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/fix_qv.py to fix_qv.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/lsa_compute.py to lsa_compute.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/par_ana.py to par_ana.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/ptheo.py to ptheo.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/lsa_version.py to lsa_version.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/lalib.py to lalib.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/lsa_query.py to lsa_query.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/vtrend.py to vtrend.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/lla_compute.py to lla_compute.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/compcore.py to compcore.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/lsa_infer.py to lsa_infer.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/la_compute.py to la_compute.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/lsalib.py to lsalib.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/la_query.py to la_query.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/to_trend.py to to_trend.pyc byte-compiling build/bdist.linux-x86_64/egg/lsa/lsaio.py to lsaio.pyc creating stub loader for lsa/_compcore.so byte-compiling build/bdist.linux-x86_64/egg/lsa/_compcore.py to _compcore.pyc installing package data to build/bdist.linux-x86_64/egg running install_data copying README.txt -> build/bdist.linux-x86_64/egg/ copying LICENSE.txt -> build/bdist.linux-x86_64/egg/ copying VERSION.txt -> build/bdist.linux-x86_64/egg/ creating build/bdist.linux-x86_64/egg/EGG-INFO copying lsa.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying lsa.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying lsa.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying lsa.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying lsa.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO copying lsa.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying lsa.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt creating 'dist/lsa-1.0.2-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing lsa-1.0.2-py2.7-linux-x86_64.egg removing '/usr/local/lib/python2.7/dist-packages/lsa-1.0.2-py2.7-linux-x86_64.egg' (and everything under it) creating /usr/local/lib/python2.7/dist-packages/lsa-1.0.2-py2.7-linux-x86_64.egg Extracting lsa-1.0.2-py2.7-linux-x86_64.egg to /usr/local/lib/python2.7/dist-packages lsa 1.0.2 is already the active version in easy-install.pth Installing lsa_compute script to /usr/local/bin Installing la_query script to /usr/local/bin Installing fix_qv script to /usr/local/bin Installing lsa_version script to /usr/local/bin Installing lsa_query script to /usr/local/bin Installing lsa_sim script to /usr/local/bin Installing par_ana script to /usr/local/bin Installing la_compute script to /usr/local/bin Installing to_trend script to /usr/local/bin Installing check_data script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/lsa-1.0.2-py2.7-linux-x86_64.egg Processing dependencies for lsa==1.0.2 Searching for scipy>=0.6 Reading https://pypi.org/simple/scipy/ Downloading https://files.pythonhosted.org/packages/47/33/a24aec22b7be7fdb10ec117a95e1e4099890d8bbc6646902f443fc7719d1/scipy-1.7.1.tar.gz#sha256=6b47d5fa7ea651054362561a28b1ccc8da9368a39514c1bbf6c0977a1c376764 Best match: scipy 1.7.1 Processing scipy-1.7.1.tar.gz Writing /tmp/easy_install-JmM3Oi/scipy-1.7.1/setup.cfg Running scipy-1.7.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JmM3Oi/scipy-1.7.1/egg-dist-tmp-jqAveG Traceback (most recent call last): File "setup27.py", line 111, in <module> 'lsa_version = lsa.lsa_version:main' File "/usr/lib/python2.7/dist-packages/setuptools/init.py", line 145, in setup return distutils.core.setup(**attrs) File "/usr/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 67, in run self.do_egg_install() File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 117, in do_egg_install cmd.run(show_deprecation=False) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 449, in run self.easy_install(spec, not self.no_deps) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 691, in easy_install return self.install_item(None, spec, tmpdir, deps, True) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 738, in install_item self.process_distribution(spec, dist, deps) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 783, in process_distribution [requirement], self.local_index, self.easy_install File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 782, in resolve replace_conflicting=replace_conflicting File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1065, in best_match return self.obtain(req, installer) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1077, in obtain return installer(requirement) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 710, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 736, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 921, in install_eggs return self.build_and_install(setup_script, setup_base) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1189, in build_and_install self.run_setup(setup_script, setup_base, args) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1175, in run_setup run_setup(setup_script, args) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 253, in run_setup raise File "/usr/lib/python2.7/contextlib.py", line 35, in exit self.gen.throw(type, value, traceback) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/usr/lib/python2.7/contextlib.py", line 35, in exit self.gen.throw(type, value, traceback) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 166, in save_modules saved_exc.resume() File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 141, in resume six.reraise(type, exc, self._tb) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 154, in save_modules yield saved File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 250, in run_setup _execfile(setup_script, ns) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 45, in _execfile exec(code, globals, locals) File "/tmp/easy_install-JmM3Oi/scipy-1.7.1/setup.py", line 31, in <module>

RuntimeError: Python version >= 3.7 required.

This is probably due to the fact that the version of scipy that is downloaded during the process is the latest one. I would like to know the solution.

Thank you very much.

Comments (0)

  1. Log in to comment