Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOLVED] Missing dependencies for Linux #18

Closed
MF366-Coding opened this issue Jul 19, 2023 · 6 comments
Closed

[SOLVED] Missing dependencies for Linux #18

MF366-Coding opened this issue Jul 19, 2023 · 6 comments
Assignees
Labels
documentation Improvements or additions to documentation important Mark as an important issue. wontfix This will not be worked on

Comments

@MF366-Coding
Copy link
Owner

How it happened?

I was testing WriterClassic on Linux and I clicked About.

But I just got a blank window with nothing inside of it.

What is the problem?

The title already says it all: missing dependencies for Linux.

How to fix it?

You can easily fix it by installing those dependencies.

WriterClassic uses 2 modules that don't come with Linux by default. tkinter and PIL.

Those modules must be installed with the package manager of your Linux distro, not with pip.

Their packages' names are:

python3-tk
python3-pil
python3-pil.imagetk

python3-pil.imagetk is used to place WriterClassic's logo on the About window.

It is separated from python3-pil, which means you'll have to install both to acess both PIL and PIL's ImageTk. Don't forget to install tkinter too!

@MF366-Coding MF366-Coding added the documentation Improvements or additions to documentation label Jul 19, 2023
@MF366-Coding MF366-Coding self-assigned this Jul 19, 2023
Repository owner locked and limited conversation to collaborators Jul 19, 2023
@norbcodes
Copy link
Collaborator

Maybe difficult to implement, but maybe have the packages be installed when you run the Installation Wizard?

@MF366-Coding
Copy link
Owner Author

The Installation Wizard is an executable so it wouldn't run on Linux without an emulation service.

@norbcodes
Copy link
Collaborator

Oh yea I forgot this is a Linux issue lol

Maybe make the python file itself somehow download the packages?

@MF366-Coding
Copy link
Owner Author

MF366-Coding commented Jul 20, 2023

I am sure that would be possible by using sys.platform == "linux" and os.system().

The problem is: how can I know what is the pckage manager of the Linux Distro the user is using? There isn't a unique package manager for all distros.

But if it works, your idea would be amazing!

@norbcodes
Copy link
Collaborator

maybe look into this?

https://pypi.org/project/distro/

@MF366-Coding MF366-Coding changed the title Missing dependencies for Linux [SOLVED] Missing dependencies for Linux Jul 25, 2023
@MF366-Coding
Copy link
Owner Author

Just remembered this now but even if this was doable it would still need sudo permissions.

@MF366-Coding MF366-Coding added wontfix This will not be worked on important Mark as an important issue. labels Dec 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation important Mark as an important issue. wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants