Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.
This repository was archived by the owner on Mar 15, 2026. It is now read-only.

Jenkins build error #16

Open
Open

Description

@ormanli

Hi,

I want to use Jenkins for packaging our AWS Lambda project. I use ShiningPanda for managing virtual environment. When I execute lambda build command, it gives error. It creates a zip but it does not have some dependencies. Lines with + are my commands.

[TEST] $ /usr/bin/python2.7 /var/lib/jenkins/shiningpanda/jobs/033bd94b/virtualenv.py /var/lib/jenkins/shiningpanda/jobs/033bd94b/virtualenvs/945f3fc4
New python executable in /var/lib/jenkins/shiningpanda/jobs/033bd94b/virtualenvs/945f3fc4/bin/python2.7
Also creating executable in /var/lib/jenkins/shiningpanda/jobs/033bd94b/virtualenvs/945f3fc4/bin/python
Installing setuptools, pip, wheel...done.
[TEST] $ /bin/sh -xe /tmp/shiningpanda3458767265880341612.sh
+ pip install -r requirements.txt
Collecting boto3==1.3.1 (from -r requirements.txt (line 1))
  Using cached boto3-1.3.1-py2.py3-none-any.whl
Collecting botocore==1.4.32 (from -r requirements.txt (line 2))
  Using cached botocore-1.4.32-py2.py3-none-any.whl
Collecting click==6.6 (from -r requirements.txt (line 3))
Collecting docutils==0.12 (from -r requirements.txt (line 4))
Collecting futures==3.0.5 (from -r requirements.txt (line 5))
  Using cached futures-3.0.5-py2-none-any.whl
Collecting jmespath==0.9.0 (from -r requirements.txt (line 6))
  Using cached jmespath-0.9.0-py2.py3-none-any.whl
Collecting Pillow==3.3.1 (from -r requirements.txt (line 7))
  Using cached Pillow-3.3.1-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pyaml==15.8.2 (from -r requirements.txt (line 8))
Collecting python-dateutil==2.5.3 (from -r requirements.txt (line 9))
  Using cached python_dateutil-2.5.3-py2.py3-none-any.whl
Collecting python-lambda==0.4.0 (from -r requirements.txt (line 10))
  Using cached python_lambda-0.4.0-py2.py3-none-any.whl
Collecting PyYAML==3.11 (from -r requirements.txt (line 11))
Collecting six==1.10.0 (from -r requirements.txt (line 12))
  Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: futures, jmespath, six, python-dateutil, docutils, botocore, boto3, click, Pillow, PyYAML, pyaml, python-lambda
Successfully installed Pillow-3.3.1 PyYAML-3.11 boto3-1.3.1 botocore-1.4.32 click-6.6 docutils-0.12 futures-3.0.5 jmespath-0.9.0 pyaml-15.8.2 python-dateutil-2.5.3 python-lambda-0.4.0 six-1.10.0
+ which python
/var/lib/jenkins/shiningpanda/jobs/033bd94b/virtualenvs/945f3fc4/bin/python
+ which pip
/var/lib/jenkins/shiningpanda/jobs/033bd94b/virtualenvs/945f3fc4/bin/pip
+ pip list
boto3 (1.3.1)
botocore (1.4.32)
click (6.6)
docutils (0.12)
futures (3.0.5)
jmespath (0.9.0)
Pillow (3.3.1)
pip (8.1.2)
pyaml (15.8.2)
python-dateutil (2.5.3)
python-lambda (0.4.0)
PyYAML (3.11)
setuptools (26.1.1)
six (1.10.0)
wheel (0.29.0)
+ lambda build
Exception:
Traceback (most recent call last):
  File "/var/lib/jenkins/shiningpanda/jobs/033bd94b/virtualenvs/945f3fc4/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/var/lib/jenkins/shiningpanda/jobs/033bd94b/virtualenvs/945f3fc4/local/lib/python2.7/site-packages/pip/commands/install.py", line 357, in run
    for item in os.listdir(lib_dir):
OSError: [Errno 2] No such file or directory: '/tmp/tmpxo3fWo/lib/python'
Exception:
Traceback (most recent call last):
  File "/var/lib/jenkins/shiningpanda/jobs/033bd94b/virtualenvs/945f3fc4/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/var/lib/jenkins/shiningpanda/jobs/033bd94b/virtualenvs/945f3fc4/local/lib/python2.7/site-packages/pip/commands/install.py", line 357, in run
    for item in os.listdir(lib_dir):
OSError: [Errno 2] No such file or directory: '/tmp/tmpMeHaOI/lib/python'
Gathering pip packages
Installing boto3==1.3.1
Installing botocore==1.4.32
Installing click==6.6
Installing docutils==0.12
Installing futures==3.0.5
Installing jmespath==0.9.0
Installing Pillow==3.3.1
Installing pip==8.1.2
Installing pyaml==15.8.2
Installing python-dateutil==2.5.3
Installing python-lambda==0.4.0
Installing PyYAML==3.11
Installing setuptools==26.1.1
Installing six==1.10.0
Installing wheel==0.29.0
Installing wsgiref==0.1.2

Activity

  1. added 2 commits that reference this issue on Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions