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.interface-4.1.3\egg-dist-tmp-j5z_0
_r8
warning: no previously-included files matching '*.dll' found anywhere in distrib
ution
warning: no previously-included files matching '*.pyc' found anywhere in distrib
ution
warning: no previously-included files matching '*.pyo' found anywhere in distrib
ution
warning: no previously-included files matching '*.so' found anywhere in distribu
tion
warning: no previously-included files matching 'coverage.xml' found anywhere in
distribution
no previously-included directories found matching 'docs\_build'
Traceback (most recent call last):
  File "setup.py", line 45, in <module>
    """,
  File "C:\Python34\lib\distutils\core.py", line 149, in setup
    dist.run_commands()
  File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\site-packages\setuptools\command\install.py", line 74, i
n run
    self.do_egg_install()
  File "C:\Python34\lib\site-packages\setuptools\command\install.py", line 97, i
n do_egg_install
    cmd.run()
  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
358, in run
    self.easy_install(spec, not self.no_deps)
  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
574, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
625, in install_item
    self.process_distribution(spec, dist, deps)
  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
671, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "C:\Python34\lib\site-packages\pkg_resources.py", line 564, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File "C:\Python34\lib\site-packages\pkg_resources.py", line 802, in best_match

    return self.obtain(req, installer) # try and download/install
  File "C:\Python34\lib\site-packages\pkg_resources.py", line 814, in obtain
    return installer(requirement)
  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
593, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
623, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
809, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
1015, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
1000, in run_setup
    run_setup(setup_script, args)
  File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 50, in run_se
tup
    lambda: execfile(
  File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 100, in run
    return func()
  File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 52, in <lambd
a>
    {'__file__':setup_script, '__name__':'__main__'}
  File "C:\Python34\lib\site-packages\setuptools\compat.py", line 78, in execfil
e
    exec(compile(source, fn, 'exec'), globs, locs)
  File "setup.py", line 147, in <module>
  File "C:\Python34\lib\distutils\core.py", line 149, in setup
    dist.run_commands()
  File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\site-packages\setuptools\command\bdist_egg.py", line 185
, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "C:\Python34\lib\site-packages\setuptools\command\bdist_egg.py", line 171
, in call_command
    self.run_command(cmdname)
  File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\site-packages\setuptools\command\install_lib.py", line 2
0, in run
    self.build()
  File "C:\Python34\lib\distutils\command\install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "setup.py", line 41, in run
    'ordereddict',
  File "C:\Python34\lib\site-packages\setuptools\command\build_ext.py", line 52,
 in run
    _build_ext.run(self)
  File "C:\Python34\lib\distutils\command\build_ext.py", line 348, in run
    self.build_extensions()
  File "C:\Python34\lib\distutils\command\build_ext.py", line 457, in build_exte
nsions
    self.build_extension(ext)
  File "setup.py", line 47, in build_extension
  File "C:\Python34\lib\site-packages\setuptools\command\build_ext.py", line 186
, in build_extension
    _build_ext.build_extension(self,ext)
  File "C:\Python34\lib\distutils\command\build_ext.py", line 512, in build_exte
nsion
    depends=ext.depends)
  File "C:\Python34\lib\distutils\msvc9compiler.py", line 460, in compile
    self.initialize()
  File "C:\Python34\lib\distutils\msvc9compiler.py", line 371, in initialize
    vc_env = query_vcvarsall(VERSION, plat_spec)
  File "C:\Python34\lib\distutils\msvc9compiler.py", line 287, in query_vcvarsal
l
    raise ValueError(str(list(result.keys())))
ValueError: ['path']
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to