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

numba.core import issues #6569

Closed
1 task
bb4245 opened this issue Dec 11, 2020 · 6 comments
Closed
1 task

numba.core import issues #6569

bb4245 opened this issue Dec 11, 2020 · 6 comments
Labels
question Notes an issue as a question

Comments

@bb4245
Copy link

bb4245 commented Dec 11, 2020

Reporting a bug

  • [x ] I have tried using the latest released version of Numba (most recent is
    visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
  • I have included a self contained code sample to reproduce the problem.
    i.e. it's possible to run as 'python bug.py'.
@esc esc added the more info needed This issue needs more information label Dec 11, 2020
@esc
Copy link
Member

esc commented Dec 11, 2020

@clsmith12 thank you for submitting this. In order to debug this further, please supplement this issue with additional information:

  • What did you do?
  • What did you expect?
  • What happened instead?

@bb4245
Copy link
Author

bb4245 commented Dec 11, 2020

Hi, thought I had written more in my original but it doesn't seem to be there...

downloaded numba zip from github (due to permissions issues with a company device I am not able to use pip install)
The numba version is 0.45.1 (and I cannot get the latest 0.52?) according to numba.version from this install. (Note, the only way I can install is using the zip file from github! )

I can successfully import numba. but I cannot import numba.core, even when making sure the folder is in sys.path.
I can, however, successfuly "import core" instead (and similar applies to the other sub modules). So by changing all numba.core to core this works. However, this means any thing I am running that uses numba.core needs changing (and same for the other sub modules)

@esc
Copy link
Member

esc commented Dec 12, 2020

@clsmith12 thank you for updating this. First of all, this is a very, very unusual situation you are in and probably very few people (if any?) in the Numba community have encountered this kind of situation before. I am afraid I am going to need some additional details in order to continue debugging this:

  • What operating system are you on?
  • What compilers are available to you on this system?
  • What link did you use to download the zip the file?
  • What is the name of the zip file that you obtained?
  • How did you obtain/install Python in the first place?
  • What version of Python is it?
  • How did you install Numba into the Python installation from the zip file? What commands did you use? How did you compile it?
  • How are you setting up sys.path?
  • What commands do you use to launch the Python interpreter?
  • What error messages do you see, if any?

It's OK if you don't have all the answers here, but please try to answer as best you can so we can get to the next step of debugging. Listing exact commands, their output and any error messages verbatim is likely to help. Thanks!

@stuartarchibald
Copy link
Contributor

Are you trying to run numba from the directory in which is was downloaded? That might cause this issue. Another potential problem is that 0.45.1 didn't have numba.core, the first version of Numba that had numba.core is 0.49 which was following a large refactor when Python 2.7 support was removed. As for downloads of source, you should be able to get a zip of the latest release from here: https://github.com/numba/numba/releases

@bb4245
Copy link
Author

bb4245 commented Dec 14, 2020 via email

@stuartarchibald
Copy link
Contributor

You can extract Numba anywhere you like, it then needs building, there's some instructions here. Am going to close this issue as resolved, if you encounter issues please do post to the Numba discourse forum https://numba.discourse.group or ask questions on IRC: https://gitter.im/numba/numba. Thanks!

@stuartarchibald stuartarchibald added question Notes an issue as a question and removed more info needed This issue needs more information labels Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Notes an issue as a question
Projects
None yet
Development

No branches or pull requests

3 participants