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.

Trying to do a build with`--no-binary:all:` fails

See original GitHub issue
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: MacOS
  • Poetry version: N/A
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

Attempting to install poetry with the --no-binary flag like so:
pip install --no-binary=:all: poetry fails with the following error:

(The verbose output of the command is too noisy so has been elided. However, this should be reproducible with any system.)

pip install --no-binary=:all: poetry
Looking in indexes: https://artprod.dev.bloomberg.com/artifactory/api/pypi/bloomberg-pypi-dpkg/simple
Collecting poetry
  Downloading https://artprod.dev.bloomberg.com/artifactory/api/pypi/bloomberg-pypi-dpkg/packages/packages/eb/98/a598bb2663e0e43557a99a243ebd21b27b1fc07d2c146b2554aa45ace5dc/poetry-1.0.3.tar.gz (164 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 164 kB 722 kB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/gpikale1/bbg/PyInf/bmq/venv/bin/python3.7 /Users/gpikale1/bbg/PyInf/bmq/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/ys/sr9drq4d49301cq_np_1nks40000gp/T/tmph9dkx9b0
       cwd: /private/var/folders/ys/sr9drq4d49301cq_np_1nks40000gp/T/pip-install-lwxe6w0y/poetry
  Complete output (36 lines):
  Traceback (most recent call last):
    File "/Users/gpikale1/bbg/PyInf/bmq/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/Users/gpikale1/bbg/PyInf/bmq/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/Users/gpikale1/bbg/PyInf/bmq/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/private/var/folders/ys/sr9drq4d49301cq_np_1nks40000gp/T/pip-build-env-wyn0exvh/overlay/lib/python3.7/site-packages/intreehooks.py", line 53, in get_requires_for_build_wheel
      return self._backend.get_requires_for_build_sdist(config_settings)
    File "/private/var/folders/ys/sr9drq4d49301cq_np_1nks40000gp/T/pip-build-env-wyn0exvh/overlay/lib/python3.7/site-packages/intreehooks.py", line 38, in _backend
      obj = self._module_from_dir(modname)
    File "/private/var/folders/ys/sr9drq4d49301cq_np_1nks40000gp/T/pip-build-env-wyn0exvh/overlay/lib/python3.7/site-packages/intreehooks.py", line 25, in _module_from_dir
      mod = importlib.import_module(modname)
    File "/Users/gpikale1/bbg/PyInf/bmq/venv/lib/python3.7/importlib/__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
    File "<frozen importlib._bootstrap>", line 983, in _find_and_load
    File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
    File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
    File "<frozen importlib._bootstrap>", line 983, in _find_and_load
    File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 726, in exec_module
    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
    File "/private/var/folders/ys/sr9drq4d49301cq_np_1nks40000gp/T/pip-install-lwxe6w0y/poetry/poetry/masonry/__init__.py", line 10, in <module>
      from .builder import Builder
    File "/private/var/folders/ys/sr9drq4d49301cq_np_1nks40000gp/T/pip-install-lwxe6w0y/poetry/poetry/masonry/builder.py", line 1, in <module>
      from .builders.complete import CompleteBuilder
    File "/private/var/folders/ys/sr9drq4d49301cq_np_1nks40000gp/T/pip-install-lwxe6w0y/poetry/poetry/masonry/builders/__init__.py", line 1, in <module>
      from .complete import CompleteBuilder
    File "/private/var/folders/ys/sr9drq4d49301cq_np_1nks40000gp/T/pip-install-lwxe6w0y/poetry/poetry/masonry/builders/complete.py", line 6, in <module>
      from poetry.factory import Factory
    File "/private/var/folders/ys/sr9drq4d49301cq_np_1nks40000gp/T/pip-install-lwxe6w0y/poetry/poetry/factory.py", line 10, in <module>
      from clikit.api.io.io import IO
  ModuleNotFoundError: No module named 'clikit'
  ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/gpikale1/bbg/PyInf/bmq/venv/bin/python3.7 /Users/gpikale1/bbg/PyInf/bmq/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/ys/sr9drq4d49301cq_np_1nks40000gp/T/tmph9dkx9b0 Check the logs for full command output.

However, installing clikit with the --no-binary=:all: flag results in an error installing poetry implying a cyclic build dependency.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:16
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
preston-hfcommented, Jun 11, 2020

Anyone found a workaround?

2reactions
amyreesecommented, May 21, 2020

Is there any plan to resolve this? We also build all of our packages from source, and this breaks our ability to build anything that depends on or uses Poetry as its builder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 tips for debugging build failures - Jimus' Blog
Is there any tips on troubleshooting build failure, specific quick ... Trying to diagnose a problem can be stressful and as engineers we...
Read more >
How to find the reason for a failed Build without any error or ...
However building the .csproj using MsBuild is successful. Can't figure out what should I try in Visual Studio, to resolve / diagnose the...
Read more >
Build has failed!!! - Flexera Community
While building a project the build is failing almost at the end After this sequence of steps Build process Finished. Build.
Read more >
Fix a build error
See Build a rulebase for more information. To fix a build error, select the error in the Error List and double-click it. If...
Read more >
Build OK, Rebuild fails, but why? - MSDN
I'm trying to document and understand a project that I inherited. The solution contains 3 projects. 2 projects I can build/rebuild just fineΒ ......
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