Problem loading phraymd

4 views
Skip to first unread message

Keith Tilley

unread,
Nov 11, 2010, 4:05:02 AM11/11/10
to phraymd
I've suddenly developed a problem where phraymd won't load. When I
launch it the window appears briefly and then disappears. I've tried
re-installing and even deleting all the collections and thumbnails but
that didn't help. Opening it from the terminal gives this readout:

running phraymd with module path /usr/share/phraymd
active_collection_id 0
active_collection_id 1
Using pyexiv2 version 0.1.x
Using gio
REGISTERING ICONS IN /usr/share/phraymd/icons/
Importing system plugin phraymd.plugins.metadata_viewer
Importing system plugin phraymd.plugins.config
Importing system plugin phraymd.plugins.imagewriter
Importing system plugin phraymd.plugins.mapui
Importing system plugin phraymd.plugins.crop
Importing system plugin phraymd.plugins.rotate
Importing system plugin phraymd.plugins.importer
Importing system plugin phraymd.plugins.tagui
Importing system plugin phraymd.plugins.webupload
SETTING RC STRING
SET RC STRING
instantiating plugins except for []
INITIALIZED TAG SIDEBAR PLUGIN
INITIALIZED MAP SIDEBAR PLUGIN
/usr/share/phraymd/phraymd/plugins/rotate.py:49: GtkWarning:
GtkSpinButton: setting an adjustment with non-zero page size is
deprecated
self.angle_entry=gtk.SpinButton(self.angle_adjustment,0.0,2)
Map Plugin: loading map-places file
MAP PLUGIN VERSION 0.1.1
SETTING PREFERRED SOURCE googlestreet
setting map source googlestreet
NEW MAP PLACE (66.302200317382812, -23.5546875, 3)
Registered dbus server
worker thread started
Traceback (most recent call last):
File "/usr/share/phraymd/phraymd/mainframe.py", line 324, in on_show
self.create_local_store(None,True)
File "/usr/share/phraymd/phraymd/mainframe.py", line 420, in
create_local_store
prefs['image_dirs']=os.path.join(os.environ['$HOME'],'Pictures')
File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: '$HOME'
/usr/bin/phraymd:111: GtkWarning: gdk_draw_rectangle: assertion
`GDK_IS_DRAWABLE (drawable)' failed
gtk.main()
/usr/bin/phraymd:111: GtkWarning: gdk_draw_pixbuf: assertion
`GDK_IS_DRAWABLE (drawable)' failed
gtk.main()
/usr/bin/phraymd:111: GtkWarning: gdk_cairo_create: assertion
`GDK_IS_DRAWABLE (drawable)' failed
gtk.main()
Segmentation fault


Any help would be appreciated.

Ketil Nordstad

unread,
Nov 11, 2010, 12:43:01 PM11/11/10
to phr...@googlegroups.com
2010/11/11 Keith Tilley <tille...@gmail.com>:

> that didn't help. Opening it from the terminal gives this readout:
>
> running phraymd with module path /usr/share/phraymd

>    prefs['image_dirs']=os.path.join(os.environ['$HOME'],'Pictures')


>  File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
>    raise KeyError(key)
> KeyError: '$HOME'

> Any help would be appreciated.

Looks like a missing environment variable to me. Have you tried to
export HOME=/home/yourusername ?

Damien Moore

unread,
Nov 11, 2010, 5:25:41 PM11/11/10
to phr...@googlegroups.com
hmm...

>    prefs['image_dirs']=os.path.join(os.environ['$HOME'],'Pictures')

should probably be

>    prefs['image_dirs']=os.path.join(os.environ['HOME'],'Pictures')

i.e. no dollar sign

I'm not sure that is what is causing the segfault, however. In the past, I have seen some segfaults when trying to save edited images as a result of a (still unfixed) threading issue.

Are you using phraymd from source or the ppa package? I can update easily the sources, but it may take a little bit longer to update the ppa.

cheers,
Damien

PS: I haven't had any time to work on phraymd lately. Since returning from Australia I've bought a house and got a promotion at work. Hopefully things will settle down a bit in December and I'll have some time to play with phraymd again.


--
You received this message because you are subscribed to the Google Groups "phraymd" group.
To post to this group, send email to phr...@googlegroups.com.
To unsubscribe from this group, send email to phraymd+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/phraymd?hl=en.


Keith Tilley

unread,
Nov 11, 2010, 6:55:29 PM11/11/10
to phraymd
Unfortunately I'm using the ppa package.

I've checked that HOME is listed in the environment variables.

On Nov 11, 10:25 pm, Damien Moore <damienlmo...@gmail.com> wrote:
> hmm...
>
> >    prefs['image_dirs']=os.path.join(os.environ['$HOME'],'Pictures')
>
> should probably be
>
> >    prefs['image_dirs']=os.path.join(os.environ['HOME'],'Pictures')
>
> i.e. no dollar sign
>
> I'm not sure that is what is causing the segfault, however. In the past, I
> have seen some segfaults when trying to save edited images as a result of a
> (still unfixed) threading issue.
>
> Are you using phraymd from source or the ppa package? I can update easily
> the sources, but it may take a little bit longer to update the ppa.
>
> cheers,
> Damien
>
> PS: I haven't had any time to work on phraymd lately. Since returning from
> Australia I've bought a house and got a promotion at work. Hopefully things
> will settle down a bit in December and I'll have some time to play with
> phraymd again.
>
> On Thu, Nov 11, 2010 at 12:43 PM, Ketil Nordstad <keti...@gmail.com> wrote:
> > 2010/11/11 Keith Tilley <tilleyke...@gmail.com>:
>
> > > that didn't help. Opening it from the terminal gives this readout:
>
> > > running phraymd with module path /usr/share/phraymd
>
> > >    prefs['image_dirs']=os.path.join(os.environ['$HOME'],'Pictures')
> > >  File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
> > >    raise KeyError(key)
> > > KeyError: '$HOME'
> > > Any help would be appreciated.
>
> > Looks like a missing environment variable to me. Have you tried to
> > export HOME=/home/yourusername ?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "phraymd" group.
> > To post to this group, send email to phr...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > phraymd+u...@googlegroups.com<phraymd%2Bunsu...@googlegroups.com>
> > .

Keith Tilley

unread,
Nov 18, 2010, 5:53:59 PM11/18/10
to phraymd
Hello Damien,

I've solved my problem. I deleted the whole of the 'phraymd' folder in
'./local/share/' and then I was able to start phraymd up.

I had already deleted all the collections, so the only files left in
the folder before I deleted it were 'map-places' and 'tag-layout'. I
hadn't used geo-tagging, but I did have a look at the feature so maybe
I did something which caused the problem.

Thanks,
Keith

Damien Moore

unread,
Nov 19, 2010, 8:57:55 AM11/19/10
to phr...@googlegroups.com
Keith: Glad you found a solution. If this happens again try renaming the folder instead of deleting. Then try copying some files back in to see which ones create the problem.

cheers,
Damien

--
You received this message because you are subscribed to the Google Groups "phraymd" group.
To post to this group, send email to phr...@googlegroups.com.
To unsubscribe from this group, send email to phraymd+u...@googlegroups.com.

Keith Tilley

unread,
Nov 19, 2010, 4:11:45 PM11/19/10
to phraymd
Good idea, I'll do that. Thanks Damien.

On Nov 19, 1:57 pm, Damien Moore <damienlmo...@gmail.com> wrote:
> Keith: Glad you found a solution. If this happens again try renaming the
> folder instead of deleting. Then try copying some files back in to see which
> ones create the problem.
>
> cheers,
> Damien
>
> On Thu, Nov 18, 2010 at 5:53 PM, Keith Tilley <tilleyke...@gmail.com> wrote:
> > Hello Damien,
>
> > I've solved my problem. I deleted the whole of the 'phraymd' folder in
> > './local/share/' and then I was able to start phraymd up.
>
> > I had already deleted all the collections, so the only files left in
> > the folder before I deleted it were 'map-places' and 'tag-layout'. I
> > hadn't used geo-tagging, but I did have a look at the feature so maybe
> > I did something which caused the problem.
>
> > Thanks,
> > Keith
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "phraymd" group.
> > To post to this group, send email to phr...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > phraymd+u...@googlegroups.com<phraymd%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages