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 not installing #85

Open
JoelGodin opened this issue Nov 28, 2020 · 26 comments
Open

Numba not installing #85

JoelGodin opened this issue Nov 28, 2020 · 26 comments

Comments

@JoelGodin
Copy link

JoelGodin commented Nov 28, 2020

Tried to install 0.3.48 and am getting this error:
11
I hit install, it installed something (from that popup) and then tried install numba and it turned blue for a moment, and then nothing. Still says numba has to be installed.
I used to have Xcode, but recently had a hard drive crash and did a new install on an SSD.
Now I can't install Xcode because is says I need 10.15 or newer.
I have 10.13 and can't install any newer macOS's.
Do I really need Xcode to install numba?

A clarification: I did hit install so I'm thinking it did install the dev tools. But still no numba install is happening.

@JoelGodin
Copy link
Author

Looks like dev tools is installed:
1

@JoelGodin
Copy link
Author

Just read that is it mostly for Reaction-Diffusion which I don't use, so no urgency on my part.

@alessandro-zomparelli
Copy link
Owner

Hi @JoelGodin , yes, I can confirm that it is currently used only for the Reaction-Diffusion.
Unfortunately, I don't know the macOS, and I really don't know how to fix that.
@s-leger you helped me with that before, any chance that you know what is happening? Thanks

@s-leger
Copy link
Contributor

s-leger commented Nov 28, 2020

As far as i can tell, a precompiled version of numba for python 3.7 may not be available for macOS, so the pip installer download source and must compile on the fly.
Pip run using "--only-binary all" option by default, meaning it should only download binary when available and may fallback to source when not available.

@alessandro-zomparelli
Copy link
Owner

Hi @s-leger thanks :-) Do you have any possible solution to suggest?

@s-leger
Copy link
Contributor

s-leger commented Nov 29, 2020

Pip class should be verbose enougth to provide a reason for failure to install pre-compiled version, maybe a missing dep issue (as by default it does not try to solve such deps --no-deps argument)
Any console log of failed setup may help to narrow down the issue on macOS - maybe missing llvmlite 0.34.*

No deps argument is important as such package may require numpy as dep and is likely to break blender's numpy by overriding it.

@JoelGodin
Copy link
Author

JoelGodin commented Nov 29, 2020 via email

@s-leger
Copy link
Contributor

s-leger commented Nov 29, 2020

open blender and from a console, run (assuming tissue folder is "tissue-master")

from tissue-master.utils_pip import Pip
Pip.install("numba") 

You should see a brunch of pip related lines on the console.

@JoelGodin
Copy link
Author

JoelGodin commented Nov 29, 2020 via email

@s-leger
Copy link
Contributor

s-leger commented Nov 29, 2020

Ok,
pay attention at removing every "." in the folder name, could also be an issue for blender - this is not allowed by python - !

@JoelGodin
Copy link
Author

JoelGodin commented Nov 29, 2020 via email

@s-leger
Copy link
Contributor

s-leger commented Nov 29, 2020

Rename the folder itself, removing dot in folder name.
then

from your_new_folder_name.utils_pip import Pip

@JoelGodin
Copy link
Author

Screen shot here:
11

@JoelGodin
Copy link
Author

oops, I see what I did. Hold on.

@JoelGodin
Copy link
Author

Okay, I get this

from tissueb290dev0348.utils_pip import Pip
Traceback (most recent call last):
File "<blender_console>", line 1, in
ModuleNotFoundError: No module named 'tissueb290dev0348'

@s-leger
Copy link
Contributor

s-leger commented Nov 29, 2020

When you setup on macOS it does unzip into (assuming you are using default settings to setup your addons)
/Users/$USER/Library/Application Support/Blender/2.91/scripts/addons/tissue-xxx
You must use that folder name for the command, and ensure the folder name does not contains any "." in the between.

@JoelGodin
Copy link
Author

Get this
22

@s-leger
Copy link
Contributor

s-leger commented Nov 29, 2020

hmm looks like it also did not like the "-" in the names.

@JoelGodin
Copy link
Author

Okay, removed, recompressed, went okay, this from second command:

from tissueb290dev.utils_pip import Pip
Pip.install("numba")
Collecting numba

Using cached https://files.pythonhosted.org/packages/5e/81/6fd1dd064bcf71a79da109e8966a39e2da61d68bf0bd1e0839fa997f8c41/numba-0.51.2.tar.gz

Installing collected packages: numba

Running setup.py install for numba: started

Running setup.py install for numba: finished with status 'error'

(False, '')

@s-leger
Copy link
Contributor

s-leger commented Nov 29, 2020

Ok, may miss llvmlite
Try
Pip.install("llvmlite")
and then the numba setup.

@JoelGodin
Copy link
Author

Pip.install("llvmlite")
Requirement already satisfied: llvmlite in /Users/joelgodin/.local/lib/python3.7/site-packages (0.34.0)

(False, '')

Pip.install("numba")
Collecting numba

Using cached https://files.pythonhosted.org/packages/5e/81/6fd1dd064bcf71a79da109e8966a39e2da61d68bf0bd1e0839fa997f8c41/numba-0.51.2.tar.gz

Installing collected packages: numba

Running setup.py install for numba: started

Running setup.py install for numba: finished with status 'error'

(False, '')

@s-leger
Copy link
Contributor

s-leger commented Nov 29, 2020

Hmm, with such "usefull" status report will be pretty hard to figure what the issue realy is.
As far as i can tell there is no "wheel" available and it still expect xcode in order to build.
Maybe you should ask on numba mailing list.

@JoelGodin
Copy link
Author

ok, thanks for your help on this.

@JoelGodin
Copy link
Author

@s-leger Just wanted to ask first, "As far as i can tell, a precompiled version of numba for python 3.7 may not be available for macOS, so the pip installer download source and must compile on the fly."
I have python 2.7.16
Would that be the issue?

@s-leger
Copy link
Contributor

s-leger commented Nov 30, 2020

Blender should use her own python interpreter.
You should see the version number in the blender's python console.
Looks like the downloaded file is not a wheel (?) and require compilation.

Numba require

  • Python versions: 3.6-3.8
  • llvmlite 0.34.*
  • NumPy >=1.15 (can build with 1.11 for ABI compatibility)
    Optionally:
  • Scipy >=1.0.0 (for numpy.linalg support)

@JoelGodin
Copy link
Author

JoelGodin commented Nov 30, 2020

I see.
I'm going to try and download Xcode first.
I had a hard drive crash and this is a new drive.
I had numba working on my last hard drive. It had Xcode installed.
Update: Installing Xcode did not change anything.

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

3 participants