Giter VIP home page Giter VIP logo

friendly-calliope's People

Contributors

brynpickering avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

friendly-calliope's Issues

Failed pip import: incorrect value in project.maintainers

Problem

This project fails to import when installing it in a python environment with the following:

pip:
        - git+https://github.com/brynpickering/friendly-calliope.git@master

The following error is returned:

Installing pip dependencies: ...working... Pip subprocess error:
  Running command git clone -q https://github.com/brynpickering/friendly-calliope.git /tmp/pip-req-build-paf8l8d3
  Running command git clone -q https://github.com/sentinel-energy/friendly_data.git /tmp/pip-install-8een9m75/friendly-data
  Running command git checkout -q 0d93750ca7e0ce33840f248255bd55c1e2668dcc
  ERROR: Command errored out with exit status 1:
   command: /scratch/ivanruizmanuel/sector-coupled-euro-calliope/.snakemake/conda/dcb9a664252b91e27aaadf6f5eee0087/bin/python /scratch/ivanruizmanuel/sector-coupled-euro-calliope/.snakemake/conda/dcb9a664252b91e27aaadf6f5eee0087/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpl4z4s9x7
       cwd: /tmp/pip-install-8een9m75/friendly-data
  Complete output (68 lines):
  configuration error: `project.maintainers` must be array
  DESCRIPTION:
      The people or organizations considered to be the 'maintainers' of the
      project. Similarly to ``authors``, the exact meaning is open to
      interpretation.
  
  GIVEN VALUE:
      "The SENTINEL collaboration"
  
  OFFENDING RULE: 'type'
  
  DEFINITION:
      {
          "type": "array",
          "items": {
              "$id": "#/definitions/author",
              "title": "Author or Maintainer",
              "$comment": "https://peps.python.org/pep-0621/#authors-maintainers",
              "type": "object",
              "additionalProperties": false,
              "properties": {
                  "name": {
                      "type": "string",
                      "$$description": [
                          "MUST be a valid email name, i.e. whatever can be put as a name, before an",
                          "email, in :rfc:`822`."
                      ]
                  },
                  "email": {
                      "type": "string",
                      "format": "idn-email",
                      "description": "MUST be a valid email address"
                  }
              }
          }
      }
  /tmp/pip-build-env-t07t1hl5/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'extra_requirements'
    warnings.warn(msg)
  /tmp/pip-build-env-t07t1hl5/overlay/lib/python3.8/site-packages/setuptools/dist.py:314: InformationOnly: Normalizing '0.2.2.dev' to '0.2.2.dev0'
    self.metadata.version = self._normalize_version(
  Traceback (most recent call last):
    File "/scratch/ivanruizmanuel/sector-coupled-euro-calliope/.snakemake/conda/dcb9a664252b91e27aaadf6f5eee0087/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/scratch/ivanruizmanuel/sector-coupled-euro-calliope/.snakemake/conda/dcb9a664252b91e27aaadf6f5eee0087/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/scratch/ivanruizmanuel/sector-coupled-euro-calliope/.snakemake/conda/dcb9a664252b91e27aaadf6f5eee0087/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-t07t1hl5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-t07t1hl5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-t07t1hl5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in run_setup
      exec(code, locals())
    File "<string>", line 20, in <module>
    File "/tmp/pip-build-env-t07t1hl5/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
    File "/tmp/pip-build-env-t07t1hl5/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 159, in setup
      dist.parse_config_files()
    File "/tmp/pip-build-env-t07t1hl5/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 653, in parse_config_files
      pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
    File "/tmp/pip-build-env-t07t1hl5/overlay/lib/python3.8/site-packages/setuptools/config/pyprojecttoml.py", line 66, in apply_configuration
      config = read_configuration(filepath, True, ignore_option_errors, dist)
    File "/tmp/pip-build-env-t07t1hl5/overlay/lib/python3.8/site-packages/setuptools/config/pyprojecttoml.py", line 127, in read_configuration
      validate(subset, filepath)
    File "/tmp/pip-build-env-t07t1hl5/overlay/lib/python3.8/site-packages/setuptools/config/pyprojecttoml.py", line 55, in validate
      raise ValueError(f"{error}\n{summary}") from None
  ValueError: invalid pyproject.toml config: `project.maintainers`.
  configuration error: `project.maintainers` must be array
  ----------------------------------------
ERROR: Command errored out with exit status 1: /scratch/ivanruizmanuel/sector-coupled-euro-calliope/.snakemake/conda/dcb9a664252b91e27aaadf6f5eee0087/bin/python /scratch/ivanruizmanuel/sector-coupled-euro-calliope/.snakemake/conda/dcb9a664252b91e27aaadf6f5eee0087/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpl4z4s9x7 Check the logs for full command output.

failed

CondaEnvException: Pip failed

Fix

I have not tested it, but I suspect this should patch the problem. In setup.py, change project.maintainer to an array and correct its name:

setup(
    name='friendly-calliope',
    version='0.3.0',
    description='Toolkit to prepare Calliope output data for dumping to friendly-data.',
    maintainers=['Bryn Pickering'],

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.