• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    Pythoner: problem with numpy 2.5.2 on mac M1 with/-out Rosetta

    Troubleshooting and Bug Reports
    1
    1
    6
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zimt last edited by zimt

      dear forum members,

      i'm trying to run the pythoner examples from https://community.troikatronix...  (DX quick start) + "pythoner_examples_v0.4-release" from the add-ons page, and followed also the video on pythoner on youtube python mediapipe and every other tutorial that i could find.

      my pythoner works fine with the json and beautifulsoup4 libraries but as soon as numpy wants to be loaded i get the errors attached below.

      it seems that i have a problem with the arm / x86 libs for numpy that came with the "install-packages-into-virtual-environment.scpt" in the "Python_Support_Scripts" folder. i tried to install the VENV to the "virtual_env" folder of the project and also to the standard plugin folder + activating the path but with the same result. 

      i'm on a MBP M1 with osx 15.6.1 and isadora 4.5.1 - in Activity Monitor Isadora shows up as "Intel", so it's using Rosetta in x86-mode.

      --> update: i checked in Finder / Info that for the Universal Binary of Isadora 4.5.1 after a fresh installation the "Run with Rosetta" was checked. is there a reason to run it in Rosetta ? when running in ARM-mode numpy works BUT...

      A) in the "python_mediapipe_pose_detection_v10 v4.5.1.izz" i still get a red [!] sign on the pythoner and no tracking 
      (Monitor Windows says: >>   File "Module_Oo0FftFuw4.py", line 118, in python_init   >> AttributeError: module 'mediapipe' has no attribute 'solutions')

      and

      B) OpenNI Tracker does not work... is there a way to make numpy and openNI work in ARM mode? READING openNIpage i guess the answer is NO. --> is the Processing workaround (following your Tutorial) the best way then?

      is there a possibility to install Numpy as x86 version to the virtual_env folder?
      i'd prefer to have everything inside one software without Processing/Syphon...

      thanks!

      ============ A ====================

      ImportError: 

      IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

      Importing the numpy C-extensions failed. This error can happen for
      many reasons, often due to issues with your setup or how NumPy was
      installed.

      We have compiled some common reasons and troubleshooting tips at:

          https://numpy.org/devdocs/user...

      Please note and check the following:

        * The Python version is: Python 3.12 from "/Users/z/Documents/Isadora/Example Patches and Tutorials/pythoner_examples_v0.4-release/virtual_env/bin/python"
        * The NumPy version is: "2.5.2"

      and make sure that they are the versions you expect.

      Please carefully study the information and documentation linked above.
      This is unlikely to be a NumPy issue but will be caused by a bad install
      or environment on your machine.

      Original error was: dlopen(/Users/z/Documents/Isadora/Example Patches and Tutorials/pythoner_examples_v0.4-release/virtual_env/lib/python3.12/site-packages/numpy/_core/_multiarray_umath.cpython-312-darwin.so, 0x0002): tried: '/Users/z/Documents/Isadora/Example Patches and Tutorials/pythoner_examples_v0.4-release/virtual_env/lib/python3.12/site-packages/numpy/_core/_multiarray_umath.cpython-312-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/z/Documents/Isadora/Example Patches and Tutorials/pythoner_examples_v0.4-release/virtual_env/lib/python3.12/site-packages/numpy/_core/_multiarray_umath.cpython-312-darwin.so' (no such file), '/Users/z/Documents/Isadora/Example Patches and Tutorials/pythoner_examples_v0.4-release/virtual_env/lib/python3.12/site-packages/numpy/_core/_multiarray_umath.cpython-312-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

      ====== B ===================

      ImportError: dlopen(/Users/z/Documents/Isadora/Example Patches and Tutorials/pythoner_examples_v0.4-release/virtual_env/lib/python3.12/site-packages/PIL/_imaging.cpython-312-darwin.so, 0x0002): tried: '/Users/z/Documents/Isadora/Example Patches and Tutorials/pythoner_examples_v0.4-release/virtual_env/lib/python3.12/site-packages/PIL/_imaging.cpython-312-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/z/Documents/Isadora/Example Patches and Tutorials/pythoner_examples_v0.4-release/virtual_env/lib/python3.12/site-packages/PIL/_imaging.cpython-312-darwin.so' (no such file), '/Users/z/Documents/Isadora/Example Patches and Tutorials/pythoner_examples_v0.4-release/virtual_env/lib/python3.12/site-packages/PIL/_imaging.cpython-312-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) (Module_o__8XJymcD.py, line 1)

      =============================================================================

      1 Reply Last reply Reply Quote 0
      • First post
        Last post