Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

ImportError: No module named bugzilla on import bugz.bugzilla #25

Open
glittershark opened this issue Apr 24, 2012 · 3 comments
Open

ImportError: No module named bugzilla on import bugz.bugzilla #25

glittershark opened this issue Apr 24, 2012 · 3 comments

Comments

@glittershark
Copy link

Maybe pybugz has changed since the last update of this project, but every time I try to use any hook with gitzilla I get an ImportError upon attempting to import bugz.bugzilla

@SanderP
Copy link

SanderP commented Mar 4, 2013

Yeah, running into this too. I'm afraid it's typical of open source projects that depend on many other open source projects. Too many disjointed projects and sooner or later stuff breaks. Somehow there was also an elementtree import error on python 2.7. Fixed that by downloading and manually installing that from http://effbot.org/downloads/#elementtree . Python is a moving target with libraries coming and going, so many linux distros with different package repos. I'm only lamenting this because other people decided we could integrate Bugzilla and git on Debian because someone found the gitzilla page and thought 'ah, that looks possible'. Now I have to make it work.

@maryjenner8
Copy link

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. But, failed. Did anyone solve this problem?

@virgoparna
Copy link

virgoparna commented Oct 29, 2021

following batch makes gitzilla work with newest PyBugz.

diff --git a/bugwrap.py b/bugwrap.py
index 6978583..e4ee036 100644
--- a/bugwrap.py
+++ b/bugwrap.py
@@ -7,7 +7,7 @@ pybugz interface recently so it will work with several versions.

 _pybugz_xmlrpc = False

-from bugz.bugzilla import BugzillaProxy as BugzillaProxy
+import xmlrpc.client


 class BugzillaWrapper(object):
@@ -23,7 +23,7 @@ class BugzillaWrapper(object):
         self._url = url
         self._user = user
         self._password = password
-        self._bz = BugzillaProxy(url)
+        self._bz = xmlrpc.client.ServerProxy(url)
         self._authed = False

     def auth(self):

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants