Skip to content

Commit

Permalink
Fix error with setuptools
Browse files Browse the repository at this point in the history
fatal: [staging_01]: FAILED! => changed=false
  cmd:
  - /usr/lib/ckan/default/bin/pip3
  - install
  - -e
  - git+https://github.com/ckan/[email protected]#egg=ckanext-spatial
  msg: |-
    stdout: Obtaining ckanext-spatial from git+https://github.com/ckan/[email protected]#egg=ckanext-spatial
      Cloning https://github.com/ckan/ckanext-spatial.git (to revision v2.1.1) to /usr/lib/ckan/default/src/ckanext-spatial
      Resolved https://github.com/ckan/ckanext-spatial.git to commit 9383084
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'error'

    :stderr:   Running command git clone --filter=blob:none --quiet https://github.com/ckan/ckanext-spatial.git /usr/lib/ckan/default/src/ckanext-spatial
      Running command git checkout -q 9383084
      Running command git submodule update --init --recursive -q
      error: subprocess-exited-with-error

      × python setup.py egg_info did not run successfully.
      │ exit code: 1
      ╰─> [6 lines of output]
          Traceback (most recent call last):
            File "<string>", line 2, in <module>
            File "<pip-setuptools-caller>", line 34, in <module>
            File "/usr/lib/ckan/default/src/ckanext-spatial/setup.py", line 2, in <module>
              from ckanext.spatial import __version__
          ModuleNotFoundError: No module named 'ckanext.spatial'
          [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.

ckan#333
  • Loading branch information
mjanez committed Aug 29, 2024
1 parent 9383084 commit c4cfbc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from setuptools import setup, find_packages
from ckanext.spatial import __version__

version = __version__
version = "2.1.1"

setup(
name="ckanext-spatial",
Expand Down

0 comments on commit c4cfbc4

Please sign in to comment.