Setup django/python with Jenkins -
i configure jenkins python/django application (i'm using python 3.5)
during setup open virtualenv , activate it.
virtualenv -q wecover_platform . ./wecover_platform/bin/activate
then install requirements file requirement.txt
pip install -r $workspace/requirements.txt
i can't pass step have permission denied issue.
installing collected packages: asn1crypto, pycparser, cffi, idna, cryptography, pyopenssl, olefile, pillow, reportlab, selenium, django-jenkins exception: traceback (most recent call last): file "/usr/local/lib/python3.5/dist-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) file "/usr/local/lib/python3.5/dist-packages/pip/commands/install.py", line 342, in run prefix=options.prefix_path, file "/usr/local/lib/python3.5/dist-packages/pip/req/req_set.py", line 784, in install **kwargs file "/usr/local/lib/python3.5/dist-packages/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) file "/usr/local/lib/python3.5/dist-packages/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, file "/usr/local/lib/python3.5/dist-packages/pip/wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, true) file "/usr/local/lib/python3.5/dist-packages/pip/wheel.py", line 316, in clobber ensure_dir(destdir) file "/usr/local/lib/python3.5/dist-packages/pip/utils/__init__.py", line 83, in ensure_dir os.makedirs(path) file "/usr/lib/python3.5/os.py", line 241, in makedirs mkdir(name, mode) permissionerror: [errno 13] permission denied: '/usr/local/lib/python3.5/dist-packages/asn1crypto' build step 'execute shell' marked build failure finished: failure
if me appreciate it!
wiki
Comments
Post a Comment