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
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'
Sign in to post your reply or Sign up for a free account.
Similar topics |
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
|
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__
|
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.
|
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?
|
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
| |
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",
|
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>
|
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)
|
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
|
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.)
|
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...
| |
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,...
|
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |