Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

pyds9 not installing Mac #78

Description

@battersbot

I am trying to get pyds9 to work in my environment and am having some trouble.

I first tried: pip install pyds9

which led to the following error:

  ----------------------------------------
  ERROR: Failed building wheel for pyds9
  Running setup.py clean for pyds9
Failed to build pyds9
Installing collected packages: pyds9
  Running setup.py install for pyds9 ... error

I then downloaded the zip file from GitHub, went to the directory I downloaded it to, and tried: python setup.py install

which led to this error when I tried to run it:

Downloading 'astropy-helpers'; run setup.py with the --offline option to force offline installation.
/Users/battersby/anaconda3/lib/python3.6/site-packages/astropy_helpers/git_helpers.py:120: UserWarning: No git repository present at '/Users/battersby/anaconda3/pyds9-master'! Using default dev version.
  'default dev version.'.format(path))
/Users/battersby/anaconda3/lib/python3.6/site-packages/astropy_helpers/setup_helpers.py:165: AstropyDeprecationWarning: The package argument to generate_version_py has been deprecated and will be removed in future. Specify the package name in setup.cfg instead
  'the package name in setup.cfg instead', AstropyDeprecationWarning)
/Users/battersby/anaconda3/lib/python3.6/site-packages/astropy_helpers/setup_helpers.py:170: AstropyDeprecationWarning: The version argument to generate_version_py has been deprecated and will be removed in future. Specify the version number in setup.cfg instead
  'the version number in setup.cfg instead', AstropyDeprecationWarning)
/Users/battersby/anaconda3/lib/python3.6/site-packages/astropy_helpers/setup_helpers.py:176: AstropyDeprecationWarning: The release argument to generate_version_py has been deprecated and will be removed in future. We now use the presence of the "dev" string in the version to determine whether this is a release
  'determine whether this is a release', AstropyDeprecationWarning)
/Users/battersby/anaconda3/lib/python3.6/site-packages/astropy_helpers/setup_helpers.py:190: AstropyDeprecationWarning: Specifying the package name using the "package_name" option in setup.cfg is deprecated - use the "name" option instead.
  'option instead.', AstropyDeprecationWarning)
/Users/battersby/anaconda3/lib/python3.6/site-packages/astropy_helpers/version_helpers.py:244: AstropyDeprecationWarning: The packagename argument to generate_version_py has been deprecated and will be removed in future. Specify the package name in setup.cfg instead
  'the package name in setup.cfg instead', AstropyDeprecationWarning)
/Users/battersby/anaconda3/lib/python3.6/site-packages/astropy_helpers/version_helpers.py:249: AstropyDeprecationWarning: The version argument to generate_version_py has been deprecated and will be removed in future. Specify the version number in setup.cfg instead
  'the version number in setup.cfg instead', AstropyDeprecationWarning)
/Users/battersby/anaconda3/lib/python3.6/site-packages/astropy_helpers/version_helpers.py:255: AstropyDeprecationWarning: The release argument to generate_version_py has been deprecated and will be removed in future. We now use the presence of the "dev" string in the version to determine whether this is a release
  'determine whether this is a release', AstropyDeprecationWarning)
/Users/battersby/anaconda3/lib/python3.6/site-packages/astropy_helpers/version_helpers.py:269: AstropyDeprecationWarning: Specifying the package name using the "package_name" option in setup.cfg is deprecated - use the "name" option instead.
  'option instead.', AstropyDeprecationWarning)
running install
running bdist_egg
running egg_info
writing pyds9.egg-info/PKG-INFO
writing dependency_links to pyds9.egg-info/dependency_links.txt
writing entry points to pyds9.egg-info/entry_points.txt
writing requirements to pyds9.egg-info/requires.txt
writing top-level names to pyds9.egg-info/top_level.txt
reading manifest file 'pyds9.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'COPYING'
warning: no files found matching '*.c' under directory '*.pyx'
warning: no files found matching '*.pxd' under directory '*.pyx'
warning: no files found matching '*' under directory 'scripts'
no previously-included directories found matching 'build'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/api'
warning: no files found matching 'astropy_helpers/README.rst'
warning: no files found matching 'astropy_helpers/CHANGES.rst'
warning: no files found matching 'astropy_helpers/LICENSE.rst'
warning: no files found matching '*' under directory 'astropy_helpers/licenses'
warning: no files found matching 'astropy_helpers/ez_setup.py'
warning: no files found matching 'astropy_helpers/ah_bootstrap.py'
warning: no files found matching '*.py' under directory 'astropy_helpers/astropy_helpers'
warning: no files found matching '*.pyx' under directory 'astropy_helpers/astropy_helpers'
warning: no files found matching '*.c' under directory 'astropy_helpers/astropy_helpers'
warning: no files found matching '*.h' under directory 'astropy_helpers/astropy_helpers'
warning: no files found matching '*' under directory 'astropy_helpers/astropy_helpers.egg-info'
warning: no files found matching '*' under directory 'astropy_helpers/astropy_helpers/sphinx'
no previously-included directories found matching 'astropy_helpers/build'
no previously-included directories found matching 'astropy_helpers/astropy_helpers/tests'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.o' found anywhere in distribution
writing manifest file 'pyds9.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.7-x86_64/egg
running install_lib
running build_py
copying pyds9/_compiler.c -> build/lib.macosx-10.7-x86_64-3.6/pyds9
running build_ext
running pre_hook from pyds9.setup_package for build_ext command
checking build system type... i386-apple-darwin18.6.0
checking host system type... i386-apple-darwin18.6.0
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
pre_build_ext_hook command hook build_ext raised an exception: %s

Traceback (most recent call last):
  File "/Users/battersby/anaconda3/lib/python3.6/site-packages/astropy_helpers/setup_helpers.py", line 338, in run_command_hooks
    hook_obj(cmd_obj)
  File "pyds9/setup_package.py", line 94, in pre_build_ext_hook
    sp.check_call([os.path.join('.', 'configure'), '--without-tcl'])
  File "/Users/battersby/anaconda3/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['./configure', '--without-tcl']' returned non-zero exit status 77.

If I try to run a program that calls pyds9, here is the error that I get:

  File "mosaicv2.py", line 6, in <module>
    import pyds9
  File "/Users/battersby/anaconda3/lib/python3.6/site-packages/pyds9.py", line 16, in <module>
    import xpa
  File "/Users/battersby/anaconda3/lib/python3.6/site-packages/xpa.py", line 40, in <module>
    raise ImportError("can't find XPA shared library")
ImportError: can't find XPA shared library 

Can you offer some advice on how to get this properly set up? I have consulted the readme file and webpage extensively without any luck.

Thanks, Cara

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions