FS#59184 - [python-pipenv] missing files from upstream for autocompletion

Attached to Project: Community Packages
Opened by Ken Mijime (KeNaCo) - Friday, 29 June 2018, 20:02 GMT
Last edited by Morten Linderud (Foxboron) - Tuesday, 03 July 2018, 13:10 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Morten Linderud (Foxboron)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Completion script fail due to missing jinja template in downstream package.

~$ pipenv --completion
Traceback (most recent call last):
File "/usr/bin/pipenv", line 11, in <module>
load_entry_point('pipenv==2018.6.25', 'console_scripts', 'pipenv')()
File "/usr/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1043, in invoke
return Command.invoke(self, ctx)
File "/usr/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3.6/site-packages/pipenv/cli.py", line 178, in cli
print(click_completion.get_code(shell=shell, prog_name='pipenv'))
File "/usr/lib/python3.6/site-packages/pipenv/vendor/click_completion/__init__.py", line 353, in get_code
template = env.get_template('%s.j2' % shell)
File "/usr/lib/python3.6/site-packages/pipenv/vendor/jinja2/environment.py", line 830, in get_template
return self._load_template(name, self.make_globals(globals))
File "/usr/lib/python3.6/site-packages/pipenv/vendor/jinja2/environment.py", line 804, in _load_template
template = self.loader.load(self, name, globals)
File "/usr/lib/python3.6/site-packages/pipenv/vendor/jinja2/loaders.py", line 113, in load
source, filename, uptodate = self.get_source(environment, name)
File "/usr/lib/python3.6/site-packages/pipenv/vendor/jinja2/loaders.py", line 187, in get_source
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: bash.j2

Additional info:
* tested on version 2018.6.25-1

Steps to reproduce:
1. run pipenv --completion
This task depends upon

Closed by  Morten Linderud (Foxboron)
Tuesday, 03 July 2018, 13:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed 2018.7.1
Comment by Eli Schwartz (eschwartz) - Sunday, 01 July 2018, 15:41 GMT
Upstream is missing the missing files: https://github.com/pypa/pipenv/pull/2422


It's sufficient to backport https://github.com/pypa/pipenv/commit/a69ddb5a7eccf9b1936c1d1d904cab03a6fb63d6

While we are at it, the completion files are broken and require python-pip, python2-pip, and procps-ng to be installed in order to be properly generated.

Loading...