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

pyds9 not installing Mac #78

Open
battersbot opened this issue Jun 27, 2019 · 21 comments
Open

pyds9 not installing Mac #78

battersbot opened this issue Jun 27, 2019 · 21 comments

Comments

@battersbot
Copy link

battersbot commented Jun 27, 2019

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

@ericmandel
Copy link
Owner

@montefra Any ideas?

@montefra
Copy link
Contributor

It means that the command ./configure --without-tcl in the xpa directory fails.

Could have to do with the compiler in use.

The second error happens because the xpa library is not correctly installed

@ericmandel
Copy link
Owner

@montefra But what about all the previous warnings? "no files found matching" etc. Are these to be ignored? That's what I was confused about ... not understanding if those warning led to the error that comes after.

@battersbot As @montefra described above, the critical error is this one:

checking for C compiler default output file name... configure: error: C compiler cannot create executables

It means that GNU configure could not create a test program using gcc. Can you please test gcc outside this build environment and make sure you can compile a program?

@jvines
Copy link

jvines commented Nov 5, 2019

Hi all,

This is not an issue with gcc per se, but with which compiler you are using. I've had this exact problem many many times while installing stuff on my mac - I usually fix it by pointing the default compiler to another one. For example, to install pyds9 I did export CC=clang and then ran python setup.py install and it worked.

Hope this works for you, @battersbot

@battersbot
Copy link
Author

Hi all. Sorry for the long delay --

I re-installed xcode and command line tools, including gcc and was able to successfully (as far as I can tell) install pyds9 (no errors and install output ended on: "Finished processing dependencies for pyds9==1.9.dev0"). However, when trying to load into python, I again get an XPA shared library error:

Python 3.6.8 |Anaconda custom (64-bit)| (default, Dec 29 2018, 19:04:46) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyds9
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Applications/pyds9/pyds9-master/pyds9/__init__.py", line 20, in <module>
    from .pyds9 import *
  File "/Applications/pyds9/pyds9-master/pyds9/pyds9.py", line 30, in <module>
    from . import xpa
  File "/Applications/pyds9/pyds9-master/pyds9/xpa.py", line 32, in <module>
    raise ImportError("can't find XPA shared library")
ImportError: can't find XPA shared library

Any suggestions @ericmandel @montefra ?

(Also @jvines - thank you so much for the suggestion, but it looks like I also didn't have clang working properly, so that solution did not work for me).

@ericmandel
Copy link
Owner

@battersbot Something went wrong with the xpa compile ... can you please either post the full install log containing the compile?

p.s. Francesco is no longer a maintainer, we now have Python expertise from @DougBurke

@battersbot
Copy link
Author

Thanks for your help @ericmandel and sorry for the bother :(

Here is the full install output, there are indeed some warnings, but I wasn't able to solve them:

The requested path 'astropy_helpers' for importing astropy_helpers does not exist, or does not contain a copy of the astropy_helpers package.
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)
Freezing version number to ./pyds9/version.py
running install
running bdist_egg
running egg_info
creating pyds9.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
writing manifest file 'pyds9.egg-info/SOURCES.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
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/pyds9
copying pyds9/xpa.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9
copying pyds9/pyds9.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9
copying pyds9/conftest.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9
copying pyds9/version.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9
copying pyds9/_astropy_init.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9
copying pyds9/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9
copying pyds9/setup_package.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9
creating build/lib.macosx-10.7-x86_64-3.6/pyds9/tests
copying pyds9/tests/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9/tests
copying pyds9/tests/test_pyds9.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9/tests
copying pyds9/tests/setup_package.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9/tests
creating build/lib.macosx-10.7-x86_64-3.6/pyds9/utils
copying pyds9/utils/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9/utils
creating build/lib.macosx-10.7-x86_64-3.6/pyds9/extern
copying pyds9/extern/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9/extern
creating build/lib.macosx-10.7-x86_64-3.6/pyds9/data
copying pyds9/data/README.rst -> build/lib.macosx-10.7-x86_64-3.6/pyds9/data
creating build/lib.macosx-10.7-x86_64-3.6/pyds9/tests/data
copying pyds9/tests/data/test.fits -> build/lib.macosx-10.7-x86_64-3.6/pyds9/tests/data
copying pyds9/tests/data/test_3D.fits -> build/lib.macosx-10.7-x86_64-3.6/pyds9/tests/data
running build_ext
running pre_hook from pyds9.setup_package for build_ext command
checking build system type... i386-apple-darwin18.7.0
checking host system type... i386-apple-darwin18.7.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long... yes
checking size of long... 8
checking for ranlib... ranlib
checking for ANSI C header files... (cached) yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for socklen_t... yes
checking for an ANSI C-conforming const... yes
checking for strchr... yes
checking for memcpy... yes
checking for snprintf... yes
checking for atexit... yes
checking for setenv... yes
checking for connect... yes
checking for gethostbyname... yes
checking for threaded xpans... no
checking for shared library build... no
checking for request to use posix_spawn... no
checking for X... no
checking for Tcl configuration... skipping Tcl configuration
checking for incorporation of thread support... no
checking for gtk... no
checking darwin18.7.0 configuration... ./configure: line 7817: test: version: integer expression expected
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xpa.pc
config.status: creating conf.h
building 'pyds9.compiler_version' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/pyds9
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include/python3.6m -c pyds9/_compiler.c -o build/temp.macosx-10.7-x86_64-3.6/pyds9/_compiler.o
gcc -bundle -undefined dynamic_lookup -L/Users/battersby/anaconda3/lib -arch x86_64 -L/Users/battersby/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.6/pyds9/_compiler.o -o build/lib.macosx-10.7-x86_64-3.6/pyds9/compiler_version.cpython-36m-darwin.so
building 'pyds9.libxpa' extension
creating build/temp.macosx-10.7-x86_64-3.6/cextern
creating build/temp.macosx-10.7-x86_64-3.6/cextern/xpa
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/xpa.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xpa.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
cextern/xpa/xpa.c:646:12: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
        for(i=0; i<strlen(findname); i++){
                 ~^~~~~~~~~~~~~~~~~
cextern/xpa/xpa.c:662:12: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
        for(i=0; i<strlen(findname); i++){
                 ~^~~~~~~~~~~~~~~~~
2 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/xpaio.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xpaio.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
cextern/xpa/xpaio.c:776:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
  done1 = (cur >= total);
           ~~~ ^  ~~~~~
cextern/xpa/xpaio.c:862:15: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
        done1 = (cur >= total);
                 ~~~ ^  ~~~~~
2 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/command.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/command.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/acl.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/acl.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/remote.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/remote.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/clipboard.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/clipboard.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/port.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/port.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/tcp.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/tcp.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/client.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/client.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
cextern/xpa/client.c:79:12: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
  while( i < (len-1) ){
         ~ ^  ~~~~~
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/word.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/word.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/xalloc.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xalloc.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/find.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/find.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/xlaunch.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xlaunch.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/timedconn.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/timedconn.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/tclloop.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/tclloop.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/tcl.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/tcl.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -bundle -undefined dynamic_lookup -L/Users/battersby/anaconda3/lib -arch x86_64 -L/Users/battersby/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xpa.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xpaio.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/command.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/acl.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/remote.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/clipboard.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/port.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/tcp.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/client.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/word.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xalloc.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/find.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xlaunch.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/timedconn.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/tclloop.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/tcl.o -o build/lib.macosx-10.7-x86_64-3.6/pyds9/libxpa.cpython-36m-darwin.so
copying pyds9/cython_version.py -> build/lib.macosx-10.7-x86_64-3.6/pyds9
running post_hook from pyds9.setup_package for build_ext command
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -Icextern/xpa -I/Users/battersby/anaconda3/include/python3.6m -c cextern/xpa/xpans.c -o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xpans.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/battersby/anaconda3/include -arch x86_64 -I/Users/battersby/anaconda3/include -arch x86_64 -o build/lib.macosx-10.7-x86_64-3.6/pyds9/xpans build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/clipboard.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/tcl.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/command.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/timedconn.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xalloc.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xlaunch.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xpans.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/tcp.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/port.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/word.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/acl.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/tclloop.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/client.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/remote.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/find.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xpaio.o build/temp.macosx-10.7-x86_64-3.6/cextern/xpa/xpa.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
rm -f *.a *.so *.so.* *.dylib *.o *.exe core \
			errs *pure* .nfs* \
			foo* *~ *.log \#* TAGS *.E a.out errors \
			xpaset xpaget xpainfo xpaaccess xpans xpamb ctest stest rtest \
			gmon.out *.pg *.bak \
			config.info config.log \
			doc/*~ doc/*.bak man/*~
rm -f -r autom4te.cache a.out.dSYM
rm -f Makefile config.status config.cache config.log conf.h \
		xpa.pc
creating build/bdist.macosx-10.7-x86_64
creating build/bdist.macosx-10.7-x86_64/egg
creating build/bdist.macosx-10.7-x86_64/egg/pyds9
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/xpa.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/pyds9.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/conftest.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/version.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/compiler_version.cpython-36m-darwin.so -> build/bdist.macosx-10.7-x86_64/egg/pyds9
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/_astropy_init.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9
creating build/bdist.macosx-10.7-x86_64/egg/pyds9/tests
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/tests/__init__.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9/tests
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/tests/test_pyds9.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9/tests
creating build/bdist.macosx-10.7-x86_64/egg/pyds9/tests/data
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/tests/data/test.fits -> build/bdist.macosx-10.7-x86_64/egg/pyds9/tests/data
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/tests/data/test_3D.fits -> build/bdist.macosx-10.7-x86_64/egg/pyds9/tests/data
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/tests/setup_package.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9/tests
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/__init__.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9
creating build/bdist.macosx-10.7-x86_64/egg/pyds9/utils
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/utils/__init__.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9/utils
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/libxpa.cpython-36m-darwin.so -> build/bdist.macosx-10.7-x86_64/egg/pyds9
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/cython_version.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9
creating build/bdist.macosx-10.7-x86_64/egg/pyds9/extern
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/extern/__init__.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9/extern
creating build/bdist.macosx-10.7-x86_64/egg/pyds9/data
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/data/README.rst -> build/bdist.macosx-10.7-x86_64/egg/pyds9/data
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/xpans -> build/bdist.macosx-10.7-x86_64/egg/pyds9
copying build/lib.macosx-10.7-x86_64-3.6/pyds9/setup_package.py -> build/bdist.macosx-10.7-x86_64/egg/pyds9
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/xpa.py to xpa.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/pyds9.py to pyds9.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/conftest.py to conftest.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/version.py to version.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/_astropy_init.py to _astropy_init.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/tests/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/tests/test_pyds9.py to test_pyds9.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/tests/setup_package.py to setup_package.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/utils/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/cython_version.py to cython_version.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/extern/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/setup_package.py to setup_package.cpython-36.pyc
creating stub loader for pyds9/compiler_version.cpython-36m-darwin.so
creating stub loader for pyds9/libxpa.cpython-36m-darwin.so
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/compiler_version.py to compiler_version.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/pyds9/libxpa.py to libxpa.cpython-36.pyc
creating build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying pyds9.egg-info/PKG-INFO -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying pyds9.egg-info/SOURCES.txt -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying pyds9.egg-info/dependency_links.txt -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying pyds9.egg-info/entry_points.txt -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying pyds9.egg-info/not-zip-safe -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying pyds9.egg-info/requires.txt -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying pyds9.egg-info/top_level.txt -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.7-x86_64/egg/EGG-INFO/native_libs.txt
creating dist
creating 'dist/pyds9-1.9.dev0-py3.6-macosx-10.7-x86_64.egg' and adding 'build/bdist.macosx-10.7-x86_64/egg' to it
removing 'build/bdist.macosx-10.7-x86_64/egg' (and everything under it)
Processing pyds9-1.9.dev0-py3.6-macosx-10.7-x86_64.egg
removing '/Users/battersby/anaconda3/lib/python3.6/site-packages/pyds9-1.9.dev0-py3.6-macosx-10.7-x86_64.egg' (and everything under it)
creating /Users/battersby/anaconda3/lib/python3.6/site-packages/pyds9-1.9.dev0-py3.6-macosx-10.7-x86_64.egg
Extracting pyds9-1.9.dev0-py3.6-macosx-10.7-x86_64.egg to /Users/battersby/anaconda3/lib/python3.6/site-packages
pyds9 1.9.dev0 is already the active version in easy-install.pth

Installed /Users/battersby/anaconda3/lib/python3.6/site-packages/pyds9-1.9.dev0-py3.6-macosx-10.7-x86_64.egg
Processing dependencies for pyds9==1.9.dev0
Searching for numpy==1.12.1
Best match: numpy 1.12.1
Adding numpy 1.12.1 to easy-install.pth file

Using /Users/battersby/anaconda3/lib/python3.6/site-packages
Searching for astropy==2.0.14
Best match: astropy 2.0.14
Adding astropy 2.0.14 to easy-install.pth file
Installing fits2bitmap script to /Users/battersby/anaconda3/bin
Installing fitscheck script to /Users/battersby/anaconda3/bin
Installing fitsdiff script to /Users/battersby/anaconda3/bin
Installing fitsheader script to /Users/battersby/anaconda3/bin
Installing fitsinfo script to /Users/battersby/anaconda3/bin
Installing samp_hub script to /Users/battersby/anaconda3/bin
Installing volint script to /Users/battersby/anaconda3/bin
Installing wcslint script to /Users/battersby/anaconda3/bin

Using /Users/battersby/anaconda3/lib/python3.6/site-packages
Searching for pytest==3.0.7
Best match: pytest 3.0.7
Adding pytest 3.0.7 to easy-install.pth file
Installing py.test script to /Users/battersby/anaconda3/bin
Installing pytest script to /Users/battersby/anaconda3/bin

Using /Users/battersby/anaconda3/lib/python3.6/site-packages
Searching for setuptools==40.0.0
Best match: setuptools 40.0.0
Adding setuptools 40.0.0 to easy-install.pth file
Installing easy_install script to /Users/battersby/anaconda3/bin

Using /Users/battersby/anaconda3/lib/python3.6/site-packages
Searching for py==1.4.33
Best match: py 1.4.33
Adding py 1.4.33 to easy-install.pth file

Using /Users/battersby/anaconda3/lib/python3.6/site-packages
Finished processing dependencies for pyds9==1.9.dev0

@ericmandel
Copy link
Owner

Here's my output from a Mac without Anaconda installed. Import does work and I can load images etc. I have no idea what is going on with Anaconda, so I can only tap @DougBurke on the shoulder.
(More distressingly, I have no idea what is going on in the setup.py either, its changed "a bit" since I wrote the first version a decade ago.)

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 '
.pyx' under directory 'astropy_helpers/astropy_helpers'
warning: no files found matching '.h' under directory 'astropy_helpers/astropy_helpers'
no previously-included directories found matching 'astropy_helpers/build'
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.9-x86_64/egg
running install_lib
running build_py
copying pyds9/_compiler.c -> build/lib.macosx-10.9-x86_64-3.7/pyds9
running build_ext
running pre_hook from pyds9.setup_package for build_ext command
checking build system type... i386-apple-darwin18.7.0
checking host system type... i386-apple-darwin18.7.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long... yes
checking size of long... 8
checking for ranlib... ranlib
checking for ANSI C header files... (cached) yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for socklen_t... yes
checking for an ANSI C-conforming const... yes
checking for strchr... yes
checking for memcpy... yes
checking for snprintf... yes
checking for atexit... yes
checking for setenv... yes
checking for connect... yes
checking for gethostbyname... yes
checking for threaded xpans... no
checking for shared library build... no
checking for request to use posix_spawn... no
checking for X... no
checking for Tcl configuration... skipping Tcl configuration
checking for incorporation of thread support... no
checking for gtk... no
checking darwin18.7.0 configuration... ./configure: line 7817: test: version: integer expression expected
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xpa.pc
config.status: creating conf.h
building 'pyds9._compiler' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c pyds9/_compiler.c -o build/temp.macosx-10.9-x86_64-3.7/pyds9/_compiler.o
gcc -bundle -undefined dynamic_lookup -arch x86_64 -g build/temp.macosx-10.9-x86_64-3.7/pyds9/_compiler.o -o build/lib.macosx-10.9-x86_64-3.7/pyds9/_compiler.cpython-37m-darwin.so
running post_hook from pyds9.setup_package for build_ext command
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -Icextern/xpa -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c cextern/xpa/xpans.c -o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/xpans.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
rm -f *.a *.so .so. *.dylib .o .exe core
errs pure .nfs

foo
*~ .log # TAGS .E a.out errors
xpaset xpaget xpainfo xpaaccess xpans xpamb ctest stest rtest
gmon.out .pg .bak
config.info config.log
doc/
~ doc/
.bak man/
~
rm -f -r autom4te.cache a.out.dSYM
rm -f Makefile config.status config.cache config.log conf.h
xpa.pc
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -o build/lib.macosx-10.9-x86_64-3.7/pyds9/xpans build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/tcp.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/port.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/xpans.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/xalloc.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/xlaunch.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/tclloop.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/xpa.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/timedconn.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/word.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/acl.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/find.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/xpaio.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/remote.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/clipboard.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/client.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/tcl.o build/temp.macosx-10.9-x86_64-3.7/cextern/xpa/command.o -DHAVE_CONFIG_H -Wno-declaration-after-statement -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-format-security -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-strict-aliasing -Wno-return-type -Wno-address -Wno-unused-result
creating build/bdist.macosx-10.9-x86_64/egg
creating build/bdist.macosx-10.9-x86_64/egg/pyds9
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/xpa.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/pyds9.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/conftest.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/version.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/libxpa.cpython-37m-darwin.so -> build/bdist.macosx-10.9-x86_64/egg/pyds9
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/_astropy_init.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9
creating build/bdist.macosx-10.9-x86_64/egg/pyds9/tests
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/tests/init.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9/tests
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/tests/test_pyds9.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9/tests
creating build/bdist.macosx-10.9-x86_64/egg/pyds9/tests/data
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/tests/data/test.fits -> build/bdist.macosx-10.9-x86_64/egg/pyds9/tests/data
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/tests/data/test_3D.fits -> build/bdist.macosx-10.9-x86_64/egg/pyds9/tests/data
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/tests/setup_package.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9/tests
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/init.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9
creating build/bdist.macosx-10.9-x86_64/egg/pyds9/utils
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/utils/init.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9/utils
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/_compiler.cpython-37m-darwin.so -> build/bdist.macosx-10.9-x86_64/egg/pyds9
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/_compiler.c -> build/bdist.macosx-10.9-x86_64/egg/pyds9
creating build/bdist.macosx-10.9-x86_64/egg/pyds9/extern
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/extern/init.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9/extern
creating build/bdist.macosx-10.9-x86_64/egg/pyds9/data
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/data/README.rst -> build/bdist.macosx-10.9-x86_64/egg/pyds9/data
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/xpans -> build/bdist.macosx-10.9-x86_64/egg/pyds9
copying build/lib.macosx-10.9-x86_64-3.7/pyds9/setup_package.py -> build/bdist.macosx-10.9-x86_64/egg/pyds9
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/xpa.py to xpa.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/pyds9.py to pyds9.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/conftest.py to conftest.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/version.py to version.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/_astropy_init.py to _astropy_init.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/tests/init.py to init.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/tests/test_pyds9.py to test_pyds9.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/tests/setup_package.py to setup_package.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/init.py to init.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/utils/init.py to init.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/extern/init.py to init.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/setup_package.py to setup_package.cpython-37.pyc
creating stub loader for pyds9/_compiler.cpython-37m-darwin.so
creating stub loader for pyds9/libxpa.cpython-37m-darwin.so
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/_compiler.py to _compiler.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/pyds9/libxpa.py to libxpa.cpython-37.pyc
creating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pyds9.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pyds9.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pyds9.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pyds9.egg-info/entry_points.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pyds9.egg-info/not-zip-safe -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pyds9.egg-info/requires.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying pyds9.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.9-x86_64/egg/EGG-INFO/native_libs.txt
creating 'dist/pyds9-1.9.dev220-py3.7-macosx-10.9-x86_64.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it
removing 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it)
Creating /Users/eric/tmp/lib/python3.7/site-packages/site.py
Processing pyds9-1.9.dev220-py3.7-macosx-10.9-x86_64.egg
creating /Users/eric/tmp/lib/python3.7/site-packages/pyds9-1.9.dev220-py3.7-macosx-10.9-x86_64.egg
Extracting pyds9-1.9.dev220-py3.7-macosx-10.9-x86_64.egg to /Users/eric/tmp/lib/python3.7/site-packages
Adding pyds9 1.9.dev220 to easy-install.pth file

Installed /Users/eric/tmp/lib/python3.7/site-packages/pyds9-1.9.dev220-py3.7-macosx-10.9-x86_64.egg
Processing dependencies for pyds9==1.9.dev220
Searching for numpy==1.16.4
Best match: numpy 1.16.4
Adding numpy 1.16.4 to easy-install.pth file
Installing f2py script to /Users/eric/tmp/bin
Installing f2py3 script to /Users/eric/tmp/bin
Installing f2py3.7 script to /Users/eric/tmp/bin

Using /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
Searching for astropy==3.1.2
Best match: astropy 3.1.2
Adding astropy 3.1.2 to easy-install.pth file
Installing fits2bitmap script to /Users/eric/tmp/bin
Installing fitscheck script to /Users/eric/tmp/bin
Installing fitsdiff script to /Users/eric/tmp/bin
Installing fitsheader script to /Users/eric/tmp/bin
Installing fitsinfo script to /Users/eric/tmp/bin
Installing samp_hub script to /Users/eric/tmp/bin
Installing showtable script to /Users/eric/tmp/bin
Installing volint script to /Users/eric/tmp/bin
Installing wcslint script to /Users/eric/tmp/bin

Using /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
Finished processing dependencies for pyds9==1.9.dev220

@DougBurke
Copy link
Collaborator

@battersbot - stupid question, but are you in the pyds9 directory when you try

python -c 'import pyds9'

(I just did this and got your error, so just wanted to check).

@battersbot
Copy link
Author

Not a stupid question at all @DougBurke. I was not in the pyds9 directory when I was trying to import pyds9 in python. I now tried switching to the pyds9-master directory and importing pyds9 (using the exact command you suggest) and get the same error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/battersby/anaconda3/pyds9-master/pyds9/__init__.py", line 20, in <module>
    from .pyds9 import *
  File "/Users/battersby/anaconda3/pyds9-master/pyds9/pyds9.py", line 30, in <module>
    from . import xpa
  File "/Users/battersby/anaconda3/pyds9-master/pyds9/xpa.py", line 32, in <module>
    raise ImportError("can't find XPA shared library")
ImportError: can't find XPA shared library

Any other ideas? Thanks so much for your help.

@DougBurke
Copy link
Collaborator

@battersbot - if you try

% find /Users/battersby/anaconda3/pyds9-master -name \*libxpa\*

what do you get?

Also, could you try

a) with the latest master branch (as I've updated to using a more-recent version of the astropy helpers)
b) are you using AstroPy 2 for any reason (i.e. could you update to a newer version)?

I don't think this will help, but will give me time to slide off to Vegas for a week.....

@battersbot
Copy link
Author

For the first command, here is the output:
/Users/battersby/anaconda3/pyds9-master/build/lib.macosx-10.7-x86_64-3.6/pyds9/libxpa.cpython-36m-darwin.so

a) The output indicates I'm already up to date - I must misunderstand. How should I update to the latest branch?

battersby@vera:~/anaconda3/pyds9-master$ pip install --upgrade pyds9
Requirement already up-to-date: pyds9 in /Users/battersby/anaconda3/lib/python3.6/site-packages/pyds9-1.9.dev0-py3.6-macosx-10.7-x86_64.egg (1.9.dev0)
Requirement already satisfied, skipping upgrade: astropy in /Users/battersby/anaconda3/lib/python3.6/site-packages (from pyds9) (4.0)
Requirement already satisfied, skipping upgrade: numpy in /Users/battersby/anaconda3/lib/python3.6/site-packages (from pyds9) (1.18.1)

b) I am not using AstroPy 2, but I did an update just in case and tried again. Same error :(

Have fun in Vegas!

Thanks,Cara

@DougBurke
Copy link
Collaborator

What does the following return?

% git rev-parse HEAD
ed931d60705ac2a0bb3f0535fab36c45a70834a0

@battersbot
Copy link
Author

It returns:

battersby@vera:~/anaconda3/pyds9-master$ git rev-parse HEAD
fatal: Not a git repository (or any of the parent directories): .git
battersby@vera:~/anaconda3/pyds9-master$ git rev-parse HEAD ed931d60705ac2a0bb3f0535fab36c45a70834a0
fatal: Not a git repository (or any of the parent directories): .git

@DougBurke
Copy link
Collaborator

@battersbot - sorry, I thought you had tried to install a version from git. Although I'm a bit confused as your install log talks about version 1.9 - i.e. Finished processing dependencies for pyds9==1.9.dev0 - so where did you get the code you tried to install?

@battersbot
Copy link
Author

@DougBurke I originally tried

pip install --upgrade pyds9

and when that failed, I tried:

Alternatively, you can clone the git repository or download and unpack the zip file. Then cd into the pyds9 directory and issue:

> python setup.py [--user] install

recommended on the GitHub page: https://github.com/ericmandel/pyds9

@DougBurke
Copy link
Collaborator

So, in the directory you did the 'git clone' what does

git rev-parse HEAD

return?

@battersbot
Copy link
Author

Hi @DougBurke -

I didn't actually do 'git clone' - I just downloaded and unpacked the zip file that was linked and did

python setup.py install

If I type the command you suggest, here is what it returns:

battersby@vera:~/anaconda3/pyds9-master$ git rev-parse HEAD
fatal: Not a git repository (or any of the parent directories): .git

Perhaps I just installed it incorrectly? Totally possible - I am not experienced in these things and might have made a simple / beginner's mistake...
Thanks for your help.
Cara

@DougBurke
Copy link
Collaborator

Ahh, if you didn't 'git clone' then the 'rev-parse' call wouldn't work. It looks like my recent changes haven't fixed your problem. Unfortunately I've run out of time to look at this any more until I get back.

@PoliteCat420
Copy link

Hello,
I have stumbled across this thread due to facing the exact same issues as @battersbot. After reading the entire thread I feel like it was left incomplete, unless you got it to work somehow, in which case I would love to know how.
Thanks!

@DougBurke
Copy link
Collaborator

Sorry, I had to stop working on pyds9 for medical reasons, and haven't had the time to get back into it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants