question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build - subprocess has no attribute '_optim_args_from_interpreter_flags' on AWS EC2

See original GitHub issue

My actions before raising this issue

  • Read/searched the docs
  • Searched past issues

Expected Behaviour

Following the guide for ubuntu 18 here: https://github.com/opencv/cvat/blob/develop/cvat/apps/documentation/installation.md#ubuntu-1804-x86_64amd64 Should work. It worked for me in the past.

Current Behaviour

When docker-compose build is run the build fails with

 Running setup.py install for python-ldap: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lvt1ed69/python-ldap/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lvt1ed69/python-ldap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-xk43i3o2/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.5/python-ldap
         cwd: /tmp/pip-install-lvt1ed69/python-ldap/

and

  File "/usr/local/lib/python3.5/dist-packages/setuptools/_distutils/command/install_lib.py", line 138, in byte_compile
        verbose=self.verbose, dry_run=self.dry_run)
      File "/usr/local/lib/python3.5/dist-packages/setuptools/_distutils/util.py", line 423, in byte_compile
        cmd.extend(subprocess._optim_args_from_interpreter_flags())
    AttributeError: module 'subprocess' has no attribute '_optim_args_from_interpreter_flags'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lvt1ed69/python-ldap/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lvt1ed69/python-ldap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-xk43i3o2/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.5/python-ldap Check the logs for full command output.

Possible Solution

Not sure - maybe something with the python version since subprocess is standard. I am using 3.6.9 but also tried 3.7. Since this seems to fail on the first compile task I don’t think it has to do with python-ldap itself.

Steps to Reproduce (for bugs)

  1. Use setup guide on AWS EC2 instance with Unbuntu 18 AMI (also tried ubuntu deep learning AMI)

Context

Just trying to build on AWS EC2.

Your Environment

  • Git hash commit 18f6b2f95d0bcd0a491ad3f7a892fabb734f7b00
  • Docker version docker version 19.03.12
  • Are you using Docker Swarm or Kubernetes? no
  • Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 18.04.4 LTS
  • Other diagnostic information / logs FULL LOG BELOW
Step 31/57 : RUN python3 -m pip install --no-cache-dir -r /tmp/requirements/${DJANGO_CONFIGURATION}.txt
 ---> Running in 0c384a1531ec
Collecting click==7.1.2
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting Django==2.2.13
  Downloading Django-2.2.13-py3-none-any.whl (7.5 MB)
Collecting django-appconf==1.0.4
  Downloading django_appconf-1.0.4-py2.py3-none-any.whl (6.3 kB)
Collecting django-auth-ldap==2.2.0
  Downloading django_auth_ldap-2.2.0-py3-none-any.whl (20 kB)
Collecting django-cacheops==5.0
  Downloading django_cacheops-5.0-py2.py3-none-any.whl (37 kB)
Collecting django-compressor==2.4
  Downloading django_compressor-2.4-py2.py3-none-any.whl (126 kB)
Collecting django-rq==2.0.0
  Downloading django_rq-2.0-py2.py3-none-any.whl (44 kB)
Collecting EasyProcess==0.3
  Downloading EasyProcess-0.3-py2.py3-none-any.whl (7.9 kB)
Collecting Pillow==7.2.0
  Downloading Pillow-7.2.0-cp35-cp35m-manylinux1_x86_64.whl (2.2 MB)
Collecting numpy==1.18.5
  Downloading numpy-1.18.5-cp35-cp35m-manylinux1_x86_64.whl (19.9 MB)
Collecting python-ldap==3.3.1
  Downloading python-ldap-3.3.1.tar.gz (379 kB)
Collecting pytz==2020.1
  Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
Collecting pyunpack==0.2.1
  Downloading pyunpack-0.2.1-py2.py3-none-any.whl (3.7 kB)
Collecting rcssmin==1.0.6
  Downloading rcssmin-1.0.6.tar.gz (582 kB)
Collecting redis==3.5.3
  Downloading redis-3.5.3-py2.py3-none-any.whl (72 kB)
Collecting rjsmin==1.1.0
  Downloading rjsmin-1.1.0-cp35-cp35m-manylinux1_x86_64.whl (23 kB)
Collecting requests==2.24.0
  Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting rq==1.0.0
  Downloading rq-1.0.tar.gz (45 kB)
Collecting rq-scheduler==0.10.0
  Downloading rq_scheduler-0.10.0-py2.py3-none-any.whl (12 kB)
Collecting scipy==1.4.1
  Downloading scipy-1.4.1-cp35-cp35m-manylinux1_x86_64.whl (26.0 MB)
Collecting sqlparse==0.3.1
  Downloading sqlparse-0.3.1-py2.py3-none-any.whl (40 kB)
Collecting django-sendfile==0.3.11
  Downloading django-sendfile-0.3.11.tar.gz (7.3 kB)
Collecting dj-pagination==2.4.0
  Downloading dj_pagination-2.4.0-py3-none-any.whl (35 kB)
Collecting python-logstash==0.4.6
  Downloading python-logstash-0.4.6.tar.gz (6.5 kB)
Collecting django-revproxy==0.10.0
  Downloading django_revproxy-0.10.0-py3-none-any.whl (17 kB)
Collecting rules==2.2
  Downloading rules-2.2.tar.gz (53 kB)
Collecting GitPython==3.1.3
  Downloading GitPython-3.1.3-py3-none-any.whl (451 kB)
Collecting coreapi==2.3.3
  Downloading coreapi-2.3.3-py2.py3-none-any.whl (25 kB)
Collecting django-filter==2.3.0
  Downloading django_filter-2.3.0-py3-none-any.whl (73 kB)
Collecting Markdown==3.2.2
  Downloading Markdown-3.2.2-py3-none-any.whl (88 kB)
Collecting djangorestframework==3.11.0
  Downloading djangorestframework-3.11.0-py3-none-any.whl (911 kB)
Collecting Pygments==2.6.1
  Downloading Pygments-2.6.1-py3-none-any.whl (914 kB)
Collecting drf-yasg==1.17.1
  Downloading drf_yasg-1.17.1-py2.py3-none-any.whl (1.1 MB)
Collecting Shapely==1.7.0
  Downloading Shapely-1.7.0-cp35-cp35m-manylinux1_x86_64.whl (1.8 MB)
Collecting pdf2image==1.13.1
  Downloading pdf2image-1.13.1-py3-none-any.whl (10.0 kB)
Collecting pascal_voc_writer==0.1.4
  Downloading pascal_voc_writer-0.1.4-py2.py3-none-any.whl (4.0 kB)
Collecting django-rest-auth[with_social]==0.9.5
  Downloading django-rest-auth-0.9.5.tar.gz (53 kB)
Collecting cython==0.29.20
  Downloading Cython-0.29.20-cp35-cp35m-manylinux1_x86_64.whl (1.9 MB)
Collecting matplotlib==3.0.3
  Downloading matplotlib-3.0.3-cp35-cp35m-manylinux1_x86_64.whl (13.0 MB)
Collecting scikit-image==0.15.0
  Downloading scikit_image-0.15.0-cp35-cp35m-manylinux1_x86_64.whl (26.2 MB)
Collecting tensorflow==2.2.0
  Downloading tensorflow-2.2.0-cp35-cp35m-manylinux2010_x86_64.whl (516.2 MB)
Collecting keras==2.4.2
  Downloading Keras-2.4.2-py2.py3-none-any.whl (170 kB)
Collecting opencv-python==4.2.0.34
  Downloading opencv_python-4.2.0.34-cp35-cp35m-manylinux1_x86_64.whl (28.2 MB)
Collecting h5py==2.10.0
  Downloading h5py-2.10.0-cp35-cp35m-manylinux1_x86_64.whl (2.8 MB)
Collecting imgaug==0.4.0
  Downloading imgaug-0.4.0-py2.py3-none-any.whl (948 kB)
Collecting django-cors-headers==3.4.0
  Downloading django_cors_headers-3.4.0-py3-none-any.whl (11 kB)
Collecting furl==2.1.0
  Downloading furl-2.1.0-py2.py3-none-any.whl (20 kB)
Collecting av==6.2.0
  Downloading av-6.2.0.tar.gz (2.0 MB)
Collecting patool==1.12
  Downloading patool-1.12-py2.py3-none-any.whl (77 kB)
Collecting psycopg2-binary==2.8.5
  Downloading psycopg2_binary-2.8.5-cp35-cp35m-manylinux1_x86_64.whl (2.9 MB)
Collecting mod-wsgi==4.7.1
  Downloading mod_wsgi-4.7.1.tar.gz (498 kB)
Collecting funcy<2.0,>=1.8
  Downloading funcy-1.14.tar.gz (548 kB)
Collecting six>=1.4.0
  Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting pyasn1>=0.3.7
  Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting pyasn1_modules>=0.1.5
  Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting entrypoint2
  Downloading entrypoint2-0.2.1-py2.py3-none-any.whl (8.7 kB)
Collecting certifi>=2017.4.17
  Downloading certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
Collecting chardet<4,>=3.0.2
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting idna<3,>=2.5
  Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Downloading urllib3-1.25.9-py2.py3-none-any.whl (126 kB)
Collecting croniter>=0.3.9
  Downloading croniter-0.3.34-py2.py3-none-any.whl (19 kB)
Collecting gitdb<5,>=4.0.1
  Downloading gitdb-4.0.5-py3-none-any.whl (63 kB)
Collecting coreschema
  Downloading coreschema-0.0.4.tar.gz (10 kB)
Collecting uritemplate
  Downloading uritemplate-3.0.1-py2.py3-none-any.whl (15 kB)
Collecting itypes
  Downloading itypes-1.2.0-py2.py3-none-any.whl (4.8 kB)
Collecting importlib-metadata; python_version < "3.8"
  Downloading importlib_metadata-1.7.0-py2.py3-none-any.whl (31 kB)
Collecting packaging
  Downloading packaging-20.4-py2.py3-none-any.whl (37 kB)
Collecting ruamel.yaml>=0.15.34
  Downloading ruamel.yaml-0.16.10-py2.py3-none-any.whl (111 kB)
Collecting inflection>=0.3.1
  Downloading inflection-0.5.0-py2.py3-none-any.whl (5.8 kB)
Collecting jinja2
  Downloading Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)
Collecting django-allauth>=0.25.0
  Downloading django-allauth-0.42.0.tar.gz (549 kB)
Collecting cycler>=0.10
  Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.1.0-cp35-cp35m-manylinux1_x86_64.whl (90 kB)
Collecting python-dateutil>=2.1
  Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1
  Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting networkx>=2.0
  Downloading networkx-2.4-py3-none-any.whl (1.6 MB)
Collecting PyWavelets>=0.4.0
  Downloading PyWavelets-1.1.1-cp35-cp35m-manylinux1_x86_64.whl (4.4 MB)
Collecting imageio>=2.0.1
  Downloading imageio-2.8.0-py3-none-any.whl (3.3 MB)
Collecting google-pasta>=0.1.8
  Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)
Collecting keras-preprocessing>=1.1.0
  Downloading Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Collecting wrapt>=1.11.1
  Downloading wrapt-1.12.1.tar.gz (27 kB)
Collecting protobuf>=3.8.0
  Downloading protobuf-3.12.2-cp35-cp35m-manylinux1_x86_64.whl (1.3 MB)
Collecting wheel>=0.26; python_version >= "3"
  Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Collecting grpcio>=1.8.6
  Downloading grpcio-1.30.0-cp35-cp35m-manylinux2010_x86_64.whl (3.0 MB)
Collecting termcolor>=1.1.0
  Downloading termcolor-1.1.0.tar.gz (3.9 kB)
Collecting absl-py>=0.7.0
  Downloading absl-py-0.9.0.tar.gz (104 kB)
Collecting tensorboard<2.3.0,>=2.2.0
  Downloading tensorboard-2.2.2-py3-none-any.whl (3.0 MB)
Collecting astunparse==1.6.3
  Downloading astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting gast==0.3.3
  Downloading gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Collecting opt-einsum>=2.3.2
  Downloading opt_einsum-3.2.1-py3-none-any.whl (63 kB)
Collecting tensorflow-estimator<2.3.0,>=2.2.0
  Downloading tensorflow_estimator-2.2.0-py2.py3-none-any.whl (454 kB)
Collecting pyyaml
  Downloading PyYAML-5.3.1.tar.gz (269 kB)
Collecting orderedmultidict>=1.0.1
  Downloading orderedmultidict-1.0.1-py2.py3-none-any.whl (11 kB)
Collecting argparse
  Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Collecting natsort
  Downloading natsort-7.0.1-py3-none-any.whl (33 kB)
Collecting smmap<4,>=3.0.1
  Downloading smmap-3.0.4-py2.py3-none-any.whl (25 kB)
Collecting zipp>=0.5
  Downloading zipp-1.2.0-py2.py3-none-any.whl (4.8 kB)
Collecting ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.9"
  Downloading ruamel.yaml.clib-0.2.0-cp35-cp35m-manylinux1_x86_64.whl (526 kB)
Collecting MarkupSafe>=0.23
  Downloading MarkupSafe-1.1.1-cp35-cp35m-manylinux1_x86_64.whl (27 kB)
Collecting python3-openid>=3.0.8
  Downloading python3_openid-3.2.0-py3-none-any.whl (133 kB)
Collecting requests-oauthlib>=0.3.0
  Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: setuptools in /usr/local/lib/python3.5/dist-packages (from kiwisolver>=1.0.1->matplotlib==3.0.3->-r /tmp/requirements/base.txt (line 39)) (48.0.0)
Collecting decorator>=4.3.0
  Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting google-auth<2,>=1.6.3
  Downloading google_auth-1.18.0-py2.py3-none-any.whl (90 kB)
Collecting tensorboard-plugin-wit>=1.6.0
  Downloading tensorboard_plugin_wit-1.7.0-py3-none-any.whl (779 kB)
Collecting werkzeug>=0.11.15
  Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Collecting google-auth-oauthlib<0.5,>=0.4.1
  Downloading google_auth_oauthlib-0.4.1-py2.py3-none-any.whl (18 kB)
Collecting defusedxml
  Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting oauthlib>=3.0.0
  Downloading oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Collecting cachetools<5.0,>=2.0.0
  Downloading cachetools-4.1.1-py3-none-any.whl (10 kB)
Collecting rsa<5,>=3.1.4; python_version >= "3"
  Downloading rsa-4.6-py3-none-any.whl (47 kB)
Installing collected packages: click, pytz, sqlparse, Django, django-appconf, pyasn1, pyasn1-modules, python-ldap, django-auth-ldap, funcy, redis, six, django-cacheops, rjsmin, rcssmin, django-compressor, rq, django-rq, EasyProcess, Pillow, numpy, argparse, entrypoint2, pyunpack, certifi, chardet, idna, urllib3, requests, natsort, python-dateutil, croniter, rq-scheduler, scipy, django-sendfile, dj-pagination, python-logstash, django-revproxy, rules, smmap, gitdb, GitPython, MarkupSafe, jinja2, coreschema, uritemplate, itypes, coreapi, django-filter, zipp, importlib-metadata, Markdown, djangorestframework, Pygments, pyparsing, packaging, ruamel.yaml.clib, ruamel.yaml, inflection, drf-yasg, Shapely, pdf2image, pascal-voc-writer, defusedxml, python3-openid, oauthlib, requests-oauthlib, django-allauth, django-rest-auth, cython, cycler, kiwisolver, matplotlib, decorator, networkx, PyWavelets, imageio, scikit-image, google-pasta, keras-preprocessing, wrapt, protobuf, wheel, grpcio, termcolor, absl-py, cachetools, rsa, google-auth, tensorboard-plugin-wit, werkzeug, google-auth-oauthlib, tensorboard, h5py, astunparse, gast, opt-einsum, tensorflow-estimator, tensorflow, pyyaml, keras, opencv-python, imgaug, django-cors-headers, orderedmultidict, furl, av, patool, psycopg2-binary, mod-wsgi
    Running setup.py install for python-ldap: started
    Running setup.py install for python-ldap: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lvt1ed69/python-ldap/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lvt1ed69/python-ldap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-xk43i3o2/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.5/python-ldap
         cwd: /tmp/pip-install-lvt1ed69/python-ldap/
    Complete output (213 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    copying Lib/ldapurl.py -> build/lib.linux-x86_64-3.5
    copying Lib/ldif.py -> build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/modlist.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/resiter.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/__init__.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/cidict.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/pkginfo.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/compat.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/filter.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/dn.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/syncrepl.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/logger.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/constants.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/async.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/sasl.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/asyncsearch.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/functions.py -> build/lib.linux-x86_64-3.5/ldap
    copying Lib/ldap/ldapobject.py -> build/lib.linux-x86_64-3.5/ldap
    creating build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/__init__.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/simple.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/deref.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/readentry.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/sss.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/ppolicy.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/libldap.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/psearch.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/pwdpolicy.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/sessiontrack.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/vlv.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/openldap.py -> build/lib.linux-x86_64-3.5/ldap/controls
    copying Lib/ldap/controls/pagedresults.py -> build/lib.linux-x86_64-3.5/ldap/controls
    creating build/lib.linux-x86_64-3.5/ldap/extop
    copying Lib/ldap/extop/passwd.py -> build/lib.linux-x86_64-3.5/ldap/extop
    copying Lib/ldap/extop/dds.py -> build/lib.linux-x86_64-3.5/ldap/extop
    copying Lib/ldap/extop/__init__.py -> build/lib.linux-x86_64-3.5/ldap/extop
    creating build/lib.linux-x86_64-3.5/ldap/schema
    copying Lib/ldap/schema/__init__.py -> build/lib.linux-x86_64-3.5/ldap/schema
    copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-x86_64-3.5/ldap/schema
    copying Lib/ldap/schema/models.py -> build/lib.linux-x86_64-3.5/ldap/schema
    copying Lib/ldap/schema/subentry.py -> build/lib.linux-x86_64-3.5/ldap/schema
    creating build/lib.linux-x86_64-3.5/slapdtest
    copying Lib/slapdtest/__init__.py -> build/lib.linux-x86_64-3.5/slapdtest
    copying Lib/slapdtest/_slapdtest.py -> build/lib.linux-x86_64-3.5/slapdtest
    running egg_info
    writing Lib/python_ldap.egg-info/PKG-INFO
    writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
    writing top-level names to Lib/python_ldap.egg-info/top_level.txt
    writing requirements to Lib/python_ldap.egg-info/requires.txt
    reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'Doc/.build'
    writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
    creating build/lib.linux-x86_64-3.5/slapdtest/certs
    copying Lib/slapdtest/certs/README -> build/lib.linux-x86_64-3.5/slapdtest/certs
    copying Lib/slapdtest/certs/ca.conf -> build/lib.linux-x86_64-3.5/slapdtest/certs
    copying Lib/slapdtest/certs/ca.pem -> build/lib.linux-x86_64-3.5/slapdtest/certs
    copying Lib/slapdtest/certs/client.conf -> build/lib.linux-x86_64-3.5/slapdtest/certs
    copying Lib/slapdtest/certs/client.key -> build/lib.linux-x86_64-3.5/slapdtest/certs
    copying Lib/slapdtest/certs/client.pem -> build/lib.linux-x86_64-3.5/slapdtest/certs
    copying Lib/slapdtest/certs/gencerts.sh -> build/lib.linux-x86_64-3.5/slapdtest/certs
    copying Lib/slapdtest/certs/gennssdb.sh -> build/lib.linux-x86_64-3.5/slapdtest/certs
    copying Lib/slapdtest/certs/server.conf -> build/lib.linux-x86_64-3.5/slapdtest/certs
    copying Lib/slapdtest/certs/server.key -> build/lib.linux-x86_64-3.5/slapdtest/certs
    copying Lib/slapdtest/certs/server.pem -> build/lib.linux-x86_64-3.5/slapdtest/certs
    running build_ext
    building '_ldap' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/Modules
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.3.1 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.5m -c Modules/LDAPObject.c -o build/temp.linux-x86_64-3.5/Modules/LDAPObject.o
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.3.1 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.5m -c Modules/berval.c -o build/temp.linux-x86_64-3.5/Modules/berval.o
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.3.1 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.5m -c Modules/common.c -o build/temp.linux-x86_64-3.5/Modules/common.o
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.3.1 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.5m -c Modules/constants.c -o build/temp.linux-x86_64-3.5/Modules/constants.o
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.3.1 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.5m -c Modules/functions.c -o build/temp.linux-x86_64-3.5/Modules/functions.o
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.3.1 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.5m -c Modules/ldapcontrol.c -o build/temp.linux-x86_64-3.5/Modules/ldapcontrol.o
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.3.1 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.5m -c Modules/ldapmodule.c -o build/temp.linux-x86_64-3.5/Modules/ldapmodule.o
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.3.1 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.5m -c Modules/message.c -o build/temp.linux-x86_64-3.5/Modules/message.o
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.3.1 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.5m -c Modules/options.c -o build/temp.linux-x86_64-3.5/Modules/options.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-3.5/Modules/LDAPObject.o build/temp.linux-x86_64-3.5/Modules/berval.o build/temp.linux-x86_64-3.5/Modules/common.o build/temp.linux-x86_64-3.5/Modules/constants.o build/temp.linux-x86_64-3.5/Modules/functions.o build/temp.linux-x86_64-3.5/Modules/ldapcontrol.o build/temp.linux-x86_64-3.5/Modules/ldapmodule.o build/temp.linux-x86_64-3.5/Modules/message.o build/temp.linux-x86_64-3.5/Modules/options.o -L/usr/lib -lldap_r -llber -o build/lib.linux-x86_64-3.5/_ldap.cpython-35m-x86_64-linux-gnu.so
    running install_lib
    creating /usr/lib/python3.5/site-packages
    creating /usr/lib/python3.5/site-packages/slapdtest
    copying build/lib.linux-x86_64-3.5/slapdtest/__init__.py -> /usr/lib/python3.5/site-packages/slapdtest
    copying build/lib.linux-x86_64-3.5/slapdtest/_slapdtest.py -> /usr/lib/python3.5/site-packages/slapdtest
    creating /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/slapdtest/certs/gennssdb.sh -> /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/slapdtest/certs/client.pem -> /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/slapdtest/certs/server.pem -> /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/slapdtest/certs/server.key -> /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/slapdtest/certs/ca.conf -> /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/slapdtest/certs/client.key -> /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/slapdtest/certs/server.conf -> /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/slapdtest/certs/client.conf -> /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/slapdtest/certs/ca.pem -> /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/slapdtest/certs/README -> /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/slapdtest/certs/gencerts.sh -> /usr/lib/python3.5/site-packages/slapdtest/certs
    copying build/lib.linux-x86_64-3.5/ldif.py -> /usr/lib/python3.5/site-packages
    copying build/lib.linux-x86_64-3.5/_ldap.cpython-35m-x86_64-linux-gnu.so -> /usr/lib/python3.5/site-packages
    creating /usr/lib/python3.5/site-packages/ldap
    creating /usr/lib/python3.5/site-packages/ldap/schema
    copying build/lib.linux-x86_64-3.5/ldap/schema/__init__.py -> /usr/lib/python3.5/site-packages/ldap/schema
    copying build/lib.linux-x86_64-3.5/ldap/schema/tokenizer.py -> /usr/lib/python3.5/site-packages/ldap/schema
    copying build/lib.linux-x86_64-3.5/ldap/schema/models.py -> /usr/lib/python3.5/site-packages/ldap/schema
    copying build/lib.linux-x86_64-3.5/ldap/schema/subentry.py -> /usr/lib/python3.5/site-packages/ldap/schema
    copying build/lib.linux-x86_64-3.5/ldap/modlist.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/resiter.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/__init__.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/cidict.py -> /usr/lib/python3.5/site-packages/ldap
    creating /usr/lib/python3.5/site-packages/ldap/extop
    copying build/lib.linux-x86_64-3.5/ldap/extop/passwd.py -> /usr/lib/python3.5/site-packages/ldap/extop
    copying build/lib.linux-x86_64-3.5/ldap/extop/dds.py -> /usr/lib/python3.5/site-packages/ldap/extop
    copying build/lib.linux-x86_64-3.5/ldap/extop/__init__.py -> /usr/lib/python3.5/site-packages/ldap/extop
    creating /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/__init__.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/simple.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/deref.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/readentry.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/sss.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/ppolicy.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/libldap.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/psearch.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/pwdpolicy.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/sessiontrack.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/vlv.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/openldap.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/controls/pagedresults.py -> /usr/lib/python3.5/site-packages/ldap/controls
    copying build/lib.linux-x86_64-3.5/ldap/pkginfo.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/compat.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/filter.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/dn.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/syncrepl.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/logger.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/constants.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/async.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/sasl.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/asyncsearch.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/functions.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldap/ldapobject.py -> /usr/lib/python3.5/site-packages/ldap
    copying build/lib.linux-x86_64-3.5/ldapurl.py -> /usr/lib/python3.5/site-packages
    byte-compiling /usr/lib/python3.5/site-packages/slapdtest/__init__.py to __init__.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/slapdtest/_slapdtest.py to _slapdtest.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldif.py to ldif.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/schema/__init__.py to __init__.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/schema/tokenizer.py to tokenizer.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/schema/models.py to models.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/schema/subentry.py to subentry.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/modlist.py to modlist.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/resiter.py to resiter.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/__init__.py to __init__.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/cidict.py to cidict.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/extop/passwd.py to passwd.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/extop/dds.py to dds.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/extop/__init__.py to __init__.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/__init__.py to __init__.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/simple.py to simple.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/deref.py to deref.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/readentry.py to readentry.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/sss.py to sss.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/ppolicy.py to ppolicy.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/libldap.py to libldap.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/psearch.py to psearch.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/pwdpolicy.py to pwdpolicy.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/sessiontrack.py to sessiontrack.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/vlv.py to vlv.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/openldap.py to openldap.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/controls/pagedresults.py to pagedresults.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/pkginfo.py to pkginfo.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/compat.py to compat.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/filter.py to filter.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/dn.py to dn.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/syncrepl.py to syncrepl.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/logger.py to logger.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/constants.py to constants.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/async.py to async.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/sasl.py to sasl.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/asyncsearch.py to asyncsearch.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/functions.py to functions.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldap/ldapobject.py to ldapobject.cpython-35.pyc
    byte-compiling /usr/lib/python3.5/site-packages/ldapurl.py to ldapurl.cpython-35.pyc
    writing byte-compilation script '/tmp/tmpcnabwrxj.py'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-lvt1ed69/python-ldap/setup.py", line 173, in <module>
        test_suite = 'Tests',
      File "/usr/local/lib/python3.5/dist-packages/setuptools/__init__.py", line 164, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/lib/python3.5/dist-packages/setuptools/_distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/lib/python3.5/dist-packages/setuptools/_distutils/dist.py", line 967, in run_commands
        self.run_command(cmd)
      File "/usr/local/lib/python3.5/dist-packages/setuptools/_distutils/dist.py", line 986, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python3.5/dist-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/local/lib/python3.5/dist-packages/setuptools/_distutils/command/install.py", line 578, in run
        self.run_command(cmd_name)
      File "/usr/local/lib/python3.5/dist-packages/setuptools/_distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/lib/python3.5/dist-packages/setuptools/_distutils/dist.py", line 986, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python3.5/dist-packages/setuptools/command/install_lib.py", line 15, in run
        self.byte_compile(outfiles)
      File "/usr/local/lib/python3.5/dist-packages/setuptools/_distutils/command/install_lib.py", line 138, in byte_compile
        verbose=self.verbose, dry_run=self.dry_run)
      File "/usr/local/lib/python3.5/dist-packages/setuptools/_distutils/util.py", line 423, in byte_compile
        cmd.extend(subprocess._optim_args_from_interpreter_flags())
    AttributeError: module 'subprocess' has no attribute '_optim_args_from_interpreter_flags'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lvt1ed69/python-ldap/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lvt1ed69/python-ldap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-xk43i3o2/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.5/python-ldap Check the logs for full command output.
WARNING: You are using pip version 20.0.1; however, version 20.1.1 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
ERROR: Service 'cvat' failed to build: The command '/bin/sh -c python3 -m pip install --no-cache-dir -r /tmp/requirements/${DJANGO_CONFIGURATION}.txt' returned a non-zero code: 1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
tobymccleancommented, Jul 3, 2020

Was able to fix by fixing setuptools to version 47.3.2 in the Dockerfile.

1reaction
tobymccleancommented, Jul 6, 2020

Hello @tobymcclean I have the same exact issue right now. Did you set the version of setuptools in Dockerfile manually? like this on line 59 of Dockerfile which is in Root CVAT directory

 python3 -m pip install --no-cache-dir -U pip==20.0.1 setuptools==47.3.2 && \

Edit:- It’s working. Thank You

I set it in the Dockerfile manually like you show here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error codes for the Amazon EC2 API - AWS Documentation
The specified AMI has been deregistered and is no longer available, or is not in a state from which you can launch an...
Read more >
Troubleshooting Patch Manager - AWS Documentation
Use the following information to help you troubleshoot problems with Patch Manager, a capability of AWS Systems Manager. Topics. Issue: Unexpected patch ...
Read more >
AWS::EC2::Instance - AWS CloudFormation
The old and new instances cannot have the same private IP address. Required: No. Type: String. Update requires: Replacement. PropagateTagsToVolumeOnCreation.
Read more >
ModifyInstanceAttribute - Amazon Elastic Compute Cloud
Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.
Read more >
Attribute-based instance type selection for EC2 Fleet
When you create an EC2 Fleet, you must specify one or more instance types for ... instance types with the specified instance attributes,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found