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

Error while installing PySPH #250

Closed
alda30 opened this issue Mar 17, 2020 · 1 comment
Closed

Error while installing PySPH #250

alda30 opened this issue Mar 17, 2020 · 1 comment

Comments

@alda30
Copy link

alda30 commented Mar 17, 2020

Hi,

I am new to PySPH and I would like to install it on my Ubuntu machine. But when I do "pip install PySPH" I get:

 ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cffooqhe/PySPH/setup.py'"'"'; __file__='"'"'/tmp/pip-install-cffooqhe/PySPH/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-cffooqhe/PySPH/pip-egg-info
         cwd: /tmp/pip-install-cffooqhe/PySPH/
    Complete output (93 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-cffooqhe/PySPH/setup.py", line 763, in <module>
        setup_package()
      File "/tmp/pip-install-cffooqhe/PySPH/setup.py", line 693, in setup_package
        ext_modules = get_basic_extensions() + get_parallel_extensions()
      File "/tmp/pip-install-cffooqhe/PySPH/setup.py", line 258, in get_basic_extensions
        openmp_compile_args, openmp_link_args, openmp_env = get_openmp_flags()
      File "/tmp/pip-install-cffooqhe/PySPH/setup.py", line 121, in get_openmp_flags
        pyxbuild.pyx_to_dll(fname, extension, pyxbuild_dir=tmp_dir)
      File "/usr/lib/python3/dist-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
        dist.run_commands()
      File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/lib/python3/dist-packages/Cython/Distutils/old_build_ext.py", line 185, in run
        _build_ext.build_ext.run(self)
      File "/usr/lib/python3.7/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/usr/lib/python3/dist-packages/Cython/Distutils/old_build_ext.py", line 192, in build_extensions
        ext.sources = self.cython_sources(ext.sources, ext)
      File "/usr/lib/python3/dist-packages/Cython/Distutils/old_build_ext.py", line 345, in cython_sources
        full_module_name=module_name)
      File "/usr/lib/python3/dist-packages/Cython/Compiler/Main.py", line 693, in compile
        return compile_single(source, options, full_module_name)
      File "/usr/lib/python3/dist-packages/Cython/Compiler/Main.py", line 643, in compile_single
        return run_pipeline(source, options, full_module_name)
      File "/usr/lib/python3/dist-packages/Cython/Compiler/Main.py", line 455, in run_pipeline
        from . import Pipeline
      File "/usr/lib/python3/dist-packages/Cython/Compiler/Pipeline.py", line 9, in <module>
        from .Visitor import CythonTransform
      File "/usr/lib/python3/dist-packages/Cython/Compiler/Visitor.py", line 15, in <module>
        from . import ExprNodes
      File "/usr/lib/python3/dist-packages/Cython/Compiler/ExprNodes.py", line 2844
        await = None
              ^
    SyntaxError: invalid syntax
    Error in sys.excepthook:
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
        from apport.fileutils import likely_packaged, get_recent_crashes
      File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
        from apport.report import Report
      File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
        import apport.fileutils
      File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
        from apport.packaging_impl import impl as packaging
      File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
        import apt
      File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
        import apt_pkg
    ModuleNotFoundError: No module named 'apt_pkg'
    
    Original exception was:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-cffooqhe/PySPH/setup.py", line 763, in <module>
        setup_package()
      File "/tmp/pip-install-cffooqhe/PySPH/setup.py", line 693, in setup_package
        ext_modules = get_basic_extensions() + get_parallel_extensions()
      File "/tmp/pip-install-cffooqhe/PySPH/setup.py", line 258, in get_basic_extensions
        openmp_compile_args, openmp_link_args, openmp_env = get_openmp_flags()
      File "/tmp/pip-install-cffooqhe/PySPH/setup.py", line 121, in get_openmp_flags
        pyxbuild.pyx_to_dll(fname, extension, pyxbuild_dir=tmp_dir)
      File "/usr/lib/python3/dist-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
        dist.run_commands()
      File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/lib/python3/dist-packages/Cython/Distutils/old_build_ext.py", line 185, in run
        _build_ext.build_ext.run(self)
      File "/usr/lib/python3.7/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/usr/lib/python3/dist-packages/Cython/Distutils/old_build_ext.py", line 192, in build_extensions
        ext.sources = self.cython_sources(ext.sources, ext)
      File "/usr/lib/python3/dist-packages/Cython/Distutils/old_build_ext.py", line 345, in cython_sources
        full_module_name=module_name)
      File "/usr/lib/python3/dist-packages/Cython/Compiler/Main.py", line 693, in compile
        return compile_single(source, options, full_module_name)
      File "/usr/lib/python3/dist-packages/Cython/Compiler/Main.py", line 643, in compile_single
        return run_pipeline(source, options, full_module_name)
      File "/usr/lib/python3/dist-packages/Cython/Compiler/Main.py", line 455, in run_pipeline
        from . import Pipeline
      File "/usr/lib/python3/dist-packages/Cython/Compiler/Pipeline.py", line 9, in <module>
        from .Visitor import CythonTransform
      File "/usr/lib/python3/dist-packages/Cython/Compiler/Visitor.py", line 15, in <module>
        from . import ExprNodes
      File "/usr/lib/python3/dist-packages/Cython/Compiler/ExprNodes.py", line 2844
        await = None
              ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Can someone help me?

Regards,
Al

@alda30 alda30 closed this as completed Mar 18, 2020
@alda30
Copy link
Author

alda30 commented Mar 18, 2020

solved

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