On Tue, Mar 25, 2008 at 6:08 AM, Jett <[EMAIL PROTECTED]> wrote:

>  I'm new to Pylons and recently installed it on both Windows and Linux
>  (Ubuntu Feisty, Python 2.5) using easy_setup. No problems running it
>  on Windows. On Linux however I get the following error when I run the
>  server. First line appears to indicate only a warning. I can see the
>  default page generated when the application was created but I am
>  wondering why I see this message in Linux but not in Windows.
>
>  [EMAIL PROTECTED]:~/py/timesheet$ paster serve --reload development.ini
>  Starting subprocess with file monitor
>  /usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/
>  configuration.py:17: RuntimeWarning: Unable to load template engine
>  entry point: 'json = turbojson.jsonsupport:JsonSupport':

> Traceback
>  (most recent call last):
>   File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/
>  pylons/templating.py", line 291, in <module>
>     Engine = entry_point.load()
>   File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
>  pkg_resources.py", line 1912, in load
>     entry = __import__(self.module_name, globals(),globals(),
>  ['__name__'])
>   File "/usr/lib/python2.5/site-packages/TurboJson-1.1.2-py2.5.egg/
>  turbojson/jsonsupport.py", line 3, in <module>
>     from turbojson import jsonify
...
>   File "/var/lib/python-support/python2.5/dispatch/predicates.py",
>  line 595, in Compare
>     right = ICriterion(Pointer(right.value))
>   File "/var/lib/python-support/python2.5/dispatch/strategy.py", line
>  541, in __new__
>     self = int.__new__(cls,id(ob))
>  OverflowError: long int too large to convert to int
>
>   import pylons.templating
>  Starting server in PID 6200.
>  serving on 0.0.0.0:5000 view at http://127.0.0.1:5000

I didn't know there even *was* a TurboJson.  It's certainly not
necessary for Pylons.  Pylons uses simplejson >= 1.7.1.

I suspect TurboJson or one of the other packages on your system is
either misinstalled, out of date in relation to another package, or is
broadcasting bogus entry points.  If you don't need TurboJson, I'd
delete it and see if both errors go away.  The second error is
definitely in TurboJson, which suggests the first error may have
caused the second.

TurboJson may be a TurboGears dependency; I don't know.  If you have
other Python applications on the system that may be using TurboJson,
create separate virtualenvs for them and your Pylons app(s), delete
TurboJson from site-packages, and install it only in the virtualenv
that needs it.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to