https://bugzilla.redhat.com/show_bug.cgi?id=1456449
Bug ID: 1456449
Summary: gofed does not append /usr/share to PYTHONPATH
Product: Fedora
Version: 25
Component: gofed
Assignee: jchaloup(a)redhat.com
Reporter: pkubat(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: fale(a)redhat.com,
golang-updates(a)lists.fedoraproject.org,
jchaloup(a)redhat.com
Created attachment 1283216
-->
https://bugzilla.redhat.com/attachment.cgi?id=1283216&action=edit
proposed patch
Description of problem:
gofed sets PYTHONPATH to /usr/share if it is not set (or is empty) before
executing its commands.
However, if PYTHONPATH already has some content gofed does not append
/usr/share to it, resulting in gofed not being able to find its modules.
How reproducible:
Always
Steps to Reproduce:
1. export PYTHONPATH=/home (or anything other than /usr/share really)
2. gofed fetch --spec
Actual results:
Traceback (most recent call last):
File "/usr/share/gofed/cmd/fetch/fetch.py", line 3, in <module>
from gofed.modules.SpecParser import SpecParser
ImportError: No module named gofed.modules.SpecParser
Expected results:
gofed imports SpecParser and fetches the tarball
Additional info:
patch attached
--
You are receiving this mail because:
You are on the CC list for the bug.