I upgraded a working Pylons 0.9.7 app to the new semantics from Pylons 1.0 (via pip install pylons==dev).When I try to run the appserver, I get a traceback:
That's what I hate about Paste and entry points and pkg_resources.
These errors occur and can be impossible to trace because the
traceback doesn't tell you who's asking for the package. You can try
the Python debugger but the error is probably way down in a
sys.path/entry point loop somewhere. I don't remember if the debugger
will actually break there or sail through it.
The most likely place is in your application's setup.py or its
egg-info. Reinstalling the application (which regenerates its
egg-info) may fix it. You may have to manually delete the
application's .egg-link file and its entry in easy_install.pth before
reinstalling; sometimes that clears it up. And ditto for Pylons'
egg-link and easy_install.pth entry.
Also look for any script in your bin directory that has an absolute
path to a certain Python interpreter or requires that Pylons version.
My colleague Chris always says, "Why doesn't Pylons/Paste just try to
import something before requiring it? That would avoid a lot of
problems if the import works but the metadata situation is slightly
off."
--
Mike Orr <slugg...@gmail.com>
That's what I hate about Paste and entry points and pkg_resources.