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

Unable to install from source on Arch Linux #408

Closed
shirsakm opened this issue Oct 10, 2024 · 7 comments
Closed

Unable to install from source on Arch Linux #408

shirsakm opened this issue Oct 10, 2024 · 7 comments
Assignees
Labels
bug Something isn't working cross-platform-support Related to cross-platform support (Linux, Mac, etc.) dependencies Related to other python pypi packages used

Comments

@shirsakm
Copy link
Contributor

Bug

Currently unable to install the program from source with pip, the first command,

$ pip install tkextrafont scikit-build

is unable to install the tkextrafont module, as far as I can tell from the error log.

I believe this is because it requires scikit-build to be installed, which is being installed latter, I assumed just installing it first would fix this issue.

$ pip install scikit-build
$ pip install tkextrafont

This still results in an error, and I believe it is an incompatibility between poetry and pip. Log.

Despite being marked as Windows only, I tried the poetry method. Poetry was installed successfully, and poetry install ran without errors. However when trying to run biscuit, I got import errors.

The only option left is to install the pre-built build and attempt to run it, however this will make it impossible to contribute. I will update this issue with if the build runs or not.

System Information

  • OS: EndeavourOS X86_64
  • Kernel: Linux 6.11.2-arch1-1
  • Python Version: 3.12.6
@shirsakm shirsakm added the bug Something isn't working label Oct 10, 2024
@shirsakm
Copy link
Contributor Author

The build did not run. Errors.

The module installed properly, but also threw errors. Errors.

@shirsakm
Copy link
Contributor Author

I needed to install the Arch package, tk using,

$ sudo pacman -S tk

This fixed the Tkinter issue, but now I get a new error.

@tomlin7
Copy link
Owner

tomlin7 commented Oct 10, 2024

@shirsakm sorry for the trouble faced. tkextrafont lacks good support for some linux distros.
Similar issues regarding this are still open #108 #164 (also #86 related).

I look forward to TkinterEP/python-tkextrafont#12 which is passing for linux as well.
@rdbende can you please have a look at these error messages

@tomlin7
Copy link
Owner

tomlin7 commented Oct 10, 2024

@shirsakm make sure you have installed all the prerequisites mentioned in the tkextrafont docs

 sudo apt install python3-dev tcl-dev tk-dev \
   fontconfig libfontconfig1 libfontconfig1-dev \
   cmake cmake-data extra-cmake-modules build-essential
 python -m pip install scikit-build

@tomlin7 tomlin7 added dependencies Related to other python pypi packages used cross-platform-support Related to cross-platform support (Linux, Mac, etc.) labels Oct 11, 2024
@shirsakm
Copy link
Contributor Author

Hi, this worked, however I would like to make a PR to the docs to add documentation for Arch Linux based systems.
Also, I needed to run an extra command after poetry install.

$ pip install tkextrafont

Not sure why, but I suppose that should be added to the docs.

@tomlin7
Copy link
Owner

tomlin7 commented Oct 24, 2024

@shirsakm There were errors when tkextrafont was added to poetry dependencies section for linux, hence its windows only here. Can you try to reproduce that error in arch by removing the windows only condition from pyproject.toml?

If this is still failing, then yeah definitely this should be in docs, https://github.com/tomlin7/biscuit/blob/main/docs/getting-started/installation.md

@shirsakm
Copy link
Contributor Author

There were errors when tkextrafont was added to poetry dependencies section for linux

Yep, that does seem to be the case. I ran into some errors about poetry being unable to find a suitable package. However, as I mentioned installing the module via pip works. It did not run without it, I believe it should be added. Though, I would certainly like to know if this is reproducible for anyone else on Arch Linux, or any other Linux distro.

@shirsakm shirsakm changed the title Unable to install from source Unable to install from source on Arch Linux Oct 24, 2024
@tomlin7 tomlin7 closed this as completed Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cross-platform-support Related to cross-platform support (Linux, Mac, etc.) dependencies Related to other python pypi packages used
Projects
None yet
Development

No branches or pull requests

2 participants