RuntimeError: Could not parse python long as longdouble - numpy #97332

Closed
opened 2022-04-14 18:49:57 +02:00 by Yusuf · 19 comments

System Information
Operating system: MacOs Montery
Graphics card:

Blender Version
Broken: Version 3.1.2 (3.1.2 2022-04-01)
Worked: (optional)

Detecting trying to export to glTF, but this is a general issue with the built-in Python:

PYTHON INTERACTIVE CONSOLE 3.10.2 (main, Jan 26 2022, 15:52:27) [Clang 11.0.0 (clang-1100.0.33.8)]

Builtin Modules:       bpy, bpy.data, bpy.ops, bpy.props, bpy.types, bpy.context, bpy.utils, bgl, blf, mathutils
Convenience Imports:   from mathutils import *; from math import *
Convenience Variables: C = bpy.context, D = bpy.data

>>> import numpy as np

Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
  File "/Applications/Blender.app/Contents/Resources/3.1/python/lib/python3.10/site-packages/numpy/__init__.py", line 229, in <module>
    core.getlimits._register_known_types()
  File "/Applications/Blender.app/Contents/Resources/3.1/python/lib/python3.10/site-packages/numpy/core/getlimits.py", line 221, in _register_known_types
    epsneg_f128 = exp2(ld(-113))
RuntimeError: Could not parse python long as longdouble: -113 (Invalid argument)

Screenshot 2022-04-14 at 16.27.46.png

**System Information** Operating system: MacOs Montery Graphics card: **Blender Version** Broken: Version 3.1.2 (3.1.2 2022-04-01) Worked: (optional) Detecting trying to export to glTF, but this is a general issue with the built-in Python: ``` PYTHON INTERACTIVE CONSOLE 3.10.2 (main, Jan 26 2022, 15:52:27) [Clang 11.0.0 (clang-1100.0.33.8)] Builtin Modules: bpy, bpy.data, bpy.ops, bpy.props, bpy.types, bpy.context, bpy.utils, bgl, blf, mathutils Convenience Imports: from mathutils import *; from math import * Convenience Variables: C = bpy.context, D = bpy.data >>> import numpy as np Traceback (most recent call last): File "<blender_console>", line 1, in <module> File "/Applications/Blender.app/Contents/Resources/3.1/python/lib/python3.10/site-packages/numpy/__init__.py", line 229, in <module> core.getlimits._register_known_types() File "/Applications/Blender.app/Contents/Resources/3.1/python/lib/python3.10/site-packages/numpy/core/getlimits.py", line 221, in _register_known_types epsneg_f128 = exp2(ld(-113)) RuntimeError: Could not parse python long as longdouble: -113 (Invalid argument) ``` ![Screenshot 2022-04-14 at 16.27.46.png](https://archive.blender.org/developer/F13001701/Screenshot_2022-04-14_at_16.27.46.png)
Author

Added subscriber: @yusufk

Added subscriber: @yusufk
Julien Duroure changed title from Export to glTF - RuntimeError: Could not parse python long as longdouble - numpy to RuntimeError: Could not parse python long as longdouble - numpy 2022-04-14 19:06:45 +02:00
Member

Added subscriber: @JulienDuroure

Added subscriber: @JulienDuroure
Member

I updated the description and tags, to be sure this will be handle by Blender dev, as this is not e glTF exporter issue (error occurs at numpy import)

I updated the description and tags, to be sure this will be handle by Blender dev, as this is not e glTF exporter issue (error occurs at numpy import)

Added subscriber: @iss

Added subscriber: @iss

Can not reproduce on Windows. @JulienDuroure what OS did you test with?

Can not reproduce on Windows. @JulienDuroure what OS did you test with?
Member

I can't reproduce on Linux neither
Maybe linked to MacOS?

I can't reproduce on Linux neither Maybe linked to MacOS?

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Thanks for clarification. @mano-wii can you reproduce on Mac?

Thanks for clarification. @mano-wii can you reproduce on Mac?

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

No issues here.
I think I've seen this same problem before, but I didn't find the report.

@yusufk, can you provide the system-info.txt generated through {nav Help > Save System Info}?


System Information
Operating system: macOS-12.2-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Apple 4.1 Metal - 76.3

No issues here. I think I've seen this same problem before, but I didn't find the report. @yusufk, can you provide the `system-info.txt` generated through {nav Help > Save System Info}? --- **System Information** Operating system: `macOS-12.2-arm64-arm-64bit 64 Bits` Graphics card: `Apple M1 Apple 4.1 Metal - 76.3`
Author

Thanks, please find attached.

More info:

  • If I use the Python terminal from within Blender I get the import error.
  • If I run my default Python (3.9), I don't.
  • Also, if I run the built-in Blender Python interpreter from the shell, I don't get the import error.

system-info.txt

Thanks, please find attached. More info: - If I use the Python terminal from within Blender I get the import error. - If I run my default Python (3.9), I don't. - Also, if I run the built-in Blender Python interpreter from the shell, I don't get the import error. [system-info.txt](https://archive.blender.org/developer/F13002246/system-info.txt)
Author

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Author

Info provided above...

Info provided above...
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

I am guessing this is a locale issue. Do you happened to remember if you changed the locale of your system or something similar before this happened?

I am guessing this is a locale issue. Do you happened to remember if you changed the locale of your system or something similar before this happened?
Member

Just a poke regarding my inquiry above, otherwise we will have to archive this for now.

Just a poke regarding my inquiry above, otherwise we will have to archive this for now.
Author

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Yusuf closed this issue 2022-05-25 14:09:06 +02:00
Yusuf self-assigned this 2022-05-25 14:09:06 +02:00
Author

Hi,

The issue resolved without me doing anything. I did not change the locale at any point. I do develop on Python and have multiple versions installed on the Mac, but I don't think that should've had any impact.

Thanks,
Yusuf

Hi, The issue resolved without me doing anything. I did not change the locale at any point. I do develop on Python and have multiple versions installed on the Mac, but I don't think that should've had any impact. Thanks, Yusuf
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
5 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#97332
No description provided.