MyPaint 1.0 paint program with Python

Post links to your 32-bit module repos here. Repo maintainers are responsible for resolving any issues caused by their xzm's.
Post Reply
don570
Contributor
Contributor
Posts: 99
Joined: 01 Jun 2012, 00:37
Location: Ontario

MyPaint 1.0 paint program with Python

Post#1 by don570 » 20 Jun 2012, 23:09

MyPaint paint program with Python 2.7

I have put together a simple package to use the excellent paint
program MyPaint. This program is great with the wacom
digitizing tablet.
I checked it using porteus (xfce)
both off a CD and a hard drive partition

The instructions are inside archive.
There is only three packages to install.
Warning!! I'm not sure that the version of python I
supplied is totally compatible but at least it works :D

http://www.datafilehost.com/download-abb69e0b.html

Image

User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 783
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: MyPaint 1.0 paint program with Python

Post#2 by ncmprhnsbl » 26 Jun 2012, 00:16

hey, thanks! ....but.. i'm guessing this is 32bit(might be good to specify). I tried it in 1.1 64(kde/lxde) with the 32compat libs(which i assume should work?) and get this:

Code: Select all

guest@porteus:~$ mypaint
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha512

(process:4507): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
builtin python 2.6 json support
/usr/share/mypaint/gui/layout.py:480: GtkWarning: Unable to locate theme engine in module_path: "nodoka",
  handle_size = gtk.HPaned().style_get_property("handle-size") + 2
confpath = /home/guest/.mypaint/
/usr/share/mypaint/gui/application.py:53: GtkWarning: Cannot open pixbuf loader module file '/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
  icon_theme = gtk.icon_theme_get_default()
/usr/share/mypaint/gui/application.py:432: GtkWarning: Cannot open pixbuf loader module file '/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
  pixbuf = gdk.pixbuf_new_from_file(join(self.dirname, name + '.png'))
Traceback (most recent call last):
  File "/usr/bin/mypaint", line 176, in <module>
    main.main(datapath, extradata, confpath)
  File "/usr/share/mypaint/gui/main.py", line 72, in main
    run()
  File "/usr/share/mypaint/gui/main.py", line 47, in run
    app = application.Application(datadir, extradata, options.config, args)
  File "/usr/share/mypaint/gui/application.py", line 74, in __init__
    self.cursor_color_picker = gdk.Cursor(gdk.display_get_default(), self.pixmaps.cursor_color_picker, 1, 30)
  File "/usr/share/mypaint/gui/application.py", line 434, in __getattr__
    raise AttributeError, str(e)
AttributeError: Couldn't recognize the image file format for file '/usr/share/mypaint/pixmaps/cursor_color_picker.png'
i've previously tried converting from .debs(64) and manually moving python and even editing the python start scipt of mypaint itself... i don't think i managed to get it to even find python 2.7..
also tried Mypaint 0.8 which uses python 2.6 .....with no luck....
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Hamza
Warlord
Warlord
Posts: 1846
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: MyPaint 1.0 paint program with Python

Post#3 by Hamza » 26 Jun 2012, 11:40

Python is not included in compat32 libs.
NjVFQzY2Rg==

don570
Contributor
Contributor
Posts: 99
Joined: 01 Jun 2012, 00:37
Location: Ontario

Re: MyPaint 1.0 paint program with Python

Post#4 by don570 » 30 Jun 2012, 19:11

My packages come from the puppy pet repositories
and Puppy pet libraries are almost exclusively 32 bit.

I don't have a 64bit computer, but for people who do
it would be easy to convert the fatdog repository of pet packages
to Porteus.

The repository can be found here
http://distro.ibiblio.org/pub/linux/dis ... atdog/web/

Use my application extract-pet
viewtopic.php?f=53&t=1313&sid=e7b0c4f04 ... 3ea1ff938b

to make a module . After making the module and installing ---> Launch the app with the terminal
and you will likely get a complaint about a missing dependency.
Track down the 64 bit version of the dependency.

Alternatively you can cd to /usr/bin/
and in terminal type

Code: Select all

ldd /path/to/app
This does a good job in listing the missing dependencies.

_______________________________________________________

User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 783
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: MyPaint 1.0 paint program with Python

Post#5 by ncmprhnsbl » 08 Jul 2012, 01:08

Hamza, i was hoping the python 2.7 included in the above
package would somehow combine with compat 32libs or
something :unknown: ....seems not.. thats ok..

don590, i saw in 'development' thread, all makes sense
now in '486 modules' :)
good to know about fatdog repo and puppy packages generally.
no mypaint 64 tho :( or python....
on a side note, if your interested in making the package
smaller, unpack 'mypaint-data', and look in
/usr/share/mypaint/backgrounds/
two folders - mrmamurk and ramon, contain hi-res backgrounds.
29 mb. don't know if it would break anything to remove these.
would certainly slim things down and they could be an optional
module..
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

don570
Contributor
Contributor
Posts: 99
Joined: 01 Jun 2012, 00:37
Location: Ontario

Re: MyPaint 1.0 paint program with Python

Post#6 by don570 » 09 Jul 2012, 22:43

I'll do a check inside the package.
Thanks for the tip.

User avatar
Hamza
Warlord
Warlord
Posts: 1846
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: MyPaint 1.0 paint program with Python

Post#7 by Hamza » 10 Jul 2012, 00:07

Hamza, i was hoping the python 2.7 included in the above
package would somehow combine with compat 32libs or
something ....seems not.. thats ok..
No, it's not included. ldd /path/to/binary is one of process used by Porteus Package Manager to solve missings deps and it appears PPM cannot solve Python deps too, at the moment.
NjVFQzY2Rg==

User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 783
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: MyPaint 1.0 paint program with Python

Post#8 by ncmprhnsbl » 22 Sep 2012, 04:50

so ... i tried removing /usr/share/mypaint/backgrounds/ramon +mrmamurk.... and it still works fine... so if you want to slim it down to 5mb (+pythondeps), you can..
..something i've noticed... in xfce, i've noticed that there seems to be a couple of missing icons for flipping...dont know about trinity...
..and some error message on image saving...which seems to be no problem...just wondered if anyone else sees this...
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply