Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Failure of make init #75

Open
simenkva opened this issue Mar 22, 2024 · 0 comments
Open

Failure of make init #75

simenkva opened this issue Mar 22, 2024 · 0 comments
Labels

Comments

@simenkva
Copy link

Summary

On a fresh conda virtual environment, with glyph installed using pip install pyglyph, cloning the repos and running make init as per documentation instructions fail

Steps to reproduce

  • conda create -n glyph and conda activate glyph
  • conda install pip, pip install pyglyph
  • git clone https://github.com/Ambrosys/glyph
  • cd glyph
  • make init

Environment

What is the current bug behavior?

Installation script fails with error message:

Obtaining file:///Users/simenkva/Code/glyph_testing/glyph
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... error
  error: subprocess-exited-with-error

  × Getting requirements to build editable did not run successfully.
  │ exit code: 1
  ╰─> [34 lines of output]
      /Users/simenkva/Code/glyph_testing/glyph/versioneer.py:423: SyntaxWarning: invalid escape sequence '\s'
        LONG_VERSION_PY['git'] = '''
      Traceback (most recent call last):
        File "/Users/simenkva/anaconda3/envs/glyph/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/simenkva/anaconda3/envs/glyph/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/simenkva/anaconda3/envs/glyph/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 132, in get_requires_for_build_editable
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/qc/b2y8zg713_x554g8ykkcbcbh0000gp/T/pip-build-env-dy00n4jd/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 448, in get_requires_for_build_editable
          return self.get_requires_for_build_wheel(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/qc/b2y8zg713_x554g8ykkcbcbh0000gp/T/pip-build-env-dy00n4jd/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/qc/b2y8zg713_x554g8ykkcbcbh0000gp/T/pip-build-env-dy00n4jd/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/qc/b2y8zg713_x554g8ykkcbcbh0000gp/T/pip-build-env-dy00n4jd/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 487, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/private/var/folders/qc/b2y8zg713_x554g8ykkcbcbh0000gp/T/pip-build-env-dy00n4jd/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 29, in <module>
        File "/Users/simenkva/Code/glyph_testing/glyph/versioneer.py", line 1483, in get_version
          return get_versions()["version"]
                 ^^^^^^^^^^^^^^
        File "/Users/simenkva/Code/glyph_testing/glyph/versioneer.py", line 1415, in get_versions
          cfg = get_config_from_root(root)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/simenkva/Code/glyph_testing/glyph/versioneer.py", line 344, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      [end of output]

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

× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
make: *** [init] Error 1

Possible fixes

It seems the installation script uses a deprecated function from configparser.

@simenkva simenkva added the bug label Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant