Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - pacstats

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: pacstats 0.1-1

Git Clone URL: https://aur-dev.archlinux.org/pacstats.git (read-only)
Package Base: pacstats
Description: Statistical charts about pacman activity
Upstream URL: http://pacstats.googlecode.com
Licenses: GPL
Submitter: encelo
Maintainer: encelo
Last Packager: encelo
Votes: 6
Popularity: 0.000000
First Submitted: 2010-05-12 23:22
Last Updated: 2015-07-07 21:15

Latest Comments

LeCrayonVert commented on 2010-11-26 12:20

I've found a temporary fix for this issue.
In database.py, just replace

self._con.text_factory = sqlite.OptimizedUnicode


self._con.text_factory = str

You will also need to

ln -sf /usr/lib/python2.7/site-packages/matplotlib /usr/lib/python2.6/site-packages/

(there is a call somewhere to /usr/lib/python2.6/site-packages/matplotlib whereas it should be 2.7)

Don't forget to replace

in /usr/bin/pacstats.

Then everything should work...but we still need a new release or at least a modified PKGBUILD ;)

LeCrayonVert commented on 2010-10-20 10:47

After the transition to python 3.
Here is the runtime error :

Parsing the lib "/var/lib/pacman/local"
Traceback (most recent call last):
File "/usr/bin/pacstats", line 38, in <module>
app = app.Application(share_dir)
File "/usr/lib/python2.7/site-packages/PacStats/app.py", line 48, in __init__
self.main_win = main_win.Main_Window(self)
File "/usr/lib/python2.7/site-packages/PacStats/main_win.py", line 95, in __init__
File "/usr/lib/python2.7/site-packages/PacStats/main_win.py", line 129, in check_update
File "/usr/lib/python2.7/site-packages/PacStats/main_win.py", line 221, in on_update_db_activate
File "/usr/lib/python2.7/site-packages/PacStats/libparser.py", line 128, in parse
File "/usr/lib/python2.7/site-packages/PacStats/packages.py", line 79, in insert_many
self._database.execute_many(INSERT, tuples)
File "/usr/lib/python2.7/site-packages/PacStats/database.py", line 98, in execute_many
self._cur.executemany(string, tuples)
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.

encelo commented on 2010-05-12 23:22

First stable release.