Skip to content

--no-binary :all: -> ModuleNotFoundError: No module named 'poetry_core' #458

@altendky

Description

@altendky
  • I am on the latest Pendulum version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • OS version and name: Ubuntu 19.10 eoan
  • Pendulum version: 2.1.0

Issue

This is a distinctly different error but it strikes me as likely a good thing to consider while looking at #454. In short, installing with --no-binary :all: doesn't work.

First the working installation allowing for wheels.

altendky@p1:~/repos/poetry/t$ rm -rf venv; virtualenv -p python3.8 venv; venv/bin/pip install --no-cache-dir --upgrade pip setuptools; venv/bin/pip install --no-cache-dir pendulum
created virtual environment CPython3.8.2.final.0-64 in 104ms
  creator CPython3Posix(dest=/home/altendky/repos/poetry/t/venv, clear=False, global=False)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/altendky/.local/share/virtualenv/seed-app-data/v1)
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Requirement already up-to-date: pip in ./venv/lib/python3.8/site-packages (20.0.2)
Collecting setuptools
  Downloading setuptools-46.1.3-py3-none-any.whl (582 kB)
     |████████████████████████████████| 582 kB 1.1 MB/s 
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 45.2.0
    Uninstalling setuptools-45.2.0:
      Successfully uninstalled setuptools-45.2.0
Successfully installed setuptools-46.1.3
Collecting pendulum
  Downloading pendulum-2.1.0-cp38-cp38-manylinux1_x86_64.whl (153 kB)
     |████████████████████████████████| 153 kB 1.2 MB/s 
Collecting python-dateutil<3.0,>=2.6
  Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
     |████████████████████████████████| 227 kB 22.3 MB/s 
Collecting pytzdata>=2018.3
  Downloading pytzdata-2019.3-py2.py3-none-any.whl (489 kB)
     |████████████████████████████████| 489 kB 12.0 MB/s 
Collecting six>=1.5
  Downloading six-1.14.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: six, python-dateutil, pytzdata, pendulum
Successfully installed pendulum-2.1.0 python-dateutil-2.8.1 pytzdata-2019.3 six-1.14.0
altendky@p1:~/repos/poetry/t$ rm -rf venv; virtualenv -p python3.8 venv; venv/bin/pip install --no-cache-dir --upgrade pip setuptools; venv/bin/pip install --no-cache-dir --no-binary :all: pendulum
created virtual environment CPython3.8.2.final.0-64 in 106ms
  creator CPython3Posix(dest=/home/altendky/repos/poetry/t/venv, clear=False, global=False)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/altendky/.local/share/virtualenv/seed-app-data/v1)
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Requirement already up-to-date: pip in ./venv/lib/python3.8/site-packages (20.0.2)
Collecting setuptools
  Downloading setuptools-46.1.3-py3-none-any.whl (582 kB)
     |████████████████████████████████| 582 kB 1.1 MB/s 
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 45.2.0
    Uninstalling setuptools-45.2.0:
      Successfully uninstalled setuptools-45.2.0
Successfully installed setuptools-46.1.3
Collecting pendulum
  Downloading pendulum-2.1.0.tar.gz (80 kB)
     |████████████████████████████████| 80 kB 1.2 MB/s 
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 2:
   command: /home/altendky/repos/poetry/t/venv/bin/python

Now without wheels (--no-binary :all:) we fail with ModuleNotFoundError: No module named 'poetry_core'.

/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-b3s0g3l7/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'poetry>=1.0.0b1'
       cwd: None
  Complete output (70 lines):
  Collecting poetry>=1.0.0b1
    Using cached poetry-1.1.0a1.tar.gz (107 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Collecting pexpect<5.0.0,>=4.7.0
    Using cached pexpect-4.8.0.tar.gz (157 kB)
  Collecting html5lib<2.0,>=1.0
    Using cached html5lib-1.0.1.tar.gz (252 kB)
  Collecting clikit<0.6.0,>=0.5.1
    Using cached clikit-0.5.1.tar.gz (54 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Collecting cachecontrol[filecache]<0.13.0,>=0.12.4
    Using cached CacheControl-0.12.6.tar.gz (14 kB)
  Collecting cleo<0.9.0,>=0.8.0
    Using cached cleo-0.8.0.tar.gz (19 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
  ERROR: Exception:
  Traceback (most recent call last):
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 186, in _main
      status = self.run(options, args)
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 331, in run
      resolver.resolve(requirement_set)
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
      discovered_reqs.extend(self._resolve_one(requirement_set, req))
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
      abstract_dist = self._get_abstract_dist_for(req_to_install)
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for
      abstract_dist = self.preparer.prepare_linked_requirement(req)
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 515, in prepare_linked_requirement
      abstract_dist = _get_prepared_distribution(
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution
      abstract_dist.prepare_distribution_metadata(finder, build_isolation)
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 38, in prepare_distribution_metadata
      self._setup_isolation(finder)
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 96, in _setup_isolation
      reqs = backend.get_requires_for_build_wheel()
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_vendor/pep517/wrappers.py", line 151, in get_requires_for_build_wheel
      return self._call_hook('get_requires_for_build_wheel', {
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_vendor/pep517/wrappers.py", line 255, in _call_hook
      raise BackendUnavailable(data.get('traceback', ''))
  pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
    File "/home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 63, in _build_backend
      obj = import_module(mod_path)
    File "/home/altendky/.pyenv/versions/3.8.2/lib/python3.8/importlib/__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
    File "<frozen importlib._bootstrap>", line 991, in _find_and_load
    File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
    File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
    File "<frozen importlib._bootstrap>", line 991, in _find_and_load
    File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
    File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
    File "<frozen importlib._bootstrap>", line 991, in _find_and_load
    File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
  ModuleNotFoundError: No module named 'poetry_core'
  
  ----------------------------------------
ERROR: Command errored out with exit status 2: /home/altendky/repos/poetry/t/venv/bin/python /home/altendky/repos/poetry/t/venv/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-b3s0g3l7/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'poetry>=1.0.0b1' Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions