v1.11.0 doesn't seem to work on Apple Silicon (M1)
Manwholikespie opened this issue ยท 6 comments
Version of Dear PyGui
Version: 1.11.0
Operating System: macOS 14.1.2
Running Python 3.11.8 in a fresh conda environment.
My Issue/Question
I tried running your example code, using the latest version 1.11.0 and got the below error. Downgrading to 1.10.0 worked just fine.
$ python run.py
Traceback (most recent call last):
File "/Users/robert/prog.nosync/baby/robobaby/run.py", line 1, in <module>
import dearpygui.dearpygui as dpg
File "/Users/robert/.miniconda3/envs/petts/lib/python3.11/site-packages/dearpygui/dearpygui.py", line 22, in <module>
import dearpygui._dearpygui as internal_dpg
ImportError: dlopen(/Users/robert/.miniconda3/envs/petts/lib/python3.11/site-packages/dearpygui/_dearpygui.so, 0x0002): tried: '/Users/robert/.miniconda3/envs/petts/lib/python3.11/site-packages/dearpygui/_dearpygui.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/robert/.miniconda3/envs/petts/lib/python3.11/site-packages/dearpygui/_dearpygui.so' (no such file), '/Users/robert/.miniconda3/envs/petts/lib/python3.11/site-packages/dearpygui/_dearpygui.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
To Reproduce
Steps to reproduce the behavior:
- Run your hello world code on an M1 mac with v1.11.0 of DearPyGui.
Expected behavior
Hello world window appears.
Screenshots/Video
See text above.
Standalone, minimal, complete and verifiable example
import dearpygui.dearpygui as dpg
def save_callback():
print("Save Clicked")
dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()
with dpg.window(label="Example Window"):
dpg.add_text("Hello world")
dpg.add_button(label="Save", callback=save_callback)
dpg.add_input_text(label="string")
dpg.add_slider_float(label="float")
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
Thanks!
We will get this addressed. This is the first time we tried using github's M1 runners and apparently it didn't work as expected. I pulled the M1 wheels for 1.11 for now.
I have the same issue. Basically the same environment.
I can still run DPG 1.10.0 in an older environment based on python 3.9.18.
No success setting up a new environment with python 3.9.x, 3.10.x or 3.11.x. Haven't tried python 3.12. I also tried specifying exactly dearpygui 1.10.0 but that does not work either. Have all the builds been broken by GitHub?
I think I found my mistake. Will be fixed in a few hours with 1.11.1
Please check version 1.11.1 and let me know if that works for you!
I just installed 1.11.1 on my M2 Mac and tried your demo program and it worked perfectly! Thank you!