Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22902

Cannot create virtualenv with python3.4

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Creation of the virtualenv fail using python3.4
      This is related to this virtualenv bug:
      https://github.com/pypa/virtualenv/issues/463
      Which is corrected in virtualenv 1.11.1.
      Actual shiningpanda pluging seems to use a custom version of virtualenv.py with version 1.9.1 (for python 2.6+).

      Here is below the failing build log:

      (...)
      [workspace] $ hg --config auth.jenkins.prefix=* --config ******** --config ******** --config "auth.jenkins.schemes=http https" log --template "<changeset node='

      {node}

      ' author='

      {author|xmlescape}

      ' rev='

      {rev}

      ' date='

      {date}

      '><msg>

      {desc|xmlescape}

      </msg><added>

      {file_adds|stringify|xmlescape}

      </added><deleted>

      {file_dels|stringify|xmlescape}

      </deleted><files>

      {files|stringify|xmlescape}

      </files><parents>

      {parents}

      </parents></changeset>\n" --rev default:0 --follow --prune d271655d52ae434caa1bc15c4fb121f0237a8f7e --encoding UTF-8 --encodingmode replace
      [workspace] $ /usr/bin/python3.4 /var/lib/jenkins/shiningpanda/jobs/c19c8e60/virtualenv.py --distribute /var/lib/jenkins/shiningpanda/jobs/c19c8e60/virtualenvs/d41d8cd9
      Failed to import the site module
      Traceback (most recent call last):
      File "/var/lib/jenkins/shiningpanda/jobs/c19c8e60/virtualenvs/d41d8cd9/lib/python3.4/site.py", line 67, in <module>
      import os
      File "/var/lib/jenkins/shiningpanda/jobs/c19c8e60/virtualenvs/d41d8cd9/lib/python3.4/os.py", line 634, in <module>
      from _collections_abc import MutableMapping
      ImportError: No module named '_collections_abc'
      Using base prefix '/usr'
      New python executable in /var/lib/jenkins/shiningpanda/jobs/c19c8e60/virtualenvs/d41d8cd9/bin/python3.4
      Also creating executable in /var/lib/jenkins/shiningpanda/jobs/c19c8e60/virtualenvs/d41d8cd9/bin/python
      ERROR: The executable /var/lib/jenkins/shiningpanda/jobs/c19c8e60/virtualenvs/d41d8cd9/bin/python3.4 is not functioning
      ERROR: It thinks sys.prefix is '/var/lib/jenkins/jobs/nafasi/workspace' (should be '/var/lib/jenkins/shiningpanda/jobs/c19c8e60/virtualenvs/d41d8cd9')
      ERROR: virtualenv is not compatible with this system or executable
      Build step 'Virtualenv Builder' marked build as failure
      Enregistrement des r├ęsultats des tests
      Finished: FAILURE

        Attachments

          Activity

          Hide
          mansion Olivier Mansion added a comment -

          just released the version 0.21 with the latest virtualenv version, this should fix the issue with python 3.4

          Show
          mansion Olivier Mansion added a comment - just released the version 0.21 with the latest virtualenv version, this should fix the issue with python 3.4
          Hide
          cjw296 Chris Withers added a comment -

          Verified as working for me, I was experiencing this problem.

          Show
          cjw296 Chris Withers added a comment - Verified as working for me, I was experiencing this problem.

            People

            Assignee:
            mansion Olivier Mansion
            Reporter:
            tchiroux Thomas Chiroux
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: