-
Notifications
You must be signed in to change notification settings - Fork 846
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
AttributeError: module 'pelican_youtube' has no attribute 'register' #645
Comments
I found a possible fix, which is quite ugly in my opinion. I created a import sys
import os
PLUGINS_DIR = os.path.dirname(__file__)
sys.path.append(os.path.join(PLUGINS_DIR, 'pelican_youtube', 'pelican_youtube'))
from youtube import register |
@Nagasaki45 / @lincolnfrias: Would you consider submitting a PR to address the issue(s) discussed here? |
@justinmayer, do you have an idea that is less hacky than the one I suggested above? If not I will send a PR with the hack. |
The issue is that PLUGIN_PATHS = ['<path/to/pelican-plugins>/pelican_youtube']
PLUGINS = ['pelican_youtube'] or with installing it via PLUGINS = ['pelican_youtube'] I am facing a similar issue and therefore haven't pushed my plugin to the |
I'm unable to add the
pelican_youtube
plugin topelicanconf.py
. I'm getting the following traceback when trying to build the site:Steps to reproduce:
pelican-quickstart
.pelican-plugins
repo (recursively) to./pelican-plugins
.pelicanconf.py
:pelican content -o output -s pelicanconf.py
.The issue is caused by the
pelican_youtube
folder not being a valid python module (/package) withregister
attribute.The text was updated successfully, but these errors were encountered: