473,657 Members | 2,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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:
Expand|Select|Wrap|Line Numbers
  1. linux-6n5c:/usr/local/bin # pkusers --add john paul
  2. Creation...
  3. ERROR: PyKota v1.26_official
  4. ERROR: pkusers failed
  5. ERROR: Traceback (most recent call last):
  6. ERROR:   File "/usr/local/bin/pkusers", line 442, in <module>
  7. ERROR:     retcode = manager.main(args, options)
  8. ERROR:   File "/usr/local/bin/pkusers", line 345, in main
  9. ERROR:     oldentry = getattr(self.storage, "add%s" % suffix)(entry)
  10. ERROR:   File "/usr/local/lib/python2.7/site-packages/pykota/storages/sql.py", line 598, in addUser
  11. ERROR:     oldentry = self.getUser(user.Name)
  12. ERROR:   File "/usr/local/lib/python2.7/site-packages/pykota/storage.py", line 623, in getUser
  13. ERROR:     user = self.getUserFromBackend(username)
  14. ERROR:   File "/usr/local/lib/python2.7/site-packages/pykota/storages/sql.py", line 355, in getUserFromBackend
  15. ERROR:     % self.doQuote(self.userCharsetToDatabase(username)))
  16. ERROR:   File "/usr/local/lib/python2.7/site-packages/pykota/storages/pgstorage.py", line 144, in doQuote
  17. ERROR:     return pg._quote(field, typ)
  18. ERROR: AttributeError: 'module' object has no attribute '_quote'
  19.  
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
Feb 20 '12 #1
1 3958
dwblas
626 Recognized Expert Contributor
That is an error in the pykota package. You should check for a newer version as this may have been fixed, or contact them with the error message.
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'
Feb 20 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
9523
by: dont bother | last post by:
Hey, I am trying to run the following example from diveintopython import urllib sock = urllib.urlopen("http://diveintopython.org/") htmlSource = sock.read() sock.close() print htmlSource
4
7665
by: adrian | last post by:
I get those errors when I run: /usr/local/bin/SquidClamAV_Redirector.py -c /etc/squid/SquidClamAV_Redirector.conf ################## Traceback (most recent call last): File "/usr/local/bin/SquidClamAV_Redirector.py", line 573, in ? redirector = SquidClamAV_Redirector(config) File "/usr/local/bin/SquidClamAV_Redirector.py", line 145, in __init__
2
3415
by: rsd | last post by:
Hi, I'm trying get Samsung YH-920 mp3 player to work with Debian GNU/Linux. To do that I need to run http://www.paul.sladen.org/toys/samsung-yh-925/yh-925-db-0.1.py script, the idea behind the script is described at http://www.paul.sladen.org/toys/samsung-yh-925/ I'm getting errors and hoping someone could give me some hints, for I have no python background.
0
428
by: rkmr.em | last post by:
Hi I built and installed python 2.5 from source and when I do this: opener = urllib2.build_opener(SmartRedirectHandler(), DefaultErrorHandler(), urllib2.HTTPSHandler()) I get this error. AttributeError: 'module' object has no attribute 'HTTPSHandler' What should I do?
0
1851
by: Matt McCredie | last post by:
I built and installed python 2.5 from source and when I do this: You need `_ssl.pyd' for HTTPSHandler to work. I guess, try to figure out why that wasn't built, then build it. I suppose I _might_ be able to give a little more help, but you haven't mentioned what platform you are using. Even then, I'm not an expert on building Python. Matt
4
23429
by: black_13 | last post by:
what does this error mean? i am trying to use mark hammonds win32 package. Traceback (most recent call last): File "aui2.py", line 11, in <module> import win32com.client File "C:\Python25\lib\site-packages\win32com\client\__init__.py", line 12, in <module> import dynamic, gencache, pythoncom File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py",
4
6117
by: Nikhil | last post by:
I have recently written a small module. When I import the module, I always get the error only when I do -- Traceback (most recent call last): File "<stdin>", line 1, in <module>
1
6372
by: =?iso-8859-1?q?KLEIN_St=E9phane?= | last post by:
Hi, I'm on Ubuntu 8.04.1 I've installed lxml with easy_install lxml command. Now, when I load etree I've this error : $ python Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
0
1945
by: =?iso-8859-1?q?KLEIN_St=E9phane?= | last post by:
Le Mon, 25 Aug 2008 13:50:50 +0000, KLEIN Stéphane a écrit : I've this bug only with lxml2, lxml 1.3.3 work very well. Regards, Stephane
0
1832
by: Matt Nordhoff | last post by:
Barak, Ron wrote: For some reason, when you run "import locale", it's importing wx.locale instead of the "locale" module from the stdlib. However, I have no idea why that would be happening... Did you do something to add wx to your PYTHONPATH? Maybe do "import sys; print sys.path" or "import os; print os.environ" to verify this. (Hopefully someone more knowledgeable than me will come along soon.)
0
8397
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7333
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2731
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.