Project

Profile

Help

Issue #3884

closed

Pulp python sync fails due to invalid key as the path parameter has been replaced with url on pypi.org

Added by dustinmcnabb over 5 years ago. Updated about 5 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

The commit at the link below was not included in the latest release of pulp_python for pulp 2.16.4 beta. This is essential for pypi.org support since the path parameter has been replaced by url in the pypi.org json metadata files.

https://github.com/pulp/pulp_python/commit/79b46411a049e63fc24ba97a60b51fe0574b268c

Jul 25 16:43:26 pulp-lab pulp: pulp_python.plugins.importers.sync:INFO: Processing metadata retrieved from https://pypi.org/pypi/psycopg2-binary/json.
Jul 25 16:43:26 pulp-lab pulp: nectar.downloaders.base:ERROR: (12423-64768) 'path'
Jul 25 16:43:26 pulp-lab pulp: nectar.downloaders.base:ERROR: (12423-64768) Traceback (most recent call last):
Jul 25 16:43:26 pulp-lab pulp: nectar.downloaders.base:ERROR: (12423-64768) File "/usr/lib/python2.7/site-packages/nectar/downloaders/base.py", line 145, in _fire_event_to_listener
Jul 25 16:43:26 pulp-lab pulp: nectar.downloaders.base:ERROR: (12423-64768) event_listener_callback(*args, **kwargs)
Jul 25 16:43:26 pulp-lab pulp: nectar.downloaders.base:ERROR: (12423-64768) File "/usr/lib/python2.7/site-packages/pulp_python/plugins/importers/sync.py", line 65, in download_succeeded
Jul 25 16:43:26 pulp-lab pulp: nectar.downloaders.base:ERROR: (12423-64768) units = models.Package.objects.from_metadata(destination.read())
Jul 25 16:43:26 pulp-lab pulp: nectar.downloaders.base:ERROR: (12423-64768) File "/usr/lib/python2.7/site-packages/pulp_python/plugins/querysets.py", line 55, in from_metadata
Jul 25 16:43:26 pulp-lab pulp: nectar.downloaders.base:ERROR: (12423-64768) units.append(self._document.from_json(package, version, metadata['info']))
Jul 25 16:43:26 pulp-lab pulp: nectar.downloaders.base:ERROR: (12423-64768) File "/usr/lib/python2.7/site-packages/pulp_python/plugins/models.py", line 115, in from_json
Jul 25 16:43:26 pulp-lab pulp: nectar.downloaders.base:ERROR: (12423-64768) package_attrs['path'] = package_data['path']
Jul 25 16:43:26 pulp-lab pulp: nectar.downloaders.base:ERROR: (12423-64768) KeyError: 'path'

Actions #1

Updated by daviddavis over 5 years ago

  • Status changed from NEW to CLOSED - DUPLICATE
Actions #2

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF