Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

AttributeError: 'module' object has no attribute 'register' #74

Closed
cmertin opened this issue Jul 3, 2017 · 4 comments
Closed

AttributeError: 'module' object has no attribute 'register' #74

cmertin opened this issue Jul 3, 2017 · 4 comments

Comments

@cmertin
Copy link

cmertin commented Jul 3, 2017

Can not compile. Based on this issue with org_pandoc_reader, I believe it's a problem with the newer versions of pelican. I get the following error when attempting to compile

Traceback (most recent call last):                                                                                        
    File "/usr/bin/pelican", line 9, in <module>                                                                              
        load_entry_point('pelican==3.6.3', 'console_scripts', 'pelican')()                                                    
    File "/usr/lib/python2.7/dist-packages/pelican/__init__.py", line 386, in main                                            
        pelican, settings = get_instance(args)                                                                                
    File "/usr/lib/python2.7/dist-packages/pelican/__init__.py", line 380, in get_instance                                    
        return cls(settings), settings                                                                                        
    File "/usr/lib/python2.7/dist-packages/pelican/__init__.py", line 57, in __init__                                         
        self.init_plugins()                                                                                                   
    File "/usr/lib/python2.7/dist-packages/pelican/__init__.py", line 84, in init_plugins                                     
        plugin.register()                                                                                                   
AttributeError: 'module' object has no attribute 'register'
@leblancfg
Copy link

Same issue here.

@brianedelman
Copy link

+1

@leblancfg
Copy link

Fixed this locally, I was calling the plugin naively with:

PLUGIN_PATHS = ['./plugins']
PLUGINS = ['ipynb']

Should have instead have been done with

PLUGIN_PATHS = ['./plugins']
PLUGINS = ['ipynb.markup']

Clarified README.md to reflect this, see pull request #76 above.

@danielfrg
Copy link
Owner

Fixed on the README now. Thanks!

Kristinita pushed a commit to Kristinita/SashaPelicanDebugging that referenced this issue Feb 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants