bazel install fails at python-ldap setup on 10.12.6

238 views
Skip to first unread message

Matthew Nickerson

unread,
Dec 20, 2017, 7:02:24 PM12/20/17
to cauliflowervest-discuss
Running into an error with the initial install with Bazel. 

 bazel test cauliflowervest:all_smoke_tests
ERROR: error loading package '': Encountered error while reading extension file 'requirements.bzl': no such package '@pip_deps//': pip_import failed: Collecting python-ldap==2.4.44 (from -r /cauliflowervest/third_party/requirements.txt (line 1))
  Using cached python-ldap-2.4.44.tar.gz
Collecting setuptools==18.5 (from -r /cauliflowervest/third_party/requirements.txt (line 3))
  Using cached setuptools-18.5-py2.py3-none-any.whl
  Saved ./setuptools-18.5-py2.py3-none-any.whl
Skipping setuptools, due to already being wheel.
Building wheels for collected packages: python-ldap
  Running setup.py bdist_wheel for python-ldap: started
  Running setup.py bdist_wheel for python-ldap: finished with status 'error'
  Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/cn/9cgj48195wg_tbnn10frpbv40000gn/T/pip-build-ire_oZ/python-ldap/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/cn/9cgj48195wg_tbnn10frpbv40000gn/T/tmpQRF7Krpip-wheel-:
  defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
  extra_compile_args:
  extra_objects:
  include_dirs: /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl
  library_dirs: /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64
  libs: ldap_r
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Running setup.py clean for python-ldap
Failed to build python-ldap
 (  Failed building wheel for python-ldap
ERROR: Failed to build one or more wheels
)
ERROR: error loading package '': Encountered error while reading extension file 'requirements.bzl': no such package '@pip_deps//': pip_import failed: Collecting python-ldap==2.4.44 (from -r /cauliflowervest/third_party/requirements.txt (line 1))
  Using cached python-ldap-2.4.44.tar.gz
Collecting setuptools==18.5 (from -r /cauliflowervest/third_party/requirements.txt (line 3))
  Using cached setuptools-18.5-py2.py3-none-any.whl
  Saved ./setuptools-18.5-py2.py3-none-any.whl
Skipping setuptools, due to already being wheel.
Building wheels for collected packages: python-ldap
  Running setup.py bdist_wheel for python-ldap: started
  Running setup.py bdist_wheel for python-ldap: finished with status 'error'
  Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/cn/9cgj48195wg_tbnn10frpbv40000gn/T/pip-build-ire_oZ/python-ldap/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/cn/9cgj48195wg_tbnn10frpbv40000gn/T/tmpQRF7Krpip-wheel-:
  defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
  extra_compile_args:
  extra_objects:
  include_dirs: /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl
  library_dirs: /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64
  libs: ldap_r
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Running setup.py clean for python-ldap
Failed to build python-ldap
 (  Failed building wheel for python-ldap
ERROR: Failed to build one or more wheels
)
INFO: Elapsed time: 2.528s


The install version from pip is 2.5.2, is there maybe a way to get bazel to look for the version pip installs or some other work around for this?

Maxim Ermilov

unread,
Dec 21, 2017, 6:41:22 PM12/21/17
to cauliflower...@googlegroups.com
 error: invalid command 'bdist_wheel'

Try installing latest pip from homebrew

_____
Maxim

--
You received this message because you are subscribed to the Google Groups "cauliflowervest-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cauliflowervest-discuss+unsub...@googlegroups.com.
To post to this group, send email to cauliflowervest-discuss@googlegroups.com.
Visit this group at https://groups.google.com/group/cauliflowervest-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages