noirbizarre / pelican-frontmark

A Pelican CommonMark/Front Matter reader
MIT License
8 stars 4 forks source link

Depcrecation Warning #9

Open acherrera opened 12 months ago

acherrera commented 12 months ago

Hello, I am getting this error when trying to run Pelican with Frontmark

Cannot load plugin `frontmark` 
Importing from `pelican.signals` is deprecated. Use `from pelican import signals` or `import pelican.plugins.signals` instead.                                                                 

frontmark version: 1.2.1 pelican version: 4.8.0

I see this PR looks to have fixed it: https://github.com/noirbizarre/pelican-frontmark/pull/2

However, when I go to PyPi and download the wheel file, that file is not updated with the most recent changes: https://pypi.org/project/pelican-frontmark/1.2.1/#files

This is also true when I look at the __init__.py file install after running pip install pelican-frontmark

Do those change still need to be deployed to PyPi?

acherrera commented 9 months ago

I was trying to install again, was having some issues and ended up finding my own issue! I worked through this a little bit more and found a work around. The work around is basically manually downloading the files and putting them in the project.

1.) Download repo 2.) Move ./pelican/plugins/ into the plugins directory in your project. 3.) Specify where the plugins are located in your config file using PLUGIN_PATHS = ["plugins"] 4.) Make sure frontmark is specified in the config as a plugin

That should work! Here is a reference for plugin configuration: https://docs.getpelican.com/en/latest/plugins.html