[katello-devel] Python import advice
Lukas Zapletal
lzap at redhat.com
Thu Jul 28 15:03:19 UTC 2011
Hello,
could anyone help me with a python import problem?
I am trying to import a class and I dont know - its refusing to import
it for me. I think there must be something wrong with my setup.
Please try to apply this small patch (current master) and try:
katello user list
(or anything - import failure occurs for me)
Thanks
Traceback (most recent call last):
File "/home/lzap/Work/CloudForms/katello/cli/bin/katello", line 19,
in <module>
from katello.client.cli.admin import AdminCLI
File
"/home/lzap/Work/CloudForms/katello/cli/src/katello/client/cli/admin.py", line
16, in <module>
from katello.client.cli.base import KatelloCLI
File
"/home/lzap/Work/CloudForms/katello/cli/src/katello/client/cli/base.py",
line 23, in <module>
from katello.client.core.utils import parse_tokens
File
"/home/lzap/Work/CloudForms/katello/cli/src/katello/client/core/utils.py",
line 23, in <module>
from katello.client.cli.base import KatelloError
ImportError: cannot import name KatelloError
--
Later,
Lukas Zapletal | E32E400A
RHN Satellite Engineering
Red Hat Czech s.r.o. Brno
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-import-problem.patch
URL: <http://listman.redhat.com/archives/katello-devel/attachments/20110728/a167344b/attachment.ksh>
More information about the katello-devel
mailing list