Code Monkey home page Code Monkey logo

Comments (12)

ATATC avatar ATATC commented on August 19, 2024

Dearpygui fails to install through pip on Ubuntu for Raspberry Pi.

python3.11 -m pip install dearpygui
ERROR: Could not find a version that satisfies the requirement dearpygui
ERROR: No matching distribution found for dearpygui

According to Dearpygui repo info, Raspberry Pi rendering API OpenGL ES only supports versions up to v1.1 while other platforms support v1.10.1. Although we're using Ubuntu 22 LTS instead of Raspberry Pi OS, we do not know the rendering API of the system. Therefore, we now have two approaches to solve this issue.

Install from wheels

We can try wheels v1.1 (OpenGL ES) for Raspberry Pi 4 and v1.10.1 (OpenGL 3) for Linux to manually install.

Migrate to another GUI framework

If the approach above does not work, we will have to migrate our project to another GUI framework such as PyQT. So far its impact has not been that large. We only have to alter modules leads_dashboard and leads_vec.

from leads.

ATATC avatar ATATC commented on August 19, 2024

Tkinter would probably be the choice.

from leads.

ATATC avatar ATATC commented on August 19, 2024

We're migrating this project to Tkinter.

from leads.

ATATC avatar ATATC commented on August 19, 2024

COMMIT cbcc4c4
Migration completed for the dashboard. The layout needs further follow-up.

from leads.

ATATC avatar ATATC commented on August 19, 2024

Tkinter sucks too badly in layouts. We're now migrating to PySimpleGUI. It's necessary to validate its capability on Raspberry Pi.

from leads.

ATATC avatar ATATC commented on August 19, 2024

COMMIT 6092c1a
Dashboard has now migrated to PySimpleGUI.

from leads.

ATATC avatar ATATC commented on August 19, 2024
_tkinter.TclError: bad attribute "-toolwindow": must be -alpha, -topmost, -zoommed, -fullscreen, or -type

This error only appears on Raspberry Pi. I will try to find out what makes it differ from Windows. If it is not solvable, I'm going to migrate the whole project to local-web-based.

from leads.

ATATC avatar ATATC commented on August 19, 2024

This issue has been posted in PySimpleGUI official repository: PySimpleGUI/PySimpleGUI#6632.
Also mentioned in #17.

from leads.

ATATC avatar ATATC commented on August 19, 2024

To be honest I'm having enough with these local GUI libraries. I'm starting to try vanilla JS.

from leads.

ATATC avatar ATATC commented on August 19, 2024

We are very likely to migrate to FastAPI (backend) + Vanilla JS (frontend).

from leads.

ATATC avatar ATATC commented on August 19, 2024

Current Plan

Onboard dashboard: PySimpleGUI
Remote server: FastAPI (backend) + React (frontend)

I'll later include the reason behind this decision.

from leads.

ATATC avatar ATATC commented on August 19, 2024

This issue is now closed since the program (VERSION 0.1.4 COMMIT 4505f90) can now run on Raspberry Pi. Any further corresponding problems will be posted as separate issues.

from leads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.