Reply
Thread Tools
Posts: 18 | Thanked: 20 times | Joined on Jul 2008
#71
I don't why you have all these packages in /usr/lib/python2.7, no file are owned by a .deb ?
Code:
find /usr/lib/python2.7 | xargs dpkg -S | grep -v 'not found$'
Anyway, I found /usr/lib/python2.7 in my real n900 too.
Modrana installs /usr/lib/python2.7/site-packages/modrana-0.49.4-py2.7.egg-info, manually in debian/rules ( i don't know why ).

So, if there are packages in repositories creating /usr/lib/python2.7, we could:

1 - (ask to) modify these packages, they shouldn't use /usr/lib/python2.7 if they don't depend on python2.7-minimal

2 - during python2.7-minimal postinst, if exists copy everything from /usr/lib/python2.7 to /opt/python2.7/lib, then symlink
some
3 - do not symlink python27 in /usr/lib, but add /usr/lib/python2.7/site-packages and /usr/lib/python2.7/dist-packages to python search path way

Last edited by wazrus; 2014-11-13 at 12:44.
 
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#72
I want to sit down and see how the directories are managed first, I don't have it installed at present on my n900, only in vm. I actually like the bind mounts used with 2.5 (opt/pymaemo etc.). There is no reason that the same directories and mounts can't be used with 2.7 as all the files reside within python2.5 folders presently.

I'm gonna guess that Modrana has that file because of development for other devices. Simple packaging fix there.

Marmistrz: Like you, I'd really like to know what owns the python-osso etc in that directory. IF they are seperate packages in 2.5, how are they present now for 2.7?
 

The Following User Says Thank You to Android_808 For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#73
Originally Posted by Android_808 View Post
I'm gonna guess that Modrana has that file because of development for other devices. Simple packaging fix there.
Yeah, it is just garbage that somehow gets generated by distutils when making the modRana package. I know about it and will get rid of it from the modRana package as soon as possible.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 4 Users Say Thank You to MartinK For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#74
Code:
$ mount
rootfs on / type rootfs (rw)
ubi0:rootfs on / type ubifs (rw,bulk_read,no_chk_data_crc)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,noatime,size=1024k)
tmpfs on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755)
none on /dev type tmpfs (rw,noatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noatime,size=65536k)
/dev/mmcblk0p2 on /home type ext3 (noatime,nodiratime,errors=continue,commit=1,data=writeback)
/home/opt on /opt type none (bind,rbind)
nodev on /sys/kernel/debug type debugfs (0)
/opt/pymaemo/usr/lib/python2.5 on /usr/lib/python2.5 type bind (bind,rbind)
/opt/pymaemo/usr/share/pyshared on /usr/share/pyshared type bind (bind,rbind)
/opt/pymaemo/usr/lib/pyshared on /usr/lib/pyshared type bind (bind,rbind)
/opt/pymaemo/usr/share/python-support on /usr/share/python-support type bind (bind,rbind)
/opt/pymaemo/usr/lib/python-support on /usr/lib/python-support type bind (bind,rbind)
/dev/mmcblk0p1 on /home/user/MyDocs type vfat (rw,noauto,nodev,exec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0000,rodir)
/dev/mmcblk1p1 on /media/mmc1 type vfat (rw,noauto,nodev,exec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0000,rodir)
$ dpkg -S '/usr/lib/python2.7*'
modrana: /usr/lib/python2.7
modrana: /usr/lib/python2.7/site-packages/modrana-0.49.4-py2.7.egg-info
modrana: /usr/lib/python2.7/site-packages
$ find /usr/lib/python2.7 | xargs dpkg -S | grep -v 'not found$'
//lots of lines here like these ones.
dpkg: /usr/lib/python2.7/dist-packages/gst-0.10/gst/extend/jukebox.py not found.
dpkg: /usr/lib/python2.7/dist-packages/gst-0.10/gst/extend/sources.py not found.
dpkg: /usr/lib/python2.7/dist-packages/gst-0.10/gst/extend/jukebox.pyc not found.
dpkg: /usr/lib/python2.7/dist-packages/gst-0.10/gst/extend/discoverer.py not found.
dpkg: /usr/lib/python2.7/dist-packages/gst-0.10/gst/extend/utils.pyc not found.
dpkg: /usr/lib/python2.7/dist-packages/gst-0.10/gst/extend/utils.py not found.
dpkg: /usr/lib/python2.7/dist-packages/configobj.py not found.
dpkg: /usr/lib/python2.7/dist-packages/pygst.py not found.
dpkg: /usr/lib/python2.7/dist-packages/PIL.pth not found.
dpkg: /usr/lib/python2.7/python2.7 not found.
I'm also curious. Here's [1] a pastebin of all my packages installed. A simple reflash and reinstall would be the easiest wasy but N900 is my main phone so I can't afford this

And I'm quite skeptical to the bind mount solution. I'd rather go for a good ol' symlink.
And leaving everything as is is not a good idea as this would make porting of modules much more difficult.

/edit: Maybe this is a clue [2] - while removing python2.7-minimal. Maybe it's python2.7-minimal which adds these files & folders?

[1] http://pastebin.com/DYDndzf1
[2] http://pastebin.com/NJvgy8jA
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2014-11-13 at 15:29.
 

The Following User Says Thank You to marmistrz For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#75
I wonder if during installation it is seeing 2.5 modules and incorrectly generating bytecode.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#76
Originally Posted by Android_808 View Post
I wonder if during installation it is seeing 2.5 modules and incorrectly generating bytecode.
So maybe try installing yourself
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 18 | Thanked: 20 times | Joined on Jul 2008
#77
pycentral detects python installed version from /usr/bin/python*.
During postinst of python-osso, for example, pycentral installs it for every detected python-version. But, if /usr/bin/python2.7 exists, python2.7-minimal should be installed and /usr/lib/python2.7 should be a symlink, so we can let pycentral do his job. Do you agree ?

@marmistrz, something strange has happened in your system, like reinstalled those packages when you had a non-optified version of python2.7.
Check if these files are managed py pycentral
Code:
pycentral list | fgrep python2.7
 

The Following 2 Users Say Thank You to wazrus For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#78
Originally Posted by wazrus View Post
pycentral detects python installed version from /usr/bin/python*.
During postinst of python-osso, for example, pycentral installs it for every detected python-version. But, if /usr/bin/python2.7 exists, python2.7-minimal should be installed and /usr/lib/python2.7 should be a symlink, so we can let pycentral do his job. Do you agree ?
It's exactly what I said. In pseudecode
Code:
Installing python2.7-minimal
If exists /usr/lib/python2.7 then
    move /usr/lib/python2.7
    make it a symlink
fi
Continue install
Originally Posted by wazrus View Post
@marmistrz, something strange has happened in your system, like reinstalled those packages when you had a non-optified version of python2.7.
Check if these files are managed py pycentral
Code:
pycentral list | fgrep python2.7
pycentral lists no python2.7 files. I didn't install anything depending on python2.7.
/edit: wait, I previously removed python2.7. Installing it and I'll try once again then.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
www.rzr.online.fr's Avatar
Posts: 1,348 | Thanked: 1,863 times | Joined on Jan 2009 @ fr/35/rennes
#79
this thread as been listed as "Active project"

Feel free to give more info on :

http://wiki.maemo.org/Projects

It's linked from 1st page of http://maemo.org
__________________
Current obsession:

https://purl.org/rzr/abandonware

Please help to list all maemo existing apps :

https://github.com/abandonware/aband...ment-578143760

https://wiki.maemo.org/Apps#

I am looking for " 4 inch TFT LCD display screen " for Nokia n950 HandSet

http://rzr.online.fr/q/lcd


Also, I need online storage to archive files :

http://db.tt/gn5Qffd6#

https://my.pcloud.com/#page=register...e=g8ikZmcfEJy#
 

The Following User Says Thank You to www.rzr.online.fr For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#80
It is pycentral. After installing python2.7 back, it shows a load of files which are the ones in /usr/lib/python2.7

@rzr: in fact this discussion is more related to this: http://talk.maemo.org/showthread.php?t=93902 - we want to port python2.5 modules to python2.7
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2014-11-14 at 20:16.
 

The Following 2 Users Say Thank You to marmistrz For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:54.