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

bumped astropy to 0.4.0 #112

Merged
merged 1 commit into from
Sep 30, 2015
Merged

Conversation

ufeindt
Copy link
Contributor

@ufeindt ufeindt commented Sep 30, 2015

I tried installing on a machine with astropy 0.3.0 (the current version in the Ubuntu 14.04 repositories).

When I try importing I get the following error:

>>> import sncosmo
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ufein/.virtualenvs/sncosmo-test/local/lib/python2.7/site-packages/sncosmo/__init__.py", line 124, in <module>
    from astropy.config import ConfigItem, ConfigNamespace
ImportError: cannot import name ConfigItem

ConfigItem does not exist before astropy 0.4.0, so I the requirement should be bumped to the version. I quickly verified that it work with that version in separate virtualenvs.

Unless I'm mistaken pip-requirements is all that needs to be changed.

@kbarbary
Copy link
Member

Yep, you're right. The minimum astropy version should now be v0.4.0.

You should be able to install an older version of sncosmo (maybe v0.4?) which will work with astropy v0.3.

Thanks!

kbarbary added a commit that referenced this pull request Sep 30, 2015
@kbarbary kbarbary merged commit 3931686 into sncosmo:master Sep 30, 2015
@ufeindt ufeindt deleted the required-astropy branch September 30, 2015 13:48
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

Successfully merging this pull request may close these issues.

None yet

2 participants