Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20622

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <johannes.exner@tu-dortmund.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:module': 0.04; 'subject:Python': 0.05; 'attribute': 0.07; 'subject:object': 0.07; 'python': 0.08; 'context:': 0.09; 'problem:': 0.09; 'retcode': 0.09; 'skip:" 60': 0.09; 'stuck.': 0.09; 'error:': 0.10; "subject:' ": 0.15; '345,': 0.16; 'nabble.com.': 0.16; 'options)': 0.16; 'problem!': 0.16; 'received:192.168.236': 0.16; 'received:216.139': 0.16; 'received:216.139.236': 0.16; 'received:nabble.com': 0.16; 'url:nabble': 0.16; 'linux': 0.17; '(most': 0.21; 'archive': 0.21; 'fine': 0.24; 'traceback': 0.24; 'work.': 0.27; 'paul': 0.28; "i'm": 0.28; 'print': 0.29; 'commands,': 0.30; 'version': 0.32; 'everyone,': 0.32; 'anyone': 0.32; 'google,': 0.32; 'idea': 0.32; 'list': 0.32; "won't": 0.33; 'object': 0.33; 'file': 0.34; 'last):': 0.34; 'to:addr:python- list': 0.35; 'skip:" 20': 0.35; 'url:python': 0.35; 'install': 0.35; 'executing': 0.37; 'but': 0.37; 'shows': 0.37; 'charset:us- ascii': 0.37; 'received:192': 0.38; 'could': 0.38; 'some': 0.38; 'problems': 0.38; 'mailing': 0.39; '(with': 0.39; 'user': 0.40; 'to:addr:python.org': 0.40; 'john': 0.61; 'view': 0.61; 'kind': 0.62; 'thankful': 0.73; 'printers': 0.91; 'touched': 0.91
Date Mon, 20 Feb 2012 06:57:07 -0800 (PST)
From JohannesTU <johannes.exner@tu-dortmund.de>
To python-list@python.org
Subject PyKota, Python: AttributeError: 'module' object has no attribute '_quote'
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10.1329749830.3037.python-list@python.org> (permalink)
Lines 55
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1329749830 news.xs4all.nl 6957 [2001:888:2000:d::a6]:54478
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:20622

Show key headers only | View raw


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 <module>
    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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

PyKota, Python: AttributeError: 'module' object has no attribute '_quote' JohannesTU <johannes.exner@tu-dortmund.de> - 2012-02-20 06:57 -0800

csiph-web