hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en
MIT License
13.03k stars 678 forks source link

ModuleNotFoundError: No module named 'dearpygui._dearpygui' on Raspberry Pi #1725

Open vec2pt opened 2 years ago

vec2pt commented 2 years ago

Version of Dear PyGui

Version: 1.5.0 Operating System: Linux version 5.15.32-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 Hardware: Raspberry Pi 4 Model B/2GB

My Issue/Question

After installing on Raspberry Pi 4 B I get an error:

Traceback (most recent call last):
  File "/home/pi/Desktop/New/test.py", line 1, in <module>
    import dearpygui.dearpygui as dpg
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/local/lib/python3.9/dist-packages/dearpygui-1.5.0-py3.9-linux-aarch64.egg/dearpygui/dearpygui.py", line 22, in <module>
    import dearpygui._dearpygui as internal_dpg
ModuleNotFoundError: No module named 'dearpygui._dearpygui'

Any ideas on how to fix it?

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()
dpg.destroy_context()
Mstpyt commented 2 years ago

What do you have for a output if you type:

pip show dearpygui

and

pip debug
vec2pt commented 2 years ago

I tried to build version 1.5.1 and I have a similar problem.

After pip show dearpygui:

Name: dearpygui
Version: 1.5.1
Summary: DearPyGui: A simple Python GUI Toolkit
Home-page: https://github.com/hoffstadt/DearPyGui
Author: Jonathan Hoffstadt and Preston Cothren
Author-email: jonathanhoffstadt@yahoo.com
License: MIT
Location: /usr/local/lib/python3.9/dist-packages/dearpygui-1.5.1-py3.9-linux-aarch64.egg
Requires: 
Required-by: 

After pip debug:

WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 22.0.4 from /home/pi/.local/lib/python3.9/site-packages/pip (python 3.9)
sys.version: 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110]
sys.executable: /usr/bin/python3
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: linux
sys.implementation:
  name: cpython
'cert' config value: global
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /home/pi/.local/lib/python3.9/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  CacheControl==0.12.10
  colorama==0.4.4
  distlib==0.3.3
  distro==1.6.0
  html5lib==1.1
  msgpack==1.0.3 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==21.3
  pep517==0.12.0
  platformdirs==2.4.1
  progress==1.6
  pyparsing==3.0.7
  requests==2.27.1
  certifi==2021.10.08
  chardet==4.0.0
  idna==3.3
  urllib3==1.26.8
  rich==11.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  pygments==2.11.2
  typing_extensions==4.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  resolvelib==0.8.1
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==1.0.3
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 369
  cp39-cp39-manylinux_2_31_aarch64
  cp39-cp39-manylinux_2_30_aarch64
  cp39-cp39-manylinux_2_29_aarch64
  cp39-cp39-manylinux_2_28_aarch64
  cp39-cp39-manylinux_2_27_aarch64
  cp39-cp39-manylinux_2_26_aarch64
  cp39-cp39-manylinux_2_25_aarch64
  cp39-cp39-manylinux_2_24_aarch64
  cp39-cp39-manylinux_2_23_aarch64
  cp39-cp39-manylinux_2_22_aarch64
  ...
  [First 10 tags shown. Pass --verbose to show all.]
shyney7 commented 1 year ago

Same issue here with Windows 10 64bit

pip show dearpygui output:

Name: dearpygui
Version: 1.9.0
Summary: DearPyGui: A simple Python GUI Toolkit
Home-page: https://github.com/hoffstadt/DearPyGui
Author: Jonathan Hoffstadt and Preston Cothren
Author-email: jonathanhoffstadt@yahoo.com
License: MIT
Location: C:\Users\olivei_m\.venv\simpleGUI\Lib\site-packages
Requires:
Required-by:

pip debug:

WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 23.1.1 from C:\Users\olivei_m\.venv\simpleGUI\Lib\site-packages\pip (python 3.11)
sys.version: 3.11.2 (tags/v3.11.2:878ead1, Feb  7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)]
sys.executable: C:\Users\olivei_m\.venv\simpleGUI\Scripts\python.exe
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: cp1252
sys.platform: win32
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): C:\Users\olivei_m\.venv\simpleGUI\Lib\site-packages\pip\_vendor\certifi\cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  CacheControl==0.12.11
  colorama==0.4.6
  distlib==0.3.6
  distro==1.8.0
  msgpack==1.0.5
  packaging==21.3
  platformdirs==3.2.0
  pyparsing==3.0.9
  pyproject-hooks==1.0.0
  requests==2.28.2
  certifi==2022.12.07
  chardet==5.1.0
  idna==3.4
  urllib3==1.26.15
  rich==13.3.3 (Unable to locate actual module version, using vendor.txt specified version)
  pygments==2.14.0
  typing_extensions==4.5.0 (Unable to locate actual module version, using vendor.txt specified version)
  resolvelib==1.0.1
  setuptools==65.6.3 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.2.2 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==2.0.1
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 39
  cp311-cp311-win_amd64
  cp311-abi3-win_amd64
  cp311-none-win_amd64
  cp310-abi3-win_amd64
  cp39-abi3-win_amd64
  cp38-abi3-win_amd64
  cp37-abi3-win_amd64
  cp36-abi3-win_amd64
  cp35-abi3-win_amd64
  cp34-abi3-win_amd64
  ...
  [First 10 tags shown. Pass --verbose to show all.]
Delay-n-days commented 1 month ago

This issue can be triggered if your filename of the python script you are trying to run is "dearpygui.py". If you rename it to something else, it should run fine.