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

(v8.3.1) Nikola managed by pipx doesn't use textile dependency once injected #3800

Open
glasswings opened this issue Nov 27, 2024 · 1 comment
Labels

Comments

@glasswings
Copy link

Environment

Python Version:

pipx version 1.7.1
Python version 3.12.7

Nikola Version:

Nikola 8.3.1
fresh install using `pipx install Nikola[extras]

Operating System:

Debian Trixie (testing version, as of today, Nov 26)

Description:

Install the Textile plugin, configure, and create a post. Run nikola build. This produces the error

[2024-11-26 21:45:30] ERROR: Nikola: In order to build this site (compile Textile), you must install the "textile" Python package.
[2024-11-26 21:45:30] ERROR: Nikola: Exiting due to missing dependencies.

Looking in ~/.local/pipx/venvs/nikola/lib/python3.12/site-packages/ shows that textile is not installed.
Textile is very installed on the system, both globally (apt install python3-textile) and in a pipx-managed venv (pipx install textile).

I can understand Nikola only looking in its own environment, but this is probably confusing to beginners.

Next I run pipx inject Nikola textile. This installs textile in site-packages/ of the nikola venv. However Nikola still generates the same error.

@glasswings glasswings added the bug label Nov 27, 2024
@glasswings
Copy link
Author

After some print debugging... It looks like the plugin named "textile" ends up importing itself. Maybe the plugin should never have been named "textile" because it conflicts with the library also named textile.

I renamed the plugin to textilecomp and it seems to be working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant