maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Mypaint-0.7.1 for Fremantle (https://talk.maemo.org/showthread.php?t=41807)

Meelis 2010-05-09 13:03

Re: Mypaint-0.7.1 for Fremantle
 
I have also been following this thread for quite some weeks. Thought to give it a try.

Installed it from extras-devel. But it does not work. From the icon, trys to start but closes before running up. From console gives the google.protobuf ImportError.

So enabled extras-devel again and installed the python-support

After that run mypaint again. Overall seems to work.

Tho got some Bug Reports, from left right arrows and canvas resizing, will look into it later and will give the details.

Waiting to do my first scetch in Life!

Heman1310 2010-05-09 13:55

Re: Mypaint-0.7.1 for Fremantle
 
Im having troubles after updating to the latest version:


/home/user # mypaint
Traceback (most recent call last):
File "/opt/mypaint/bin/mypaint", line 123, in <module>
from gui import main
File "/opt/mypaint/share/mypaint/gui/main.py", line 11, in <module>
import gtk, hildon, osso
ImportError: No module named hildon
/home/user #


Anyone knows what to do?

xpsj 2010-05-09 16:22

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by Heman1310 (Post 650469)
Im having troubles after updating to the latest version:


/home/user # mypaint
Traceback (most recent call last):
File "/opt/mypaint/bin/mypaint", line 123, in <module>
from gui import main
File "/opt/mypaint/share/mypaint/gui/main.py", line 11, in <module>
import gtk, hildon, osso
ImportError: No module named hildon
/home/user #


Anyone knows what to do?

The thing I found after googling this error was installing an app like Gpodder to add those python-hildon packages..After installing Gpodder, Mypaint was working like a charm...
(I am sure there is a better workaround..but im still a bit noobish)
grtz

Heman1310 2010-05-09 16:36

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by xpsj (Post 650602)
The thing I found after googling this error was installing an app like Gpodder to add those python-hildon packages..After installing Gpodder, Mypaint was working like a charm...
(I am sure there is a better workaround..but im still a bit noobish)
grtz

That did the trick. Thank you so much. :)

Dousan 2010-05-09 16:42

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by Creativetone (Post 650327)
Hi! There is The Liner_Brush... shows the my youtube video..
http://www.youtube.com/watch?v=LAUcrUO8rQQ

BUT NOTICE!

That Brushes folder "order.conf" are not updated...
I do not know could you just drop the brush in the current default folder.. I think that you must edit order.conf file to add it there.

so be careful..

Hi tone thanks for the brush :)
First i made a backup of the brushes in /.mypaint/ and then
I just edited the order.conf in a text editer and then put your new brush in the brushes folder and copied the brushes folder back to /.mypaint/
It will take some testing to get to know the brush and how it works ;)

xman 2010-05-09 17:42

Re: Mypaint-0.7.1 for Fremantle
 
Nice video tone.

x

santiago 2010-05-09 17:59

Re: Mypaint-0.7.1 for Fremantle
 
hi everyone here! i have the following error

Nokia-N900-02-8:/# mypaint
Traceback (most recent call last):
File "/opt/mypaint/bin/mypaint", line 123, in <module>
from gui import main
File "/opt/mypaint/share/mypaint/gui/main.py", line 11, in <module>
import gtk, hildon, osso
ImportError: No module named osso
Nokia-N900-02-8:/#



how can i fix it??

xpsj 2010-05-09 19:45

Re: Mypaint-0.7.1 for Fremantle
 
1 Attachment(s)
Quote:

Originally Posted by santiago (Post 650715)
hi everyone here! i have the following error

Nokia-N900-02-8:/# mypaint
Traceback (most recent call last):
File "/opt/mypaint/bin/mypaint", line 123, in <module>
from gui import main
File "/opt/mypaint/share/mypaint/gui/main.py", line 11, in <module>
import gtk, hildon, osso
ImportError: No module named osso
Nokia-N900-02-8:/#



how can i fix it??

I think if you look 3 or 4 posts back, you can find a 'solution' for the problem...installing an app like gpodder to add those python-hildon packages..

and for everybody else, a little C-toon:D:

Thiis 2010-05-09 19:50

Re: Mypaint-0.7.1 for Fremantle
 
Nice cartoon!

Mine doesnt launch, might be because I need some other packages when I do a plain download from app.mngr?
''Import error: No module named google.protobuf''

Gotta say that this is a different error then I had before, so something is fixed yet:)

So anyway: Whats the prob and what to do?

xpsj 2010-05-09 19:53

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by Thiis (Post 650825)
Nice cartoon!

Mine doesnt launch, might be because I need some other packages when I do a plain download from app.mngr?
''Import error: No module named google.protobuf''

Gotta say that this is a different error then I had before, so something is fixed yet:)

So anyway: Whats the prob and what to do?

haha, thx!!
uhm..I think there is a solution for your problem on page 18 or 19..installing as root: apt-get install python-support
hope you can get it working!

Thiis 2010-05-09 20:11

Re: Mypaint-0.7.1 for Fremantle
 
Thx for the superquick response!
But now it tells me:
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
chronium: Depends: libxss1 but is not going to be installed
E: Unmet dependencies. Try `apt -get -f install' with no packages (or specify a solution).



I dont care whatever it says about chronium, i use microB anyway.
But I have no idea what's the further problem and what to do.
mypaint still doesnt launch
(havnt tried launching it from terminal cause I dunno anything about this so I just want to jeep this open for now).


Btw: People make the most awesome things with this!!!(y):)
Now I realy want it:p

xpsj 2010-05-09 20:24

Re: Mypaint-0.7.1 for Fremantle
 
1 Attachment(s)
@Thiss

No problem;)..
But I can't help you further....like I said before..I'm still very noobish reading those logs from xterm..maybe you just have to uninstall Chromium...and then install the python-support...
Im just spitballing here:P

and again a little Ctoon(A):

Dousan 2010-05-09 20:57

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by Thiis (Post 650850)
(havnt tried launching it from terminal cause I dunno anything about this so I just want to jeep this open for now).

Just write mypaint then hit 'enter' and that should launch it or give you an error. If an error comes up paste it here so we can help you ;)

anders_gud 2010-05-09 21:13

Re: Mypaint-0.7.1 for Fremantle
 
Sorry all folks for the trouble - I updated the installation notes in the first post just now... I've had these packages installed for ages now and I just plain forgot about the special Maemo stuff...

mypaint-0.8.2 HOWTO until aapo includes the dependencies in the package in extras-devel:

enable extras-devel

as root
apt-get install mypaint mypaint-data python-support python-hildon python-osso

cd /usr/lib/
ln -s libblas.so.3gf libblas.so
ln -s liblapack.so.3gf.0 liblapack.so

should do it...
Issues:
Fremantle UI not feature complete yet, and maybe some small bugs. I recommend it highly though...
And as always - disable extras-devel when you are finished...

Creativetone 2010-05-09 21:24

Re: Mypaint-0.7.1 for Fremantle
 
Hi! Anders and BIG very big thanks!

I have one question?

Could you do anything about that MyPaint Canvas Rotation?
I just thought that 22.5 degree would be useful. now it is 25.7.
There is problem when user want to rotate canvas 90degrees now?!

Other thing is "Toggle Eraser Mode" in 0.8.2 version behaves
differently and when switching to modes Brush Size changes ...
this is a bit annoying thing.

I know that these niggles are included Desktop version..
but if you could do something about these.. it would be great?

Or Can I do myself something... "code hacking" or something?
Any Tips..

Tone

EDIT -----------------------------------------------------------------------
Is there now MyPaint desktop Icon?... because mine shows
blue ugly thingy.
------------------------------------------------------------------------------

anders_gud 2010-05-09 22:15

Re: Mypaint-0.7.1 for Fremantle
 
Hi Tone!
Thanks again for the nice video. I'll look in to the rotation thing:
Code:

def rotate(self, command):
        if  command == 'RotateRight': self.tdw.rotate(+2*math.pi/14)
        elif command == 'RotateLeft' : self.tdw.rotate(-2*math.pi/14)

Eeek! Well I'll ask someone that knows math :confused:

The eraser toggle - I noticed you can scale brush and eraser independently and switch back and forth. But you are right - that equal size should be set to default...

Most of MyPaint is written in Python (a very readable high level language) so you can definitely hack at it with very limited experience in programming - there is also a lot of good documentation on the net. The UI code is located in /opt/mypaint/share/mypaint/gui/ (on the n900) - have a look there first.
I have no formal training in CS - I'm an artist (printmaking, painting) and occasional sysadmin and FOSS tyrant at an art school...

Cheers
Anders

harp 2010-05-10 01:21

Re: Mypaint-0.7.1 for Fremantle
 
I'm no good at math but the equation 2*math.pi/14 translates to 2*180/14 so you can base your math off that.

So it should be 2*math.pi/16 = 22.5 and -2*math.pi/16 = -22.5

xpsj 2010-05-10 01:39

Re: Mypaint-0.7.1 for Fremantle
 
1 Attachment(s)
Here yet another cartoon now named 'Random Universe';)
P.S.: If somebody considers these posts as unnessecery flooding..please let me know:).

santiago 2010-05-10 01:49

Re: Mypaint-0.7.1 for Fremantle
 
2 Attachment(s)
i love it!!!! ahahahhah

xpsj 2010-05-10 04:51

Re: Mypaint-0.7.1 for Fremantle
 
1 Attachment(s)
Random Universe #25:D

xman 2010-05-10 05:16

Re: Mypaint-0.7.1 for Fremantle
 
1 Attachment(s)
Quote:

Originally Posted by Creativetone (Post 650966)
Is tqhere now MyPaint desktop Icon?... because mine shows
blue ugly thingy.

And I thought I was the only one, I figured that something got screwed up during one of the installs. I down load the source code from mypaint site and looked at what they had, but it turnout I didn"t need it. Since mypaint is optfied (a good thing) we just have make a symbolic link to the image files in the write place. Probably will be fixed soon I'm sure, these are doing a great job.

Here's what I did:
The images are in /home/opt/mypaint/share/icons/hicolor
you'll need the 16, 22, 24, 32, 48 scalabe

They need a sym link in their corresponding folders here /usr/share/icons/hicolor

you will only need to make a link no need to rm and files unless you have the images on the root. Just follow the instructions below, the cmd in blue is the one you really need.

also please note that I did mine with midnight commander ... so take this post with a grain of salt, but it pretty much the same.

From this post
Quote:

To move and link a folder

* mv <folder> /home/reclaim (observe that the folder doesn't exist)
* ln -s /home/reclaim/<folder>

If you wan't to test moving/linking a different folder than those listed here:
* cp -a <folder> /home/reclaim (observe that the folder doesn't exist)
* mv <folder> <folder>.org
* ln -s /home/reclaim/<folder>

If everything works OK, incl. booting / updating, you may
rm -rf <folder>.org
now you should have working icons again, hopefully. Funny how something like this that has nothing to how the program work nags us..lol. I guess we just it to look good when show it off.. ;)

x

Midnight cmdr window when doing symlink from there.

Creativetone 2010-05-10 05:22

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by anders_gud (Post 651011)
Hi Tone!
Thanks again for the nice video. I'll look in to the rotation thing:
Code:

def rotate(self, command):
        if  command == 'RotateRight': self.tdw.rotate(+2*math.pi/14)
        elif command == 'RotateLeft' : self.tdw.rotate(-2*math.pi/14)

Eeek! Well I'll ask someone that knows math :confused:

The eraser toggle - I noticed you can scale brush and eraser independently and switch back and forth. But you are right - that equal size should be set to default...

Most of MyPaint is written in Python (a very readable high level language) so you can definitely hack at it with very limited experience in programming - there is also a lot of good documentation on the net. The UI code is located in /opt/mypaint/share/mypaint/gui/ (on the n900) - have a look there first.
I have no formal training in CS - I'm an artist (printmaking, painting) and occasional sysadmin and FOSS tyrant at an art school...

Cheers
Anders

Thank you very much for answer, Anders!

I am looking and test this rotate thing.. this is so great if I can custom rotation degree. Now I must find where the "Toggle Eraser Mode" is located in code or something.

The "Toggle Eraser Mode" sounds bit more complicated to change back to the old skool. :( - And maybe there should be a option to switch between old way and this new separate brush scales for "brush" and "eraser mode".

Quote:

Originally Posted by harp (Post 651101)
I'm no good at math but the equation 2*math.pi/14 translates to 2*180/14 so you can base your math off that.

So it should be 2*math.pi/16 = 22.5 and -2*math.pi/16 = -22.5

Thank you so much, Harp!
I am very very bad at math.. :)

xpsj - nice characters.. :)
santiago - nice doodles :)

There is harp's nice thread also where you can show your
MyPaint paintings

http://talk.maemo.org/showthread.php...hlight=mypaint

Only thing I am bit worrying is that there is a bit hard to find
proper information about eg "how to install" MyPaint.

I am glad that there is so many helpful people here.
Thanks!

Tone

anders_gud 2010-05-10 06:09

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by xman (Post 651240)
Here's what I did:
The images are in /home/opt/mypaint/share/icons/hicolor
you'll need the 16, 22, 24, 32, 48 scalabe

They need a sym link in their corresponding folders here /usr/share/icons/hicolor

Yes, It is this stupid optify thing Nokia insisting on - hampering development... Without even doing it the right way - should be easy as adding /opt to $PATH but no - there is symlinking and strange paths all over the place!
There will be an icon as soon Aapo gets the autobuilder figured out...
Again I'm sorry for the troubles and we're trying to sort things out...

mece 2010-05-10 07:46

Re: Mypaint-0.7.1 for Fremantle
 
Hello hello

I installed MyPaint today after seeing the video by Creativetone, and wow! I am blown away!

Anyway, is there work being done on the app itself? (Besides packaging) Could perhaps do with some finger scrolling in the selection dialogues. If no-one is working on that, I could perhaps take a look at some point.

ArnimS 2010-05-10 09:03

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by AapoRantalainen (Post 649182)
Installing:
There are also key shortcuts that is not usable with N900, so who wants make a new list of default shortcuts (of course everybody can use own set, but I think it would be nice if there are working default set).

I have been using this

http://pupnik.de/mypaint_cmds1sm.jpg

which puts the frequently needed things where i need em.

The N900 could use another one or two analogue inputs... Imagine sketching with one hand and using an analogue dpad to continuously control brush size and opacity on the two axes...

http://scr3.golem.de/screenshots/100...-pandora-1.jpg

Oh yeah... imagination turning into reality. What a glorious universe.

bousch 2010-05-10 09:12

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by Creativetone (Post 651247)
I am looking and test this rotate thing.. this is so great if I can custom rotation degree. Now I must find where the "Toggle Eraser Mode" is located in code or something.

The "Toggle Eraser Mode" sounds bit more complicated to change back to the old skool. :( - And maybe there should be a option to switch between old way and this new separate brush scales for "brush" and "eraser mode".

Look at line 101 in drawwindow.py, there you can set self.eraser_mode_radius_change to 0.

anders_gud 2010-05-10 09:35

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by mece (Post 651378)
Anyway, is there work being done on the app itself? (Besides packaging) Could perhaps do with some finger scrolling in the selection dialogues. If no-one is working on that, I could perhaps take a look at some point.

Yes that would be nice!
I'm slowly trying to make the Fremantle UI as feature complete it can be... All contributions are welcome!

Areas I'd like to see improved:
- "Save as" should list .ora .png .jpeg and so on (I don't know if Fremantle supports it)
- There would be nice to have a preview area in the dialogues (that's why I tried to implement them as stackable windows instead of gtk.Dialog)
and so on...

shreif 2010-05-10 10:15

Re: Mypaint-0.7.1 for Fremantle
 
hey i just updated mypaint from appmanager .. the update was around 350 k.b and after the update the icon of mypaint turned blue and when i open it loads for about 5 sec and then goes back to desktop please Quick help .. i love this app!

jackie_jagger 2010-05-10 10:22

Re: Mypaint-0.7.1 for Fremantle
 
having the same issue as shreif, although i just installed not updated !! !

Did I do anything wrong?

noobmonkey 2010-05-10 10:47

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by shreif (Post 651554)
hey i just updated mypaint from appmanager .. the update was around 350 k.b and after the update the icon of mypaint turned blue and when i open it loads for about 5 sec and then goes back to desktop please Quick help .. i love this app!

Best thing to do if you have problems is to run mypaint from terminal - it will print out any errors you have :D

Code:

(Run xterminal -> Type mypaint -> Press enter)
In my case it dissapears because when copying a previous brush pack in this thread, i copied it as root, doh! therefore mypaint can't access the files.

If you do have problems, do the above and post the errors here :D

Dousan 2010-05-10 12:20

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by shreif (Post 651554)
hey i just updated mypaint from appmanager .. the update was around 350 k.b and after the update the icon of mypaint turned blue and when i open it loads for about 5 sec and then goes back to desktop please Quick help .. i love this app!

First i would do like noobmonkey posted, start it up from xterm ;)

But it sounds like it didn't update the mypaint-data, that happend to me when I updated to maemo8.

You could fix it with this in xterm:
sudo gainroot 'enter'
apt-get install mypaint-data 'enter'
(extras-devel enabled before doing this and remember to disable after).


@jackie_jagger read post #294 on page 30 there anders_gud gives full instructions on how to install the mypaint :)

shreif 2010-05-10 12:22

Re: Mypaint-0.7.1 for Fremantle
 
i ran mypaint from xterm

it says : default brush collection not found! it should have been here : /opt/mypaint/share/mypaint/ tell me what to do

Dousan 2010-05-10 12:39

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by shreif (Post 651732)
i ran mypaint from xterm

it says : default brush collection not found! it should have been here : /opt/mypaint/share/mypaint/ tell me what to do

Try to run these to in xterm and post the result:

apt-cache policy mypaint
apt-cache policy mypaint-data

It's only to see if mypaint and mypaint-data are the same version

shreif 2010-05-10 12:57

Re: Mypaint-0.7.1 for Fremantle
 
how do i copy the whole output in here :D

Dousan 2010-05-10 13:03

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by shreif (Post 651770)
how do i copy the whole output in here :D

Then just check the line that says installed: on both outputs (mypaint and mypaint-data) and make sure that they are the same if not post here the versions you have installed.

Mine is 0.8.2-1maemo10 on both ;)

shreif 2010-05-10 18:05

Re: Mypaint-0.7.1 for Fremantle
 
can i just uninstall this update or something?

Thiis 2010-05-10 19:16

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

Originally Posted by xpsj (Post 650871)
@Thiss

No problem;)..
But I can't help you further....like I said before..I'm still very noobish reading those logs from xterm..maybe you just have to uninstall Chromium...and then install the python-support...
Im just spitballing here:P

Thanks a lot!!:D:)
Everything works fine now, alltough sometimes it has a delay up to max 2 minutes.
I gotta say: this really ROCKS!!! Im not really good at drawing stuff but I love doing it and playing around with all the brushes:)

jackie_jagger 2010-05-10 19:46

Re: Mypaint-0.7.1 for Fremantle
 
Quote:

@jackie_jagger read post #294 on page 30 there anders_gud gives full instructions on how to install the mypaint :)
thanks a bunch mate, I'll do that :)

edit: i uninstalled the mypaint i got off of the repo and used the command given in above mentioned post after gaining root.

it refuses to install by giving me errors about some dependencies !! what am I doing wrong??

Meelis 2010-05-10 20:41

Re: Mypaint-0.7.1 for Fremantle
 
Ok, now for me mypaint is fully functional.

Had the layers Bug with the Hildonized menu, but with gtk_menu all is good.

Not sure, what is the problem with the Hildonized menu. If needed, can recreate the Error message and post it here.


One more thing. The slow startup problem. QtIrreco had the same problem in the beginning. But later they solved the problem and now the app is very nice and fast. Maybe would be worth the while to ask thoes guys what they did. http://talk.maemo.org/showthread.php...light=QtIrreco

shreif 2010-05-10 21:11

Re: Mypaint-0.7.1 for Fremantle
 
why isnt any one answering my question can i uninstall the update of mypaint without uninstalling the app ?


All times are GMT. The time now is 16:52.

vBulletin® Version 3.8.8