Errors installing xmiparser with Python 3.4 and windows - any help?
I am trying to install xmiparser-1.5.dev-r124826 into python 3.4.0 on a windows machine. When I try and install (either with pip or setup.py install) I get a number of syntax errors in the code ( below) Has anyone managed to install and use the xmiparser module in python 3.4? If so what's the trick? if not any pointers on what I can do to get it to go. Are there any other xmi parsers or tools? Thanks Gary Error output below -- >python setup.py install running install running bdist_egg running egg_info writing entry points to xmiparser.egg-info\entry_points.txt writing namespace_packages to xmiparser.egg-info\namespace_packages.txt writing requirements to xmiparser.egg-info\requires.txt writing dependency_links to xmiparser.egg-info\dependency_links.txt writing xmiparser.egg-info\PKG-INFO writing top-level names to xmiparser.egg-info\top_level.txt reading manifest file 'xmiparser.egg-info\SOURCES.txt' writing manifest file 'xmiparser.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py creating build\bdist.win-amd64\egg creating build\bdist.win-amd64\egg\xmiparser creating build\bdist.win-amd64\egg\xmiparser\doc copying build\lib\xmiparser\doc\umlsample.zargo -> build\bdist.win-amd64\egg\xmi parser\doc copying build\lib\xmiparser\interfaces.py -> build\bdist.win-amd64\egg\xmiparser creating build\bdist.win-amd64\egg\xmiparser\tests copying build\lib\xmiparser\tests\test_doctest.py -> build\bdist.win-amd64\egg\x miparser\tests copying build\lib\xmiparser\tests\xmiparser.txt -> build\bdist.win-amd64\egg\xmi parser\tests copying build\lib\xmiparser\tests\__init__.py -> build\bdist.win-amd64\egg\xmipa rser\tests copying build\lib\xmiparser\utils.py -> build\bdist.win-amd64\egg\xmiparser copying build\lib\xmiparser\xmiparser.py -> build\bdist.win-amd64\egg\xmiparser copying build\lib\xmiparser\zargoparser.py -> build\bdist.win-amd64\egg\xmiparse r copying build\lib\xmiparser\__init__.py -> build\bdist.win-amd64\egg\xmiparser byte-compiling build\bdist.win-amd64\egg\xmiparser\interfaces.py to interfaces.c python-34.pyc byte-compiling build\bdist.win-amd64\egg\xmiparser\tests\test_doctest.py to test _doctest.cpython-34.pyc byte-compiling build\bdist.win-amd64\egg\xmiparser\tests\__init__.py to __init__ .cpython-34.pyc byte-compiling build\bdist.win-amd64\egg\xmiparser\utils.py to utils.cpython-34. pyc byte-compiling build\bdist.win-amd64\egg\xmiparser\xmiparser.py to xmiparser.cpy thon-34.pyc File "build\bdist.win-amd64\egg\xmiparser\xmiparser.py", line 400 raise TypeError, 'element %s has empty taggedValue' % self.getId(el) ^ SyntaxError: invalid syntax byte-compiling build\bdist.win-amd64\egg\xmiparser\zargoparser.py to zargoparser .cpython-34.pyc byte-compiling build\bdist.win-amd64\egg\xmiparser\__init__.py to __init__.cpyth on-34.pyc creating build\bdist.win-amd64\egg\EGG-INFO copying xmiparser.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO copying xmiparser.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO copying xmiparser.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG -INFO copying xmiparser.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INF O copying xmiparser.egg-info\namespace_packages.txt -> build\bdist.win-amd64\egg\E GG-INFO copying xmiparser.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO copying xmiparser.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO copying xmiparser.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO creating 'dist\xmiparser-1.5.dev_r124826-py3.4.egg' and adding 'build\bdist.win- amd64\egg' to it removing 'build\bdist.win-amd64\egg' (and everything under it) Processing xmiparser-1.5.dev_r124826-py3.4.egg removing 'c:\python34\lib\site-packages\xmiparser-1.5.dev_r124826-py3.4.egg' (an d everything under it) creating c:\python34\lib\site-packages\xmiparser-1.5.dev_r124826-py3.4.egg Extracting xmiparser-1.5.dev_r124826-py3.4.egg to c:\python34\lib\site-packages File "c:\python34\lib\site-packages\xmiparser-1.5.dev_r124826-py3.4.egg\xmipar ser\xmiparser.py", line 400 raise TypeError, 'element %s has empty taggedValue' % self.getId(el) ^ SyntaxError: invalid syntax xmiparser 1.5.dev-r124826 is already the active version in easy-install.pth Installed c:\python34\lib\site-packages\xmiparser-1.5.dev_r124826-py3.4.egg Processing dependencies for xmiparser==1.5.dev-r124826 Searching for zope.interface Reading https://pypi.python.org/simple/zope.interface/ Best match: zope.interface 4.1.3 Downloading https://pypi.python.org/packages/source/z/zope.interface/zope.interf ace-4.1.3.tar.gz#md5=9ae3d24c0c7415deb249dd1a132f0f79 Processing zope.interface-4.1.3.tar.gz Writing C:\Users\GHANYZ~1\AppData\Local\Temp\easy_install-hnq9571n\zope.interfac e-4.1.3\setup.cfg Running zope.interface-4.1.3\setup.py -q bdist_egg --dist-dir C:\Users\GHANYZ~1\ AppData\Local\Temp\easy_install-hnq9571n\zope.
Re: Errors installing xmiparser with Python 3.4 and windows - any help?
Laura, Thanks for the pointer to PyXB, I think this will work for my purposes and it appears to be Python 3.4 / Windows compatible. Thank you to all who helped. On Friday, October 9, 2015 at 1:14:32 PM UTC-5, Laura Creighton wrote: > In a message of Fri, 09 Oct 2015 10:24:34 -0700, Gary Hanyzewski writes: > >I am trying to install xmiparser-1.5.dev-r124826 into python 3.4.0 on a > >windows machine. > >When I try and install (either with pip or setup.py install) I get a number > >of syntax errors in the code ( below) > > > >Has anyone managed to install and use the xmiparser module in python 3.4? If > >so what's the trick? if not any pointers on what I can do to get it to go. > >Are there any other xmi parsers or tools? > > > >Thanks > > > >Gary > > If XMI is just XML according to a particular schema, then you can get the > schema over here: http://www.omg.org/spec/XMI/2.5.1/ > > And then parse it with PyXB. > https://pypi.python.org/pypi/PyXB > > But maybe I don't understand what XMI is well enough. > > Laura -- https://mail.python.org/mailman/listinfo/python-list