سؤال

I've been trying to install Paste 1.7.5.1-1 from Enthought Canopy's Package Manager, however I get an error: it looks like Canopy can't resolve python-openid:

enter image description here

Thinking that python-openid was missing completely from my system (it is not listed in the "Available Packages' list in Canopy either), I followed these directions and installed python-openid using pip. However, the package seems to be there already and further attempts to install Paste keep failing.

enter image description here

Some help on this issue would be greatly appreciated.

هل كانت مفيدة؟

المحلول

(Enthought Support here) The Paste package is not part of the official Canopy repo, but rather the unsupported "Community", and so some dependency issues may arise when installing from these packages. Using the following steps, I was able to get the Paste package installed and even ran a few tests:

  • From the Canopy Command Prompt, run pip install python_openid (note there is no -U and the module uses an underscore, not a dash as in your screenshot from StackOverflow).
  • After it installs, use the command line utility enpkg to force an install of paste without resolving dependencies. From the Canopy Command Prompt: enpkg --no-deps Paste

Then you can test it out...

Within IPython (either from the command line or Canopy Python pane), try this simple program found in their docs:

def app(environ, start_response):
    start_response('200 OK', [('content-type', 'text/html')])
    return ['Hello world!']

if __name__ == '__main__':
    from paste import httpserver
    httpserver.serve(app, host='127.0.0.1', port='8080')

Hope this helps.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top