[Pulp-list] Fwd: [katello-devel] Python import advice
Jason Rist
jrist at redhat.com
Thu Jul 28 15:04:51 UTC 2011
Can anyone help?
-J
-------- Original Message --------
Subject: [katello-devel] Python import advice
Date: Thu, 28 Jul 2011 17:03:19 +0200
From: Lukas Zapletal <lzap at redhat.com>
To: katello-devel at redhat.com
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/pulp-list/attachments/20110728/831d266b/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Attached Message Part
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20110728/831d266b/attachment-0001.ksh>
More information about the Pulp-list
mailing list