Skip to content
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

pip uninstall or upgrade error #27

Closed
gamesbook opened this issue Feb 2, 2016 · 3 comments
Closed

pip uninstall or upgrade error #27

gamesbook opened this issue Feb 2, 2016 · 3 comments

Comments

@gamesbook
Copy link

When I try a pip install --upgrade or even pip uninstall I get the same type of errors as raised here - ckan/ckanext-pdfview#17

Traceback (most recent call last):
  File "/usr/lib/ckan/default/lib/python2.7/site.py", line 703, in <module>
    main()
  File "/usr/lib/ckan/default/lib/python2.7/site.py", line 683, in main
    paths_in_sys = addsitepackages(paths_in_sys)
  File "/usr/lib/ckan/default/lib/python2.7/site.py", line 282, in addsitepackages
    addsitedir(sitedir, known_paths)
  File "/usr/lib/ckan/default/lib/python2.7/site.py", line 204, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "/usr/lib/ckan/default/lib/python2.7/site.py", line 173, in addpackage
    exec(line)
  File "<string>", line 1, in <module>
KeyError: 'ckanext'

I tried to apply all the suggested changes and patches outlined in that issue (including the setup.py approach) to showcase, but without success.

@gamesbook
Copy link
Author

I installed "from scratch" with a clean copy of CKAN and had no problems - so possibly it was the faulty uninstall that triggered this?

@AnestisSelmani
Copy link

AnestisSelmani commented Jan 28, 2017

Hello,
I have installed a CKAN Instance and I have installed the ckanext-showcase module.
Although the installation didn't raise any errors and I was able to add a few showcases when some of my users that I set as showcase administrators started adding showcases the module has stopped working.

  1. The page {portal.url/showcase} can't be viewed unless I am connected as system administrator. When a user or even a showcase user tries to enter the page get's an internal server error.

  2. From that point on when I am trying to create a new system administrator from console I get the bellow message (This is why I am writing the comment to this issue)
    Traceback (most recent call last):
    File "/usr/lib/ckan/default/lib/python2.7/site.py", line 703, in
    main()
    File "/usr/lib/ckan/default/lib/python2.7/site.py", line 683, in main
    paths_in_sys = addsitepackages(paths_in_sys)
    File "/usr/lib/ckan/default/lib/python2.7/site.py", line 282, in addsitepackages
    addsitedir(sitedir, known_paths)
    File "/usr/lib/ckan/default/lib/python2.7/site.py", line 204, in addsitedir
    addpackage(sitedir, name, known_paths)
    File "/usr/lib/ckan/default/lib/python2.7/site.py", line 173, in addpackage
    exec(line)
    File "", line 1, in
    KeyError: 'ckanext'

  3. The server log is
    ckanext_default.error.log.txt

Because I don't have the ability to install the CKAN again now is there any suggestions on how I to fix this?

Any help would be greatly appreciated

@torfsen
Copy link
Contributor

torfsen commented Jan 30, 2017

This might be related to issues with the namespace packages that CKAN extensions are using. Please check if the following steps solve your problem:

  1. Install CKAN in a new virtualenv.
  2. When installing CKAN extensions, make sure that you

If this does not solve your problem then please try to find out which extension is causing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants