gpt-engineer-org / gpt-engineer

Platform to experiment with the AI Software Engineer. Terminal based. NOTE: Very different from https://gptengineer.app
MIT License
52.51k stars 6.82k forks source link

TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero' on pip install #1201

Open jbobbylopez opened 3 months ago

jbobbylopez commented 3 months ago

Policy and info

Expected Behavior

Unknown. First time user. Just trying this out.

Current Behavior

➤ pip install gpt-engineer                                                                                                                                                                   
Defaulting to user installation because normal site-packages is not writeable                                                                                                                
Collecting gpt-engineer                                                                                                                                                                      
  Downloading gpt_engineer-0.3.1.tar.gz (60 kB)                                                                                                                                              
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.8/60.8 KB 743.8 kB/s eta 0:00:00                                                                                                            
  Installing build dependencies ... done                                                                                                                                                     
  Getting requirements to build wheel ... done                                                                                                                                               
  Preparing metadata (pyproject.toml) ... done                                                                                                                                               
Collecting rudder-sdk-python>=2.0.2                                                                                                                                                          
  Downloading rudder_sdk_python-2.1.3-py2.py3-none-any.whl (19 kB)                                                                                                                           
Collecting black==23.3.0                                                                                                                                                                     
  Downloading black-23.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB)                                                                                               
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 1.5 MB/s eta 0:00:00                                                                                                                
Collecting datasets<3.0.0,>=2.17.1                                                                                                                                                           
  Downloading datasets-2.21.0-py3-none-any.whl (527 kB)                                                                                                                                      
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 527.3/527.3 KB 1.5 MB/s eta 0:00:00                                                                                                            
Collecting openai<2.0,>=1.0                                                                                                                                                                  
  Downloading openai-1.42.0-py3-none-any.whl (362 kB)                                                                                                                                        
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 362.9/362.9 KB 1.5 MB/s eta 0:00:00                                                                                                            
Collecting pillow<11.0.0,>=10.2.0                                                                                                                                                            
  Downloading pillow-10.4.0-cp310-cp310-manylinux_2_28_x86_64.whl (4.5 MB)                                                                                                                   
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 1.5 MB/s eta 0:00:00                                                                                                                
Collecting toml>=0.10.2                                                                                                                                                                      
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)                                                                                                                                       
Requirement already satisfied: regex<2024.0.0,>=2023.12.25 in /home/jbl/.local/lib/python3.10/site-packages (from gpt-engineer) (2023.12.25)                                                 
Collecting langchain_openai                                                                                                                                                                  
  Downloading langchain_openai-0.1.22-py3-none-any.whl (51 kB)                                                                                                                               
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.0/52.0 KB 1.8 MB/s eta 0:00:00                                                                                                              
Collecting dataclasses-json==0.5.7                                                                                                                                                           
  Downloading dataclasses_json-0.5.7-py3-none-any.whl (25 kB)                                                                                                                                
Requirement already satisfied: typer>=0.3.2 in /home/jbl/.local/lib/python3.10/site-packages (from gpt-engineer) (0.9.0)                                                                     
Collecting langchain-community<0.3.0,>=0.2.0                                                                                                                                                 
  Downloading langchain_community-0.2.12-py3-none-any.whl (2.3 MB)                                                                                                                           
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 1.5 MB/s eta 0:00:00                                                                                                                
Requirement already satisfied: tiktoken>=0.0.4 in /home/jbl/.local/lib/python3.10/site-packages (from gpt-engineer) (0.5.2)                                                                  
Collecting python-dotenv>=0.21.0                                                                                                                                                             
  Downloading python_dotenv-1.0.1-py3-none-any.whl (19 kB)                                                                                                                                   
Collecting pyperclip<2.0.0,>=1.8.2                                                                                                                                                           
  Downloading pyperclip-1.9.0.tar.gz (20 kB)                                                                                                                                                 
  Preparing metadata (setup.py) ... error                                                                                                                                                    
  error: subprocess-exited-with-error                                                                                                                                                        

  × python setup.py egg_info did not run successfully.                                                                                                                                       
  │ exit code: 1                                                                                                                                                                             
  ╰─> [43 lines of output]                                                                                                                                                                   
      /home/jbl/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'test_suite'                                                
        warnings.warn(msg)                                                                                                                                                                   
      running egg_info                                                                                                                                                                       
      creating /tmp/pip-pip-egg-info-xeeuhoq1/pyperclip.egg-info                                                                                                                             
      writing /tmp/pip-pip-egg-info-xeeuhoq1/pyperclip.egg-info/PKG-INFO                                                                                                                     
      writing dependency_links to /tmp/pip-pip-egg-info-xeeuhoq1/pyperclip.egg-info/dependency_links.txt
      writing top-level names to /tmp/pip-pip-egg-info-xeeuhoq1/pyperclip.egg-info/top_level.txt
      writing manifest file '/tmp/pip-pip-egg-info-xeeuhoq1/pyperclip.egg-info/SOURCES.txt'   
      reading manifest file '/tmp/pip-pip-egg-info-xeeuhoq1/pyperclip.egg-info/SOURCES.txt'                                                                                                  
      reading manifest template 'MANIFEST.in'                                                 
      warning: no files found matching '*.py' under directory 'pyperclip'                     
      adding license file 'LICENSE.txt'                                                                                                                                                      
      adding license file 'AUTHORS.txt'                                                                                                                                                      
      Traceback (most recent call last):                                                                                                                                                     
        File "<string>", line 2, in <module>                                                                                                                                                 
        File "<pip-setuptools-caller>", line 34, in <module>                                                                                                                                 
        File "/tmp/pip-install-0jh6nzkg/pyperclip_229729fe3256432b9e1c403d2913a240/setup.py", line 14, in <module>                                                                           
          setup(                                                                                                                                                                             
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 108, in setup                                                                                      
          return distutils.core.setup(**attrs)                                                                                                                                               
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 184, in setup                                                                               
          return run_commands(dist)                                                                                                                                                          
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 200, in run_commands                                                                        
          dist.run_commands()                                                                                                                                                                
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 970, in run_commands                                                                        
          self.run_command(cmd)                                                                                                                                                              
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/dist.py", line 945, in run_command                                                                                    
          super().run_command(command)                                                                                                                                                       
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 989, in run_command                                                                         
          cmd_obj.run()                                                                                                                                                                      
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 310, in run                                                                                
          self.find_sources()                                                                                                                                                                
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 318, in find_sources                                                                       
          mm.run()                                                                                                                                                                           
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 544, in run                                                                                
          self.prune_file_list()                                                                                                                                                             
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 610, in prune_file_list                                                                    
          base_dir = self.distribution.get_fullname()                                                                                                                                        
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 266, in get_fullname                                                                         
          return _distribution_fullname(self.get_name(), self.get_version())                                                                                                                 
        File "/home/jbl/.local/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 284, in _distribution_fullname                                                               
          canonicalize_version(version, strip_trailing_zero=False),                                                                                                                          
      TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
      [end of output]                                                                         

  note: This error originates from a subprocess, and is likely not a problem with pip.        
error: metadata-generation-failed                                                             

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Failure Information

OS: Kubuntu 22.04.4 LTS x86_64 Kernel: 5.15.0-118-generic Packages: 4169 (dpkg), 38 (snap) Shell: bash 5.1.16 Terminal: tmux CPU: Intel i7-7700 (8) @ 4.200GHz GPU: Intel HD Graphics 630 GPU: NVIDIA GeForce GTX 1050 Ti Memory: 11687MiB / 64155MiB

Failure Logs

n/a

If your project includes a debug_log_file.txt, kindly upload it from your_project/.gpteng/memory/ directory. This file encompasses all the necessary logs. Should the file prove extensive, consider utilizing GitHub's "add files" functionality.

System Information

Please copy and paste the output of the gpte --sysinfo command as part of your bug report.

(Hasn't been sucessfully installed yet)

Installation Method

Please specify whether you installed GPT-Engineer using pip install or by building the repository.

pip install gpt-engineer

k1lgor commented 1 month ago

@jtoberling try upgrading packaging > 22 version