Skip to content

Instantly share code, notes, and snippets.

@jimklo
Created January 12, 2012 00:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimklo/1597661 to your computer and use it in GitHub Desktop.
Save jimklo/1597661 to your computer and use it in GitHub Desktop.
PyF install issues
I'm new to PyF... it looks like great framework to build workflow applications.
I'm running into an issue which I'm not quite sure how to solve before I give up on PyF...
Following the install guide, I've setup a virtualenv, and activated it... then:
easy_install -UZ pyf[fullstack]
After some time easy_install seems to fail:
Installed /home/lreg/env/pyf/lib/python2.7/site-packages/WebHelpers-1.3-py2.7.egg
Searching for Routes>=1.12.3
Reading http://pypi.python.org/simple/Routes/
Reading http://routes.groovie.org/
Best match: Routes 1.12.3
Downloading http://www.turbogears.org/2.1/downloads/current/Routes-1.12.3.tar.gz
Processing Routes-1.12.3.tar.gz
Running Routes-1.12.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-eC4rLQ/Routes-1.12.3/egg-dist-tmp-l80wa2
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.hgignore' found anywhere in distribution
warning: no previously-included files matching '*.hgtags' found anywhere in distribution
Adding Routes 1.12.3 to easy-install.pth file
Installed /home/lreg/env/pyf/lib/python2.7/site-packages/Routes-1.12.3-py2.7.egg
error: Installed distribution python-dateutil 2.0 conflicts with requirement python-dateutil>=1.5,<2.0dev
I've tried removing python-dateutil 2.0 (which seems to be a python 3 module, not python 2.7.2 which I'm running, and installed 1.5)... fine...
I restart easy_install again... to hit yet another dependency problem:
Processing dependencies for pyf[fullstack]
Searching for WebFlash>=0.1a8
Reading http://pypi.python.org/simple/WebFlash/
Reading http://python-rum.org/wiki/WebFlash
Best match: WebFlash 0.1a9
Downloading http://pypi.python.org/packages/source/W/WebFlash/WebFlash-0.1a9.tar.gz#md5=faf2a563097baa7b24cf724565d5b1d0
Processing WebFlash-0.1a9.tar.gz
Running WebFlash-0.1a9/setup.py -q bdist_egg --dist-dir /tmp/easy_install-cHDApt/WebFlash-0.1a9/egg-dist-tmp-qLQa9y
Adding WebFlash 0.1a9 to easy-install.pth file
Installed /home/lreg/env/pyf/lib/python2.7/site-packages/WebFlash-0.1a9-py2.7.egg
error: Installed distribution WebOb 1.2b2 conflicts with requirement WebOb==1.0.8
So I remove WebOb 1.2.b2 and install 1.0.8, restart easy_install again... yet this fails again...
Processing dependencies for pyf[fullstack]
Searching for WebOb>=1.1.1
Reading http://pypi.python.org/simple/WebOb/
Reading http://pythonpaste.org/webob/
Reading http://webob.org/
Best match: WebOb 1.2b2
Downloading http://pypi.python.org/packages/source/W/WebOb/WebOb-1.2b2.zip#md5=1b6795baf23f6c1553186a0a8b1a2621
Processing WebOb-1.2b2.zip
Running WebOb-1.2b2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-7SR96O/WebOb-1.2b2/egg-dist-tmp-3SnmKO
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.pyo'
Adding WebOb 1.2b2 to easy-install.pth file
Installed /home/lreg/env/pyf/lib/python2.7/site-packages/WebOb-1.2b2-py2.7.egg
error: Installed distribution WebOb 1.2b2 conflicts with requirement WebOb==1.0.8
So pyf[fullstack] has a conflict with one of it's dependency's dependencies...
What is suggested to get around this so I can just try out PyF?
@indolering
Copy link

I too am stuck in this circular dependency...

@jimklo
Copy link
Author

jimklo commented Jan 14, 2012

I figured out how to get around this:

Here a re the steps I followed:

Install sqllite then:

virtualenv --no-site-packages ./env/pyf
source ./env/pyf/bin/activate
pip install pylons==1.0
pip install python-dateutil==1.5
pip install WebOb==1.0.8
easy_install -Z pyf.services
easy_install -Z pyf.components.producers.webextractor
easy_install -Z pyf.components.consumers.csvwriter
easy_install -Z pyf.components.consum ers.xmlwriter

Then followed the rest of the instructions here:

http://pyfproject.org/en/getting-started/configuring

@indolering
Copy link

Hmmm, I'm getting errors regarding the db:
(pyfenv)[indolering@web310 pyfenv]$ paster serve pyfservices.ini
Traceback (most recent call last):
File "/home/indolering/webapps/forge/pyfenv/bin/paster", line 8, in
load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
...
File "/home/indolering/webapps/forge/pyfenv/lib/python2.6/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/engine/init.py", line 280, in engine_from_config
url = opts.pop('url')
KeyError: 'url'

@ismaild
Copy link

ismaild commented Sep 19, 2012

Another dependency now is mercurial, so run pip install mercurial=2.2.3 before running the install

@giupo
Copy link

giupo commented Dec 21, 2012

@jimklo: I would suggest WebOb==1.1.1 with the last pyf.services

Thank you very much for the precious infos ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment