-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Plugin is not importable #38
Comments
Thanks for reporting this. I just submitted PR #39, which I believe should address this problem. Perhaps you could clone that PR's branch, create a new virtual environment, run |
Thanks for your PR #39, Justin. I merged it and released version 2.1.4 of the plugin. I am hereby closing this issue. The other plugins that I maintain (avatar, graphviz, and markdown-include) are affected by the same problem. I will fix them ASAP. |
You might want to check whether the `RELEASE.md` file is included in any of the build assets, and if so, add an entry to ensure it is not included.
|
I checked the new sdist tarballs at PyPI for the plugins avatar, graphviz, linkclass, and markdown-include. None of them contains a May I ask why you think that there could be a |
Hi @justinmayer and @rlaboiss , |
Because I once saw one in the tarball that appears in the GitHub releases list.
|
Oh, I see. Since the tarballs are generated by autopub, I suppose that this tool is doing its job correctly. |
You are welcome. I apologize for any inconvenience that the previous broken version has caused to you. |
Hi all,
I am on Ubuntu 22.04 with Python 3.10 and Pip 24.0 and I have installed pelican-linkclass (
python3 -m pip install --user pelican-linkclass
) but it is not importable.In an interpreter, this causes an ImportError:
whereas it works for the plugin
search
for example.The distribution info of the plugin is sitting in
~/.local/lib/python3.10/site-packages
with namepelican_linkclass-2.1.3.dist-info
alongside other namespace plugins such assearch
andsimilar-posts
which can be imported normally.However, contrary to these other plugins, it is not present in the subdirectory
pelican/plugins/
. Accordingly, when runningpelican -D
, we see that it does not discover it in the namespace plugins.What's causing this? One difference I see is that packaging was done with
pdm
for linkclass, whereas other plugins were packaged withpoetry
.At the moment I have to clone this repository and manually copy the proper folder into the pelican installation to make it work.
Thanks a lot for your help.
The text was updated successfully, but these errors were encountered: