Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revive it on Ubuntu 24.04 #4

Open
cirosantilli opened this issue Aug 28, 2024 · 0 comments
Open

Revive it on Ubuntu 24.04 #4

cirosantilli opened this issue Aug 28, 2024 · 0 comments

Comments

@cirosantilli
Copy link

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.

@github-staff github-staff deleted a comment from ViniciusSCG Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@cirosantilli and others