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

Importing without Numba #214

Closed
jstac opened this issue Nov 30, 2015 · 2 comments
Closed

Importing without Numba #214

jstac opened this issue Nov 30, 2015 · 2 comments

Comments

@jstac
Copy link
Contributor

jstac commented Nov 30, 2015

At the moment import of the latest package just fails w/o Numba. Can we make it fail a bit more gracefully, with a suitable error message?

@mmcky
Copy link
Contributor

mmcky commented Dec 2, 2015

Added support for graceful message to 43dca4a
in PR #211

Python 3.5.0 |Anaconda 2.4.0 (64-bit)| (default, Oct 19 2015, 21:57:25) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import quantecon
Traceback (most recent call last):
  File "/home/matthewmckay/repos-collab/QuantEcon.py/quantecon/__init__.py", line 6, in <module>
    import numba
ImportError: No module named 'numba'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/matthewmckay/repos-collab/QuantEcon.py/quantecon/__init__.py", line 8, in <module>
    raise ImportError("Cannot import numba from current anaconda distribution. Please run `conda install numba` to install the latest version.")
ImportError: Cannot import numba from current anaconda distribution. Please run `conda install numba` to install the latest version.

@mmcky
Copy link
Contributor

mmcky commented Dec 23, 2015

@jstac closing this issue now.

@mmcky mmcky closed this as completed Dec 23, 2015
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