Skip to content

Revive it on Ubuntu 24.04 #4

@cirosantilli

Description

@cirosantilli

On Ubuntu 24.04, with Poetry 1.8.2:

git clone https://github.com/hay/facetool
cd facetool
git checkout 3e296f7b177ebbcceb4b25f12f3327c3f6612f14
sudo apt install python3-poetry
poetry install

blows up:

Installing dependencies from lock file                                                                                                                                                        
                                                                                                                                                                                              
Could not parse version constraint: >=2011k

And then:

rm poetry.lock
poetry install

blows up:

Package operations: 45 installs, 0 updates, 0 removals                                                                                                                                        
                                                                                                                                                                                              
  - Installing numpy (1.19.5): Failed                                                                                                                                                         
                                                                                                                                                                                              
  ChefBuildError                                                                                                                                                                              
                                                                                                                                                                                              
  Backend 'setuptools.build_meta:__legacy__' is not available.                                                                                                                                
                                                                                                                                                                                              
  Traceback (most recent call last):                                                                                                                                                          
    File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend                                                                              
      obj = import_module(mod_path)                                                                                                                                                           
            ^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                           
    File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module                                                                                                               
      return _bootstrap._gcd_import(name[level:], package, level)                                                                                                                             
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                             
    File "<frozen importlib._bootstrap>", line 1387, in _gcd_import                                                                                                                               File "<frozen importlib._bootstrap>", line 1360, in _find_and_load                                                                                                                        
    File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked                                                                                                               
    File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed                                                                                                              
    File "<frozen importlib._bootstrap>", line 1387, in _gcd_import                                                                                                                           
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load                                                                                                                        
    File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked                                                                                                               
    File "<frozen importlib._bootstrap>", line 935, in _load_unlocked                                                                                                                         
    File "<frozen importlib._bootstrap_external>", line 995, in exec_module                    
    File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed                                                                                                              
    File "/tmp/tmp6ehm3squ/.venv/lib/python3.12/site-packages/setuptools/__init__.py", line 9, in <module>
      import distutils.core                                                                                                                                                                   
  ModuleNotFoundError: No module named 'distutils'                                                                                                                                            
                                                                                                                                                                                              
                                                                                               
  at /usr/lib/python3/dist-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

It is likely that a dependency refresh would fix things, packages have become incompatible. Sad to see.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions