Hi,

it seems that to run a pylons app the myapp.egg_info meta data folder must
be present... when I checkout a new instance of the application, and try to
run it (thus, without the myapp.egg_info folder present, as it is not under
svn) and I try to run it I get the following exception: 

> paster serve --reload development.ini
  ...
  File
"/usr/local/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py",
line 581, in find_egg_entry_point
    pkg_resources.require(self.spec)
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 626, in require
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 524, in resolve
pkg_resources.DistributionNotFound: myapp


The above error occurs on both WinXP and on suse10.
So, I try to regenerate the meta data folder, as below... on WinXP, it goes
OK: 


C:\myapp>python setup.py egg_info
running egg_info
creating myapp.egg-info
writing requirements to myapp.egg-info\requires.txt
writing myapp.egg-info\PKG-INFO
writing top-level names to myapp.egg-info\top_level.txt
writing dependency_links to myapp.egg-info\dependency_links.txt
writing entry points to myapp.egg-info\entry_points.txt
writing paster_plugins to myapp.egg-info\paster_plugins.txt
writing manifest file 'myapp.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'myapp.egg-info\SOURCES.txt'
C:\myapp>


However, on the suse10 machine I get this error: 


> python setup.py egg_info
running egg_info
unrecognized .svn/entries format; skipping .
writing requirements to myapp.egg-info/requires.txt
writing myapp.egg-info/PKG-INFO
writing top-level names to myapp.egg-info/top_level.txt
writing dependency_links to myapp.egg-info/dependency_links.txt
writing entry points to myapp.egg-info/entry_points.txt
writing paster_plugins to myapp.egg-info/paster_plugins.txt
Traceback (most recent call last):
  File "setup.py", line 39, in <module>
    """,
  File "/usr/local/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.5/distutils/dist.py", line 974, in
run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.5/distutils/dist.py", line 994, in
run_command
    cmd_obj.run()
  File "build/bdist.linux-i686/egg/setuptools/command/egg_info.py", line
171, in run
  File "build/bdist.linux-i686/egg/setuptools/command/egg_info.py", line
252, in find_sources
  File "build/bdist.linux-i686/egg/setuptools/command/egg_info.py", line
306, in run
  File "build/bdist.linux-i686/egg/setuptools/command/egg_info.py", line
333, in add_defaults
  File "build/bdist.linux-i686/egg/setuptools/command/sdist.py", line 45,
in walk_revctrl
  File "build/bdist.linux-i686/egg/setuptools/command/sdist.py", line 52,
in _default_revctrl
  File "build/bdist.linux-i686/egg/setuptools/command/sdist.py", line 98,
in entries_finder
NameError: global name 'log' is not defined


(But if I then try to run the app again, it does run, and all seems ok...)
Any ideas where this last error might be coming from? 
And, must the egg_info folder be present for the pylons app to run?

I have updated to latest 0.9.7, thus the bottom of my easy-install.pth
reads:
./pylons-0.9.7rc1-py2.5.egg
./beaker-1.0.1-py2.5.egg
./webhelpers-0.6.1-py2.5.egg

Oh, with the updated 0.9.7 I now get a webhelpers.rails
DeprecationWarning... i am using current_url (from from
webhelpers.rails.urls) in this app -- i was looking for the new location of
this, but do not find it... where is it?

mario


--~--~---------~--~----~------------~-------~--~----~
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