bcgov / ckanext-bcgov

BC Data Catalogue source code, main ckan extension
http://catalogue.data.gov.bc.ca
GNU Affero General Public License v3.0
24 stars 23 forks source link

extension paster cmd broken #272

Open ll911 opened 7 years ago

ll911 commented 7 years ago
paster --plugin=ckanext-bcgov edc_command --help
Traceback (most recent call last):
  File "/apps/ckan/dlv/bin/paster", line 11, in <module>
    sys.exit(run())
  File "/apps/ckan/dlv/lib/python2.7/site-packages/paste/script/command.py", line 101, in run
    command = commands[command_name].load()
  File "/apps/ckan/dlv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2291, in load
    return self.resolve()
  File "/apps/ckan/dlv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2297, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/apps/ckan/dlv/src/ckanext-bcgov/ckanext/bcgov/commands/edc_commands.py", line 28, in <module>
    class EdcCommand(CkanCommand):
  File "/apps/ckan/dlv/src/ckanext-bcgov/ckanext/bcgov/commands/edc_commands.py", line 46, in EdcCommand
    os.path.dirname(ckanext.bcgov.__file__),
AttributeError: 'module' object has no attribute '__file__'
jeff-at-h3 commented 6 years ago

@ll911 please have a look at this and let us know if it should be fixed after Mar 31, 2018

mdunhamwilkie commented 5 years ago

Not sure that the expected behaviour is. Putting this on hold for now.

ll911 commented 5 years ago

paster --plugin=ckanext-bcgov edc_command this is introduced by our extension not from ckan core