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

Installation error #10

Open
ladsantos opened this issue Jan 29, 2018 · 1 comment
Open

Installation error #10

ladsantos opened this issue Jan 29, 2018 · 1 comment

Comments

@ladsantos
Copy link

When I tried to install costools from source, I got this error:

Running calcos-3.0/setup.py -q bdist_egg --dist-dir /var/folders/jp/y94kfdg15xjgpplw8yrqt3jc0000gn/T/easy_install-3xpdprnf/calcos-3.0/egg-dist-tmp-fkcknzz_
error: Setup script exited with error: each element of 'ext_modules' option must be an Extension instance or 2-tuple

I am using Anaconda Python 3 on macOS. I managed to circumvent the error by installing calcos from source before costools.

@parkusa
Copy link

parkusa commented Aug 3, 2020

I had this issue thrown, and a few others. Ultimatley for install this is what I did using a Windows operating system:

(1) Make a new folder for related packages, mine's named "STScI_Python_Tools"
(2) Open bash and navigate to the new folder
(3) In bash clone the git calcos and costools (in that order) using
-$git clone https://github.com/spacetelescope/calcos.git
-$git clone https://github.com/spacetelescope/costools.git
(4) Add this new folder to your python path lists. I use Spyder and did this:
- Spyder -> Tools -> Python Task Manager -> Add -> STScI_Python_Tools

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

2 participants