← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1398531] Re: Syntax error (?) when building virtualenv

 

** Changed in: anvil
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to anvil.
https://bugs.launchpad.net/bugs/1398531

Title:
  Syntax error (?) when building virtualenv

Status in anvil:
  Invalid

Bug description:
  Seems like the venv building support not exactly working yet.

  When making a virtualenv out of oslo-config the following seems to
  happen:

  Traceback (most recent call last):
    File "/home/harlowja/anvil/anvil/__main__.py", line 223, in main
      run(args)
    File "/home/harlowja/anvil/anvil/__main__.py", line 130, in run
      runner.run(persona_obj)
    File "/home/harlowja/anvil/anvil/actions/base.py", line 325, in run
      self._run(persona, component_order, instances)
    File "/home/harlowja/anvil/anvil/actions/prepare.py", line 76, in _run
      *removals
    File "/home/harlowja/anvil/anvil/actions/base.py", line 307, in _run_phase
      result = functors.run(instance)
    File "/home/harlowja/anvil/anvil/packaging/venv.py", line 160, in package_instance
      self._install_into_venv(instance, requires_what)
    File "/home/harlowja/anvil/anvil/packaging/venv.py", line 84, in _install_into_venv
      utils.retry(3, 5, try_install, requirements=requirements)
    File "/home/harlowja/anvil/anvil/utils.py", line 257, in retry
      six.reraise(exc_type, exc, exc_tb)
    File "/home/harlowja/anvil/anvil/utils.py", line 249, in retry
      return func(*args, **kwargs)
    File "/home/harlowja/anvil/anvil/packaging/venv.py", line 81, in try_install
      sh.execute(cmd, env_overrides=env_overrides)
    File "/home/harlowja/anvil/anvil/shell.py", line 164, in execute
      raise e
  ProcessExecutionError: Unexpected error while running command.
  Command: /home/harlowja/openstack/oslo-config/venv/bin/pip install --download-cache /home/harlowja/openstack/pip-cache anyjson>=0.3.3 argparse Babel>=1.3 bashate>=0.2 boto>=2.32.1 cliff>=1.7.0 cliff-tablib>=1.0 coverage>=3.6 decorator>=3.4.0 discover dogpile.cache>=0.5.3 eventlet>=0.15.2 feedparser fixtures>=0.3.14 futures>=2.1.3 glance-store>=0.1.10 greenlet>=0.3.2 hacking>=0.9.2,<0.10 hp3parclient httplib2>=0.7.5 iso8601>=0.1.9 Jinja2>=2.6 jsonschema>=2.0.0,<3.0.0 keyring>=2.1,!=3.3 keystonemiddleware>=1.0.0 kombu>=2.5.0 ldappool>=1.0 libvirt-python>=1.2.5 lockfile>=0.8 lxml>=2.3 mock>=1.0 mox>=0.5.3 mox3>=0.7.0 MySQL-python netaddr>=0.7.12 nose>=1.3.0 oauthlib>=0.6 ordereddict oslo.concurrency>=0.1.0 oslo.db>=1.1.0 oslo.i18n>=1.0.0 oslo.middleware>=0.1.0 oslo.rootwrap>=1.3.0 oslo.serialization>=1.0.0 oslo.utils>=1.0.0 oslo.vmware>=0.6.0 oslosphinx>=2.2.0 oslotest>=1.2.0 osprofiler>=0.3.0 paramiko>=1.13.0 passlib Paste PasteDeploy>=1.5.0 pbr>=0.6,!=0.7,<1.0 posix-ipc PrettyTable>=0.7,<0.8 psutil>=1.1.1,<2.0.0 psycopg2 pyasn1 pycrypto>=2.6 pylint>=1.3.0 pymongo>=2.5 pyOpenSSL>=0.11 pysaml2 pysendfile==2.0.0 pysqlite python-barbicanclient>=2.1.0,!=3.0.0 python-ironicclient>=0.2.1 python-ldap>=2.4 python-memcached>=1.48 python-subunit>=0.0.18 pytz PyYAML>=3.1.0 qpid-python redis>=2.10.0 requests>=2.2.0,!=2.4.0 requests-mock>=0.5.1 retrying>=1.2.2,!=1.3.0 rfc3986>=0.2.0 Routes>=1.12.3,!=2.0 rtslib-fb>=2.1.39 simplejson>=2.2.0 six>=1.7.0 sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 sqlalchemy>=0.8.4,<=0.8.99 sqlalchemy-migrate>=0.9.1,!=0.9.2 stevedore>=1.1.0 suds>=0.4 taskflow>=0.4 testrepository>=0.0.18 testresources>=0.2.4 testscenarios>=0.4 testtools>=0.9.36,!=1.2.0,!=1.4.0 warlock>=1.0.1,<2 WebOb>=1.2.3 websockify>=0.6.0,<0.7 WebTest>=2.0 wsgiref>=0.1.2 WSME>=0.6 xattr>=0.4,<0.7
  Exit code: 1
  Stdout:
  SyntaxError: invalid syntax

  Pylint issues it seems...
  -------------------------

    Using download cache from /home/harlowja/openstack/pip-
  cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fpylint%2Fpylint-1.4.0.tar.gz

    Running setup.py egg_info for package pylint

      Traceback (most recent call last):

        File "<string>", line 16, in <module>

        File "/home/harlowja/openstack/oslo-
  config/venv/build/pylint/setup.py", line 123

          exclude = {'invalid_encoded_data*',

                                            ^

      SyntaxError: invalid syntax

      Complete output from command python setup.py egg_info:

      Traceback (most recent call last):

    File "<string>", line 16, in <module>

    File "/home/harlowja/openstack/oslo-
  config/venv/build/pylint/setup.py", line 123

      exclude = {'invalid_encoded_data*',

                                        ^

  SyntaxError: invalid syntax

  ----------------------------------------

  Cleaning up...

    Removing temporary dir /home/harlowja/openstack/oslo-config/venv/build...
  Command python setup.py egg_info failed with error code 1 in /home/harlowja/openstack/oslo-config/venv/build/pylint

  Exception information:
  Traceback (most recent call last):
    File "/home/harlowja/openstack/oslo-config/venv/lib/python2.6/site-packages/pip/basecommand.py", line 134, in main
      status = self.run(options, args)
    File "/home/harlowja/openstack/oslo-config/venv/lib/python2.6/site-packages/pip/commands/install.py", line 236, in run
      requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
    File "/home/harlowja/openstack/oslo-config/venv/lib/python2.6/site-packages/pip/req.py", line 1134, in prepare_files
      req_to_install.run_egg_info()
    File "/home/harlowja/openstack/oslo-config/venv/lib/python2.6/site-packages/pip/req.py", line 259, in run_egg_info
      command_desc='python setup.py egg_info')
    File "/home/harlowja/openstack/oslo-config/venv/lib/python2.6/site-packages/pip/util.py", line 670, in call_subprocess
      % (command_desc, proc.returncode, cwd))
  InstallationError: Command python setup.py egg_info failed with error code 1 in /home/harlowja/openstack/oslo-config/venv/build/pylint

To manage notifications about this bug go to:
https://bugs.launchpad.net/anvil/+bug/1398531/+subscriptions


References