[Twisted-Python] OSX 10.9 Trial ZipPath issue

Since upgrading to OSX 10.9 I seem to have this issue when running trial (tried it with Twisted 13.0.0, 13.2.0 and 14.0.0): Unexpected error while writing cache file Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/twisted/scripts/trial.py", line 472, in postOptions _BasicOptions.postOptions(self) File "/usr/local/lib/python2.7/site-packages/twisted/scripts/trial.py", line 382, in postOptions self['reporter'] = self._loadReporterByName(self['reporter']) File "/usr/local/lib/python2.7/site-packages/twisted/scripts/trial.py", line 369, in _loadReporterByName for p in plugin.getPlugins(itrial.IReporter): File "/usr/local/lib/python2.7/site-packages/twisted/plugin.py", line 209, in getPlugins allDropins = getCache(package) --- <exception caught here> --- File "/usr/local/lib/python2.7/site-packages/twisted/plugin.py", line 181, in getCache dropinPath.setContent(pickle.dumps(dropinDotCache)) The only zip on the path is the pseudo python27.zip. Any ideas? -J

On Jun 25, 2014, at 3:31 PM, Jason J. W. Williams <jasonjwwilliams@gmail.com> wrote:
Since upgrading to OSX 10.9 I seem to have this issue when running trial (tried it with Twisted 13.0.0, 13.2.0 and 14.0.0):
Unexpected error while writing cache file Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/twisted/scripts/trial.py", line 472, in postOptions
It looks like you've installed Twisted in /usr/local/lib, which is not where a Twisted install should ever go on OS X. Either install into a virtualenv or use the system install at /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python. I can't speculate as to how you've mis-installed this particular version of Twisted though :-). -glyph

On 26 Jun 2014, at 6:31, Jason J. W. Williams <jasonjwwilliams@gmail.com> wrote:
Since upgrading to OSX 10.9 I seem to have this issue when running trial (tried it with Twisted 13.0.0, 13.2.0 and 14.0.0):
Unexpected error while writing cache file Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/twisted/scripts/trial.py", line 472, in postOptions _BasicOptions.postOptions(self) File "/usr/local/lib/python2.7/site-packages/twisted/scripts/trial.py", line 382, in postOptions self['reporter'] = self._loadReporterByName(self['reporter']) File "/usr/local/lib/python2.7/site-packages/twisted/scripts/trial.py", line 369, in _loadReporterByName for p in plugin.getPlugins(itrial.IReporter): File "/usr/local/lib/python2.7/site-packages/twisted/plugin.py", line 209, in getPlugins allDropins = getCache(package) --- <exception caught here> --- File "/usr/local/lib/python2.7/site-packages/twisted/plugin.py", line 181, in getCache dropinPath.setContent(pickle.dumps(dropinDotCache))
The only zip on the path is the pseudo python27.zip.
Any ideas?
-J
Have you tried running it in a virtualenv? It looks like it’s trying to write the dropin.cache file — but I don’t think you can do that if you’re not admin? -hawkowl
participants (3)
-
Glyph Lefkowitz
-
HawkOwl
-
Jason J. W. Williams