Error starting services

147 views
Skip to first unread message

Michael Bartz

unread,
Dec 4, 2011, 8:48:02 PM12/4/11
to PyF Framework Users
I followed the "Getting Started" instructions and got the following
error:


(pyfenv)bash-3.2# pyfservices-setup pfservices.ini
Traceback (most recent call last):
File "/Developer/Python/pyfenv/bin/pyfservices-setup", line 5, in
<module>
from pkg_resources import load_entry_point
File "/Developer/Python/pyfenv/lib/python2.6/site-packages/
setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 2607, in <module>
File "/Developer/Python/pyfenv/lib/python2.6/site-packages/
setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 569, in resolve
pkg_resources.VersionConflict: (python-dateutil 2.0 (/Developer/Python/
pyfenv/lib/python2.6/site-packages/python_dateutil-2.0-py2.6.egg),
Requirement.parse('python-dateutil>=1.5,<2.0dev'))


Any suggestions?

Mathieu Bridon

unread,
Dec 5, 2011, 4:25:47 AM12/5/11
to pyf-...@googlegroups.com

Read the error message? ;)

I have to admit it's not straight-forward though, so here comes the
explanation.

The last line of your traceback says:
Requirement.parse('python-dateutil>=1.5,<2.0dev'))

That means that PyF needs python-dateutil in a version greater than 1.5,
but lesser than 2.0.

The line just before in the traceback says:
pkg_resources.VersionConflict: (python-dateutil 2.0

Which means that you have installed version 2.0 of python-dateutil.

That's your problem, you need to install an older version of
python-dateutil. :)

Now the real question is: why did you get that too recent version? Did
you install it manually? Did an incorrect version got installed as part
of the setup?

Hope that helps


--
Mathieu


Michael Bartz

unread,
Dec 5, 2011, 3:25:04 PM12/5/11
to PyF Framework Users
Mathieu:

I was hoping for a little fairy dust :-).

I don't recall consciously installing the package. I remove it and
see what happens.

Michael Bartz

unread,
Dec 7, 2011, 2:33:15 PM12/7/11
to PyF Framework Users
I corrected the dateutil version mismatch, but now get this error:

(pyfenv)bash-3.2# paster serve pyfservices.ini
13:17:09,307 INFO [tgscheduler.scheduler] Starting the scheduler...
13:17:09,377 INFO [root] Scheduling tasks
13:17:09,381 INFO [root] Finished scheduling tasks
13:17:09,396 INFO [turbomail.control] TurboMail extension starting
up.
13:17:09,397 INFO [turbomail.manager] Immediate manager starting up.
13:17:09,397 INFO [turbomail.manager] Immediate manager ready.
Starting server in PID 7427.
serving on http://127.0.0.1:9090
Error - <type 'exceptions.DeprecationWarning'>: You passed
charset='iso-8859-1' to the Request constructor. As of WebOb 1.2, if
your application needs a non-UTF-8 request charset, please construct
the request without a charset or with a charset of 'None', then use
``req = req.decode(charset)``
URL: http://localhost:9090/
File '/Developer/Python/pyfenv/lib/python2.7/site-packages/
WebError-0.10.3-py2.7.egg/weberror/errormiddleware.py', line 162 in
__call__
app_iter = self.application(environ, sr_checker)
File '/Developer/Python/pyfenv/lib/python2.7/site-packages/
TurboGears2-2.1.3-py2.7.egg/tg/configuration.py', line 825 in remover
return app(environ, start_response)
File '/Developer/Python/pyfenv/lib/python2.7/site-packages/
repoze.tm2-1.0b2-py2.7.egg/repoze/tm/__init__.py', line 24 in __call__
result = self.application(environ, save_status_and_headers)
File '/Developer/Python/pyfenv/lib/python2.7/site-packages/
repoze.who-1.0.19-py2.7.egg/repoze/who/middleware.py', line 65 in
__call__
ids = self.identify(environ, classification)
File '/Developer/Python/pyfenv/lib/python2.7/site-packages/
repoze.who-1.0.19-py2.7.egg/repoze/who/middleware.py', line 162 in
identify
identity = plugin.identify(environ)
File '/Developer/Python/pyfenv/lib/python2.7/site-packages/
repoze.who_friendlyform-1.0.8-py2.7.egg/repoze/who/plugins/
friendlyform.py', line 122 in identify
request = Request(environ, charset=self.charset)
File '/Developer/Python/pyfenv/lib/python2.7/site-packages/WebOb-1.2b2-
py2.7.egg/webob/request.py', line 124 in __init__
"req.decode(charset)``" % charset
DeprecationWarning: You passed charset='iso-8859-1' to the Request
constructor. As of WebOb 1.2, if your application needs a non-UTF-8
request charset, please construct the request without a charset or
with a charset of 'None', then use ``req = req.decode(charset)``

Michael Bartz

unread,
Dec 7, 2011, 10:27:02 PM12/7/11
to PyF Framework Users
I found the answer to this in the forum.

You must manually uninstall WebOb 1.2 and manually install WebOb
1.1.1.


On Dec 7, 1:33 pm, Michael Bartz <michael.ba...@gmail.com> wrote:
> I corrected the dateutil version mismatch, but now get this error:
>
> (pyfenv)bash-3.2# paster serve pyfservices.ini
> 13:17:09,307 INFO  [tgscheduler.scheduler] Starting the scheduler...
> 13:17:09,377 INFO  [root] Scheduling tasks
> 13:17:09,381 INFO  [root] Finished scheduling tasks
> 13:17:09,396 INFO  [turbomail.control] TurboMail extension starting
> up.
> 13:17:09,397 INFO  [turbomail.manager] Immediate manager starting up.
> 13:17:09,397 INFO  [turbomail.manager] Immediate manager ready.
> Starting server in PID 7427.

> serving onhttp://127.0.0.1:9090

Reply all
Reply to author
Forward
0 new messages