Skip to content

Update install #8

@cmbant

Description

@cmbant

Below is the trace I get doing a default install on py12. It does work if I use pip install --use-pep517. You may need to update to .toml etc system (not sure what the error actually is).


[al323@artemis-login-0 DR6-ACT-lite]$ pip install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///mnt/pact/al323/git/DR6-ACT-lite
  Preparing metadata (setup.py) ... done
Collecting sacc>=0.12.0 (from ACT-DR6-CMBonly==1.0.0)
  Using cached sacc-0.16.tar.gz (364 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [38 lines of output]
      /mnt/shared/easybuild/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!

              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************

      !!
        dist.fetch_build_eggs(dist.setup_requires)
      /mnt/shared/easybuild/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/setuptools/installer.py:44: UserWarning: Module setuptools_scm was already imported from /mnt/shared/easybuild/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/setuptools_scm/__init__.py, but /tmp/pip-install-3gcfmyt1/sacc_717ca795e03c4ca384160475e29bbc0a/.eggs/setuptools_scm-6.4.2-py3.12.egg is being added to sys.path
        pkg_resources.working_set.add(dist, replace=True)
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-3gcfmyt1/sacc_717ca795e03c4ca384160475e29bbc0a/setup.py", line 15, in <module>
          setup(name="sacc",
          ^^^^^^^^^^^^^^^^^^
        File "/mnt/shared/easybuild/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/mnt/shared/easybuild/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 146, in setup
          _setup_distribution = dist = klass(attrs)
                                       ^^^^^^^^^^^^
        File "/mnt/shared/easybuild/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/setuptools/dist.py", line 307, in __init__
          _Distribution.__init__(self, dist_attrs)
        File "/mnt/shared/easybuild/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 284, in __init__
          self.finalize_options()
        File "/mnt/shared/easybuild/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/setuptools/dist.py", line 658, in finalize_options
          for ep in sorted(loaded, key=by_order):
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/mnt/shared/easybuild/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/setuptools/dist.py", line 657, in <lambda>
          loaded = map(lambda e: e.load(), filtered)
                                 ^^^^^^^^
        File "/mnt/shared/easybuild/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/importlib/metadata/__init__.py", line 207, in load
          return functools.reduce(getattr, attrs, module)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'setuptools_scm.integration' has no attribute 'infer_version'
      [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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions