Skip to content

[Installation] python setup.py egg_info did not run successfully #179

@Taha-Bahadori

Description

@Taha-Bahadori

I am trying to install pycox via pip:

$ pip3 install pycox                                                                                                                                    
Defaulting to user installation because normal site-packages is not writeable                                                                                                                         
Collecting pycox                                                                                                                                                                                      
  Using cached pycox-0.2.3-py3-none-any.whl.metadata (1.5 kB)                                                                                                                                         
Collecting torchtuples>=0.2.0 (from pycox)                                                                                                                                                            
  Using cached torchtuples-0.2.2-py3-none-any.whl.metadata (3.8 kB)                                                                                                                                   
Collecting feather-format>=0.4.0 (from pycox)                                                                                                                                                         
  Using cached feather-format-0.4.1.tar.gz (3.2 kB)                                                                                                                                                   
  Preparing metadata (setup.py) ... error                                                                                                                                                             
  error: subprocess-exited-with-error                                                                                                                                                                 
                                                                                                                                                                                                      
  × python setup.py egg_info did not run successfully.                                                                                                                                                
  │ exit code: 1                                                                                                                                                                                      
  ╰─> [47 lines of output]                                                                                                                                                                            
      running egg_info                                                                                                                                                                                
      creating /tmp/pip-pip-egg-info-yfr_qufy/feather_format.egg-info                                                                                                                                 
      writing /tmp/pip-pip-egg-info-yfr_qufy/feather_format.egg-info/PKG-INFO                                                                                                                         
      writing dependency_links to /tmp/pip-pip-egg-info-yfr_qufy/feather_format.egg-info/dependency_links.txt
      writing requirements to /tmp/pip-pip-egg-info-yfr_qufy/feather_format.egg-info/requires.txt
      writing top-level names to /tmp/pip-pip-egg-info-yfr_qufy/feather_format.egg-info/top_level.txt
      writing manifest file '/tmp/pip-pip-egg-info-yfr_qufy/feather_format.egg-info/SOURCES.txt'
      reading manifest file '/tmp/pip-pip-egg-info-yfr_qufy/feather_format.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '../LICENSE.txt'
      warning: no directories found matching 'src'
      warning: no previously-included files matching '*.so' found anywhere in distribution
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '*~' found anywhere in distribution
      warning: no previously-included files matching '#*' found anywhere in distribution
      warning: no previously-included files matching '.git*' found anywhere in distribution
      warning: no previously-included files matching '.DS_Store' found anywhere in distribution
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-o0doxadx/feather-format_f265bea1dd4c4496b775da30da5ca70c/setup.py", line 66, in <module>
          setup(
        File "/usr/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
        File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 184, in setup
          return run_commands(dist)
        File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 200, in run_commands
          dist.run_commands()
        File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 970, in run_commands
          self.run_command(cmd)
        File "/usr/local/lib/python3.10/dist-packages/setuptools/dist.py", line 945, in run_command 
          super().run_command(command)
        File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 989, in run_command
          cmd_obj.run()
        File "/usr/local/lib/python3.10/dist-packages/setuptools/command/egg_info.py", line 310, in run
          self.find_sources()
        File "/usr/local/lib/python3.10/dist-packages/setuptools/command/egg_info.py", line 318, in find_sources
          mm.run()
        File "/usr/local/lib/python3.10/dist-packages/setuptools/command/egg_info.py", line 544, in run
          self.prune_file_list()
        File "/usr/local/lib/python3.10/dist-packages/setuptools/command/egg_info.py", line 610, in prune_file_list
          base_dir = self.distribution.get_fullname()
        File "/usr/local/lib/python3.10/dist-packages/setuptools/_core_metadata.py", line 266, in get_fullname
          return _distribution_fullname(self.get_name(), self.get_version())
        File "/usr/local/lib/python3.10/dist-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.

The system info is:

Python 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] on linux
Ubuntu 22.04.4 LTS

Can you help me resolve this issue?

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