-
-
Save psd/250838 to your computer and use it in GitHub Desktop.
future import issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import absolute_import | |
import os | |
os.environ['PY_USE_XMLPLUS'] = '1' | |
from xml.marshal import generic | |
print generic, dir(generic) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
works fine on Ubuntu, but on Mac OS X: | |
Traceback (most recent call last): | |
File "/usr/local/bin/twanager", line 14, in <module> | |
handle(args) | |
File "/Library/Python/2.5/site-packages/tiddlyweb/manage.py", line 309, in handle | |
COMMANDS[candidate_command](args) | |
File "/Library/Python/2.5/site-packages/tiddlyweb/manage.py", line 76, in server | |
serve.start_cherrypy() | |
File "/Library/Python/2.5/site-packages/tiddlyweb/web/serve.py", line 53, in start_cherrypy | |
app = load_app(prefix=config['server_prefix']) | |
File "/Library/Python/2.5/site-packages/tiddlyweb/web/serve.py", line 29, in load_app | |
imported_module = __import__(plugin, {}, {}, ['init']) | |
File "/Users/pauldowney/src/scapetate/tiddlywebplugins/xml/__init__.py", line 6, in <module> | |
from tiddlywebplugins.xml.marshaller import dumps, loads | |
File "/Users/pauldowney/src/tiddlyweb.xml/tiddlywebplugins/xml/marshaller.py", line 11, in <module> | |
from xml.marshal import generic | |
ImportError: No module named marshal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment