cannot run bazaar build
Forum » Users / Support » cannot run bazaar build
Started by: DrSlonyDrSlony
On: 1245771212|%e %b %Y, %H:%M %Z|agohover
Number of posts: 7
rss icon RSS: New posts
Summary:
cannot run phatch from today's bazaar build
cannot run bazaar build
DrSlonyDrSlony 1245771212|%e %b %Y, %H:%M %Z|agohover

Hey

I installed phatch from bazaar because my older 1.6 installation wouldn't let me choose any fonts, so I couldn't watermark my images.
mkdir ~/.phatch_bzr
cd ~/.phatch_bzr
bzr branch lp:phatch
python setup.py build
sudo python setup.py install
drslony@budgie ~/.phatch_bzr/phatch $ phatch
Traceback (most recent call last):
File "/usr/bin/phatch", line 14, in <module>
main(config_paths, app_file = file)
File "/usr/lib64/python2.5/site-packages/phatch/app.py", line 177, in main
_gui(app_file,paths,settings)
File "/usr/lib64/python2.5/site-packages/phatch/app.py", line 123, in _gui
from pyWx import gui
File "/usr/lib64/python2.5/site-packages/phatch/pyWx/gui.py", line 45, in <module>
from core import api, ct
File "/usr/lib64/python2.5/site-packages/phatch/core/api.py", line 35, in <module>
from models import Action
File "/usr/lib64/python2.5/site-packages/phatch/core/models.py", line 33, in <module>
from core.lib.desktop import DESKTOP_FOLDER, USER_FOLDER
File "/usr/lib64/python2.5/site-packages/phatch/core/lib/desktop.py", line 41, in <module>
re.search('XDG_DESKTOP_DIR="(.*?)"',open(user_dirs).read())AttributeError: 'NoneType' object has no attribute 'group'

Any ideas? Broken head or my fault?

unfold cannot run bazaar build by DrSlonyDrSlony, 1245771212|%e %b %Y, %H:%M %Z|agohover
Re: cannot run bazaar build
stanistani 1245783729|%e %b %Y, %H:%M %Z|agohover

Thanks for pointing this out. Which Linux version are you using? What is the contents of ~/.config/user-dirs.dirs? If the file is not there please do a:

locate user-dirs.dirs

Anyway I've uploaded a fix, but I really need the information above to fix it well. To get the fix do:

bzr pull
unfold Re: cannot run bazaar build by stanistani, 1245783729|%e %b %Y, %H:%M %Z|agohover
Re: cannot run bazaar build
DrSlonyDrSlony 1246299222|%e %b %Y, %H:%M %Z|agohover

Hey, sorry my reply took so long. If this forum had an RSS notification thingie…

I use Gentoo 64 bit.

drslony@budgie ~ $ cat ~/.config/user-dirs.dirs
XDG_DOCUMENTS_DIR=$HOME/documents

last edited on 1246299428|%e %b %Y, %H:%M %Z|agohover by DrSlony + show more
unfold Re: cannot run bazaar build by DrSlonyDrSlony, 1246299222|%e %b %Y, %H:%M %Z|agohover
Re: cannot run bazaar build
DrSlonyDrSlony 1246299660|%e %b %Y, %H:%M %Z|agohover

It works well now :) Thank you.

unfold Re: cannot run bazaar build by DrSlonyDrSlony, 1246299660|%e %b %Y, %H:%M %Z|agohover
Re: cannot run bazaar build
stanistani 1246362999|%e %b %Y, %H:%M %Z|agohover

Your users.dir seems incomplete. It misses entry for the desktop according to the free desktop specifications. Maybe you can try to run xdg-user-dirs-update

unfold Re: cannot run bazaar build by stanistani, 1246362999|%e %b %Y, %H:%M %Z|agohover
Re: cannot run bazaar build
stanistani 1246363179|%e %b %Y, %H:%M %Z|agohover

There is an rss feed:
http://photobatch.wikidot.com/feed/forum/posts.xml

unfold Re: cannot run bazaar build by stanistani, 1246363179|%e %b %Y, %H:%M %Z|agohover
Re: cannot run bazaar build
DrSlonyDrSlony 1246400879|%e %b %Y, %H:%M %Z|agohover

Ran it, no change in Phatch, still no fonts.

drslony@budgie ~ $ cat ~/.config/user-dirs.dirs

  1. This file is written by xdg-user-dirs-update
  2. If you want to change or add directories, just edit the line you're
  3. interested in. All local changes will be retained on the next run
  4. Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
  5. homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
  6. absolute path. No other format is supported.

#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Download"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

last edited on 1246400940|%e %b %Y, %H:%M %Z|agohover by DrSlony + show more
unfold Re: cannot run bazaar build by DrSlonyDrSlony, 1246400879|%e %b %Y, %H:%M %Z|agohover
New post
© 2007-2008 www.stani.be
(It is not allowed to copy, distribute or transmit any part of the wiki without written permission.
Only contribute to this wiki if you agree with this term.)