| View previous topic :: View next topic |
| Author |
Message |
Bill Cosby Guru


Joined: 22 Jan 2005 Posts: 430 Location: Aachen, Germany
|
Posted: Wed Feb 16, 2005 5:34 pm Post subject: Ebuild for PyPanel-2.2 for AMD64 [solved] |
|
|
Hello everyone,
ok, I want to install pypanel on my desktop, all right, but after running into trouble with pypanel-2.0 and imlib2-1.2, not being able to search the forums with wildcards, and no success in finding an ebuild for 2.2., "Hahah" I thought, "here comes the mighty power of me into play, I'll do it myself", ok then, or better put: not ok then.
I read this tutorial which is rather simple (silly me, I really thought simple things could work )
http://gentoo-wiki.com/HOWTO_Create_an_Updated_Ebuild
althoug it seemed everything worked fine, I downloaded the 2.2 source, created the digest, emerge my new made pypanel-2.2 and it actually installed the binaries, but when I try to run it I get this starnge error
| Code: | Traceback (most recent call last):
File "/usr/bin/pypanel", line 752, in ?
import dl
ImportError: No module named dl |
I searched the web, but didn't find anything useful (actually there are only 3 results, and one of them in a language I don't understand, possibly klingon), btw is there a 2.2.ebuild out there? Then I could try it, but maybe it isn't because of the ebuild, maybe it's because of the 2.2 source, I am running a AMD64 machine.
thanks in advance
Cliff
Last edited by Bill Cosby on Fri Feb 18, 2005 10:31 am; edited 2 times in total |
|
| Back to top |
|
 |
Bill Cosby Guru


Joined: 22 Jan 2005 Posts: 430 Location: Aachen, Germany
|
Posted: Thu Feb 17, 2005 3:07 pm Post subject: |
|
|
| Nobody got it running? |
|
| Back to top |
|
 |
jack_mort Apprentice


Joined: 30 Jan 2003 Posts: 167
|
Posted: Thu Feb 17, 2005 6:04 pm Post subject: |
|
|
I have the same problem, and solved it by deleting the offending lines in /usr/bin/pypanel. And it works pretty well without these lines  |
|
| Back to top |
|
 |
Bill Cosby Guru


Joined: 22 Jan 2005 Posts: 430 Location: Aachen, Germany
|
Posted: Thu Feb 17, 2005 7:49 pm Post subject: |
|
|
Well, ok, I commented the lines out, but I don't know whether this is really a good solution, it seems to work though.
Thanks,
Cliff _________________ The Creature from Jekyll Island. |
|
| Back to top |
|
 |
jack_mort Apprentice


Joined: 30 Jan 2003 Posts: 167
|
Posted: Thu Feb 17, 2005 9:17 pm Post subject: |
|
|
I totally agree with you : I don't know if it's a good solution, but I've been using this "modified" version of PyPanel for one week now, and didn't notice any problem... So I can't see what these lines are doing
I also posted on nuzilla but didn't get an answer... |
|
| Back to top |
|
 |
Bill Cosby Guru


Joined: 22 Jan 2005 Posts: 430 Location: Aachen, Germany
|
Posted: Thu Feb 17, 2005 11:43 pm Post subject: |
|
|
Ok, I actually get an error message when I run pypanel
| Code: | Error #14 loading '/usr/lib/python2.3/site-packages/pypanel/ppicon.png'
Failed to create icon in ppicon! |
It still works fine, but my guess would be that this is a result of the alternation of pypanel.
So do you get the same error?
[edit] I found the code in pypanel for this ppicon.png, so of course I could delete this too, but what's the point of it? Well I am writing and email, to this guy, maybe it helps. [/edit] _________________ The Creature from Jekyll Island. |
|
| Back to top |
|
 |
Bill Cosby Guru


Joined: 22 Jan 2005 Posts: 430 Location: Aachen, Germany
|
Posted: Fri Feb 18, 2005 10:23 am Post subject: |
|
|
Haha, I got an answer and a patch
Here is what he wrote
| Quote: | When you build/install PyPanel, the config script will add that code you commented out if you have Imlib2 >= version 1.2. The code is not necessary with earlier versions of Imlib2.
Without that bit of code, Python will be unable to find certain symbols in the Imlib2 library .. as a result, you'll get the errors you're seeing. You'll still be able to use the panel but image rendering (icons and panel shading) probably won't work. |
He delivered a patch, which lets c handle the procedure instead of python, this must be the error concerning AMD64 compatibility.
Well, I still have to delete this dl lines in "/usr/bin/pypanel" but I don't get any errors, and I am able to use image rendering,
Here is the patch
| Code: | 24a25
> #include <dlfcn.h>
232a234
> void *handle;
249a252,258
> /* Attempt to call dlopen from C rather than Python */
> handle = dlopen("/usr/lib/libImlib2.so", RTLD_NOW|RTLD_GLOBAL);
>
> if (!handle) {
> printf("dlopen failed: %s\n", dlerror());
> }
>
|
Many thanks to ziljian from PyPanel who delivered this patch  _________________ The Creature from Jekyll Island.
Last edited by Bill Cosby on Sat Feb 19, 2005 12:45 pm; edited 1 time in total |
|
| Back to top |
|
 |
jack_mort Apprentice


Joined: 30 Jan 2003 Posts: 167
|
Posted: Fri Feb 18, 2005 7:29 pm Post subject: |
|
|
Could you post a "diff -u" patch, as I don't understand quite well what to do... And also, you could post it on bugzilla, for bug 81231  |
|
| Back to top |
|
 |
Bill Cosby Guru


Joined: 22 Jan 2005 Posts: 430 Location: Aachen, Germany
|
Posted: Sat Feb 19, 2005 12:45 pm Post subject: |
|
|
| jack_mort wrote: | Could you post a "diff -u" patch, as I don't understand quite well what to do... And also, you could post it on bugzilla, for bug 81231  |
Just copy the posted text in a file and name it something like ppmodule.diff
Then you have your patch file, btw. you have to patch the ppymodule.c file e.g.
| Code: | | # patch ppmodule.c ../ppmodule.diff |
_________________ The Creature from Jekyll Island. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|