Numpy import error on new builds for OSX #51446

Closed
opened 2017-05-09 18:22:39 +02:00 by Todd McIntosh · 26 comments

System Information
OSX 10.12.3

Blender Version
Broken: blender-2.78.0-git20170509.717d85fb1ca-x86_64
Worked: 2.78c official

Blender cannot import the numpy module without error. Specific error is "ImportError: cannot import name 'multiarray'"

  1. Open blender
  2. Switch to python console
  3. Type "import numpy"

Screen Shot 2017-05-09 at 12.16.29 PM.jpg

**System Information** OSX 10.12.3 **Blender Version** Broken: blender-2.78.0-git20170509.717d85fb1ca-x86_64 Worked: 2.78c official Blender cannot import the numpy module without error. Specific error is "ImportError: cannot import name 'multiarray'" 1. Open blender 2. Switch to python console 3. Type "import numpy" ![Screen Shot 2017-05-09 at 12.16.29 PM.jpg](https://archive.blender.org/developer/F593443/Screen_Shot_2017-05-09_at_12.16.29_PM.jpg)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @ToddMcIntosh

Added subscriber: @ToddMcIntosh

Added subscriber: @FloridaJo

Added subscriber: @FloridaJo

Same here.
OSX 10.12.4

Same here. OSX 10.12.4
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Added subscriber: @SebastianWitt

Added subscriber: @SebastianWitt
Member

I can't reproduce this on OSX 10.12.5.
It works for me here.

I can't reproduce this on OSX 10.12.5. It works for me here.

Can be seen happening here:
https://youtu.be/hfiTtx_zrSc

Can be seen happening here: https://youtu.be/hfiTtx_zrSc
Member

Added subscribers: @brecht, @LazyDodo

Added subscribers: @brecht, @LazyDodo
Member

@brecht, looks like you updated python to 3.5.3 but didn't rebuild numpy , mind taking a quick peek here?

@brecht, looks like you updated python to 3.5.3 but didn't rebuild numpy , mind taking a quick peek here?

I only updated the darwin 10.9 libraries for the 2.80 builds, and this bug report is about 2.78 with Python version 3.5.2 in the screenshot. So it should not have caused this issue.

However, I do get Python errors like that in the 2.80 buildbot build, a different error in the 2.78 buildbot build, and no errors in my own local builds for either version. I think there is some issue with the buildbot using old or mixed versions of Python libs, probably missing a proper CMake update when switching branches and flags somewhere.

I only updated the darwin 10.9 libraries for the 2.80 builds, and this bug report is about 2.78 with Python version 3.5.2 in the screenshot. So it should not have caused this issue. However, I do get Python errors like that in the 2.80 buildbot build, a different error in the 2.78 buildbot build, and no errors in my own local builds for either version. I think there is some issue with the buildbot using old or mixed versions of Python libs, probably missing a proper CMake update when switching branches and flags somewhere.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Brecht Van Lommel self-assigned this 2017-05-25 03:54:29 +02:00

Should be fixed now.

Should be fixed now.

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'

It's happening again. 06-02 build and then also today's build.

import numpy
Traceback (most recent call last):
File "<blender_console>", line 1, in
ImportError: No module named 'numpy'

It's happening again. 06-02 build and then also today's build. import numpy Traceback (most recent call last): File "<blender_console>", line 1, in <module> ImportError: No module named 'numpy'

Added subscriber: @MartijnBerger

Added subscriber: @MartijnBerger

@MartijnBerger , numpy is missing from the python_x86_64.zip committed in {rBL61889}.

@MartijnBerger , numpy is missing from the python_x86_64.zip committed in {rBL61889}.
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

@brecht You are right, is fixed now

@brecht You are right, is fixed now

@ Martijn Berger (juicyfruit) Hi Martijn, how long does a fix take to propagate through the system? I ask because Jun 11 OSX build still has that problem.

@ Martijn Berger (juicyfruit) Hi Martijn, how long does a fix take to propagate through the system? I ask because Jun 11 OSX build still has that problem.

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'

Still not fixed.

Still not fixed.

And, still not fixed. Can't try out Automation nodes until it is fixed.

1.png

And, still not fixed. Can't try out Automation nodes until it is fixed. ![1.png](https://archive.blender.org/developer/F641252/1.png)

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

The directory structure was wrong, should be really fixed now with {rBL61900}.

# wrong
lib/python3.5/site-packages/numpy-1.11.2-py3.5-macosx-10.6-intel.egg/numpy
# fixed
lib/python3.5/site-packages/numpy

I verified the latest build from buildbot works now.

The directory structure was wrong, should be really fixed now with {rBL61900}. ``` # wrong lib/python3.5/site-packages/numpy-1.11.2-py3.5-macosx-10.6-intel.egg/numpy # fixed lib/python3.5/site-packages/numpy ``` I verified the latest build from buildbot works now.

Yes! Thank you.

Yes! Thank you.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#51446
No description provided.