Bug 1391284

Summary: ImportError: No module named bugzilla
Product: [Fedora] Fedora Reporter: Mary Jenner <maryjenner8>
Component: python-bugzillaAssignee: Cole Robinson <crobinso>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 25CC: crobinso, dzickus, jskarvad
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-06 16:43:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mary Jenner 2016-11-02 23:13:44 UTC
Description of problem:


Version-Release number of selected component (if applicable):

bugzilla --version 1.2.2

python --version Python 2.7.5

OS: CentOS Linux release 7.2.1511 (Core)    



I installed gitzilla, pybugz and python-bugzilla 1.2.2. Per the link, https://pypi.python.org/pypi/python-bugzilla/1.2.2, it claims python-bugzilla has a module named bugzilla.

‘bugzilla’ python module for talking to a [Bugzilla](https://www.bugzilla.org/) instance over XMLRPC
/usr/bin/bugzilla command line tool for performing actions from the command line: create or edit bugs, various queries, etc.

However, I got "ImportError: No module named bugzilla" when I git push. Below are error messages.

remote: Traceback (most recent call last):
remote: File "/home/git/local/VREF/update", line 9, in <module>
remote: load_entry_point('gitzilla==2.0', 'console_scripts', 'gitzilla-update')()
remote: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
remote: return get_distribution(dist).load_entry_point(group, name)
remote: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
remote: return ep.load()
remote: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
remote: entry = __import__(self.module_name, globals(),globals(), ['__name__'])
remote: File "build/bdist.linux-x86_64/egg/gitzilla/hookscripts.py", line 12, in <module>
remote: File "build/bdist.linux-x86_64/egg/gitzilla/hooks.py", line 9, in <module>
remote: File "build/bdist.linux-x86_64/egg/gitzilla/utils.py", line 10, in <module>
remote: ImportError: No module named bugzilla

It seems like module named bugzilla does not exist.

Comment 1 Mary Jenner 2016-11-03 20:44:56 UTC
I installed pybugz and elementtree-1.2.6. But, I still got, "ImportError: No module named bugzilla" too. It tries to "import bugz.bugzilla" in the file utils.py. So, where is "bugz.bugzilla"?

Comment 2 Cole Robinson 2016-11-06 16:43:46 UTC
I think gitzilla is out of date. Check rpm -ql of pybugz, it doesn't have a bugz.bugzilla module on f25.

Either way this seems independent of python-bugzilla, which provides the top level 'import bugzilla'. Anything referencing 'bugz' is probably pybugz doing

Comment 3 Cole Robinson 2016-11-11 13:27:41 UTC
*** Bug 1387442 has been marked as a duplicate of this bug. ***