Page MenuHome

Cant import numpy in recent 2.81 daily builds
Closed, ArchivedPublic

Description

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 660/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.94

Blender Version
Broken: version: 2.81 (sub 2), branch: master, commit date: 2019-08-18 20:41, hash: rB10001d909905
Worked: 2.8

Short description of error
Simple script:

import numpy

will give error:

Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
  File "C:\Program Files\Blender_2.81\2.81\python\lib\site-packages\numpy\__init__.py", line 142, in <module>
  from . import core
File "C:\Program Files\Blender_2.81\2.81\python\lib\site-packages\numpy\core\__init__.py", line 67, in <module>
raise ImportError(msg.format(path))
ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['C:\\Program Files\\Blender_2.81\\2.81\\python\\lib\\site-packages\\numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.

I noticed there are new numpy files in blender ProgramFiles folder (search result for numpy):


While in blender 2.8 there was just one folder with numpy:

Event Timeline

Ray Molenkamp (LazyDodo) lowered the priority of this task from 90 to 30.EditedAug 19 2019, 5:45 PM

Seems ok here, can you try starting blender with the blender_debug_log.cmd batch file located in the blender folder reproduce the issue and attach the log files it produces?

Jose Conseco (joseconseco) changed the task status from Unknown Status to Archived.Aug 19 2019, 5:54 PM
Jose Conseco (joseconseco) claimed this task.

Ok It was my mistake. I was extracting new blender, on top of old folder (without clearing old files ). So this caused numpy being installed in two blender folders, and error
Just removing all blender files, and unzipping again in clear folder fixed everyting.

Thanks for reporting back in detail what caused the issue!

I met totally same bug with blender-2.81-a856c5eccffb-linux-glibc217-x86_64 later build.
I'm using in 2.79 and 2.81 together, so I consulted this article and overwrote 2.79's numpy by 2.81's. then issue is gone!
really thank you for sharing the detail, It's helpful for me so much =D