PyKota, Python: AttributeError: 'module' object has no attribute '_quote'

2012-02-20 Thread JohannesTU
Hello everyone,

I'm new to linux/suse, but I was given the task to install the print
accounting software PyKota.
Before that I never even touched a linux system, so I don't have any basic
knowlegde at all!
Up to now I was able to solve all problems with the help of google, but now
I'm stuck.

My problem:


linux-6n5c:/usr/local/bin # pkusers --add john paul
Creation...
ERROR: PyKota v1.26_official
ERROR: pkusers failed
ERROR: Traceback (most recent call last):
ERROR:   File "/usr/local/bin/pkusers", line 442, in 
ERROR: retcode = manager.main(args, options)
ERROR:   File "/usr/local/bin/pkusers", line 345, in main
ERROR: oldentry = getattr(self.storage, "add%s" % suffix)(entry)
ERROR:   File
"/usr/local/lib/python2.7/site-packages/pykota/storages/sql.py", line 598,
in addUser
ERROR: oldentry = self.getUser(user.Name)
ERROR:   File
"/usr/local/lib/python2.7/site-packages/pykota/storage.py", line 623, in
getUser
ERROR: user = self.getUserFromBackend(username)
ERROR:   File
"/usr/local/lib/python2.7/site-packages/pykota/storages/sql.py", line 355,
in getUserFromBackend
ERROR: % self.doQuote(self.userCharsetToDatabase(username)))
ERROR:   File
"/usr/local/lib/python2.7/site-packages/pykota/storages/pgstorage.py", line
144, in doQuote
ERROR: return pg._quote(field, typ)
ERROR: AttributeError: 'module' object has no attribute '_quote'
 

I have no idea how to deal with it or what it even means!

Executing "linux-6n5c:/usr/local/bin # pkusers" works fine and shows me
commands, version number etc.
But adding users or printers (with pkprinters) won't work.

I would be really thankful if anyone could give me some advice or hints how
to solve the problem!

Kind regards
Johannes 

--
View this message in context: 
http://python.6.n6.nabble.com/PyKota-Python-AttributeError-module-object-has-no-attribute-quote-tp4487915p4487915.html
Sent from the Python - python-list mailing list archive at Nabble.com.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PyKota, Python: AttributeError: 'module' object has no attribute '_quote'

2012-02-21 Thread JohannesTU
Thanks for your advice. The command itself didn't work, but it brought me on
the right path and "car and engine" are running now! ;-)
I fixed the problem by copying the correct pg.py-file to the python2.7 path.
After that the error didn't show up again and I'm now able to create users
etc.

Thank you very much!

Kind regards,
Johannes

--
View this message in context: 
http://python.6.n6.nabble.com/PyKota-Python-AttributeError-module-object-has-no-attribute-quote-tp4487915p4493041.html
Sent from the Python - python-list mailing list archive at Nabble.com.
-- 
http://mail.python.org/mailman/listinfo/python-list