This may not be a Windows-specific issue. I've just seen the same
error on a Macbook.
In my case, I believe it arises from one of the easy_installed
packages.
I have separate production and development virtualenv setups for a
recently-deployed project, one pair on my Macbook and t'other on the
Linux server. When returning to the production setup on the Macbook
and performing an easy_install, this is what I get:
(arcadia)chiba:arcadia httpd$ easy_install -U SQLAlchemy
Traceback (most recent call last):
File "/Users/httpd/WebDev/arcadia/bin/easy_install", line 8, in
<module>
load_entry_point('setuptools==0.7a1dev-r58661', 'console_scripts',
'easy_install')()
File "build/bdist.macosx-10.5-i386/egg/setuptools/command/
easy_install.py", line 1671, in main
File "build/bdist.macosx-10.5-i386/egg/setuptools/command/
easy_install.py", line 1659, in with_ei_usage
File "build/bdist.macosx-10.5-i386/egg/setuptools/command/
easy_install.py", line 1675, in <lambda>
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 993, in run_command
cmd_obj.ensure_finalized()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/cmd.py", line 117, in ensure_finalized
self.finalize_options()
File "build/bdist.macosx-10.5-i386/egg/setuptools/command/
easy_install.py", line 171, in finalize_options
File "build/bdist.macosx-10.5-i386/egg/setuptools/package_index.py",
line 155, in __init__
File "build/bdist.macosx-10.5-i386/egg/pkg_resources.py", line 681,
in __init__
File "build/bdist.macosx-10.5-i386/egg/pkg_resources.py", line 710,
in scan
File "build/bdist.macosx-10.5-i386/egg/pkg_resources.py", line 1595,
in find_on_path
File "build/bdist.macosx-10.5-i386/egg/pkg_resources.py", line 1532,
in find_distributions
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pkgutil.py", line 376, in get_importer
importer = path_hook(path_item)
TypeError: zipimporter() argument 1 must be string without null bytes,
not str
The devel setup on the Macbook produces no such error, nor do either
of the setups on the live Linux server (phew).
I wish I could recall what I did to the production setup subsequent to
deployment (I must have done /something/) but I can't.
Given that I have /four/ site-package directories, I should be able to
triangulate on the source of the problem. If not, it looks like I will
have to start over and re-populate the production setup from scratch.
It's a bit dispiriting that the error message is quite so
uninformative but thanks to Mike for explaining why.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---