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

Build Error while executing ./install.sh #20

Open
chunyianliew opened this issue Apr 11, 2020 · 0 comments
Open

Build Error while executing ./install.sh #20

chunyianliew opened this issue Apr 11, 2020 · 0 comments

Comments

@chunyianliew
Copy link

chunyianliew commented Apr 11, 2020

The following build errors showed up while running ./install.sh

  Building wheel for h5py (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mqlylpoo/h5py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mqlylpoo/h5py/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-ny2or2_0
       cwd: /tmp/pip-install-mqlylpoo/h5py/
  Complete output (97 lines):
  Running from numpy source directory.
  /tmp/easy_install-ke5sf8vr/numpy-1.18.2/setup.py:461: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
    run_build = parse_setuppy_commands()
  Cythonizing sources
  Processing numpy/random/_bounded_integers.pxd.in
  Processing numpy/random/_bounded_integers.pyx.in
  Traceback (most recent call last):
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/tools/cythonize.py", line 61, in process_pyx
      from Cython.Compiler.Version import version as cython_version
  ModuleNotFoundError: No module named 'Cython'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/tools/cythonize.py", line 238, in <module>
      main()
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/tools/cythonize.py", line 234, in main
      find_process_files(root_dir)
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/tools/cythonize.py", line 225, in find_process_files
      process(root_dir, fromfile, tofile, function, hash_db)
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/tools/cythonize.py", line 191, in process
      processor_function(fromfile, tofile)
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/tools/cythonize.py", line 94, in process_tempita_pyx
      process_pyx(pyxfile, tofile)
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/tools/cythonize.py", line 66, in process_pyx
      raise OSError('Cython needs to be installed in Python as a module')
  OSError: Cython needs to be installed in Python as a module
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 154, in save_modules
      yield saved
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/setup.py", line 488, in <module>
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/setup.py", line 469, in setup_package
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/setup.py", line 275, in generate_cython
  RuntimeError: Running cythonize failed!
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-mqlylpoo/h5py/setup.py", line 159, in <module>
      cmdclass = CMDCLASS,
    File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 128, in setup
      _install_setup_requires(attrs)
    File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 123, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 513, in fetch_build_eggs
      replace_conflicting=True,
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 774, in resolve
      replace_conflicting=replace_conflicting
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1057, in best_match
      return self.obtain(req, installer)
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1069, in obtain
      return installer(requirement)
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 580, in fetch_build_egg
      return cmd.easy_install(req)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 698, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 724, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 909, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1177, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1163, in run_setup
      run_setup(setup_script, args)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 253, in run_setup
      raise
    File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
      self.gen.throw(type, value, traceback)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
      self.gen.throw(type, value, traceback)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 166, in save_modules
      saved_exc.resume()
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 141, in resume
      six.reraise(type, exc, self._tb)
    File "/usr/lib/python3/dist-packages/setuptools/_vendor/six.py", line 685, in reraise
      raise value.with_traceback(tb)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 154, in save_modules
      yield saved
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/setup.py", line 488, in <module>
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/setup.py", line 469, in setup_package
    File "/tmp/easy_install-ke5sf8vr/numpy-1.18.2/setup.py", line 275, in generate_cython
  RuntimeError: Running cythonize failed!
  ----------------------------------------
  ERROR: Failed building wheel for h5py

and a second build error:

Failed to build h5py
ERROR: uff 0.6.5 has requirement protobuf>=3.3.0, but you'll have protobuf 3.0.0 which is incompatible.
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