maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   what is mounting python? (https://talk.maemo.org/showthread.php?t=37015)

j.s 2009-12-13 19:36

Re: what is mounting python?
 
Quote:

Originally Posted by MrGrim (Post 425829)
Python is installed by default, and i think uninstalling python might break essential system components
It is started everytime a .py file is executed, so there's little chance of not using python at all (it seems to be liked by a lot of devs nowadays)

python was not installed on my n900 until I installed the attitude app. Perhaps you are thinking of perl?

BTW, python is not optified. I think it eats about 15MB.

fpp 2009-12-13 20:23

Re: what is mounting python?
 
There is an optified version but it's not in Extras yet.

asidana 2009-12-13 20:32

Re: what is mounting python?
 
although i have uninstalled butterflyplugin this python mounts comes after reboot. how can i remove them from the automount?

j.s 2009-12-13 20:47

Re: what is mounting python?
 
Quote:

Originally Posted by asidana (Post 426104)
although i have uninstalled butterflyplugin this python mounts comes after reboot. how can i remove them from the automount?

You keep writing as though python is a file system that gets mounted. At first, I thought that this might be because of some problem translating to english.

There is no python file system that gets mounted. automount has nothing to do with this.

It is likely that butterfly plugin does not know whether somthing else depends on python, so uninstalling butterfly plugin does not uninstall python.

There is probably some command that uninstalls python.

asidana 2009-12-13 21:08

Re: what is mounting python?
 
probably i am getting terminology wrong. see my first post's firt image. /usr/lib/python2.5 points to same area as home. they were not there untill i install butterfly plugin and tehy didn't removed after i uninstall it. i am trying to figure out how to remove them.

i unmount them but they come back after reboot.

asidana 2009-12-13 21:14

Re: what is mounting python?
 
for example mount command gives


/opt/pymaemo/usr/lib/python2.5 on /usr/lib/python2.5 type bind (bind)
/opt/pymaemo/usr/share/pyshared on /usr/share/pyshared type bind (bind)
/opt/pymaemo/usr/lib/pyshared on /usr/lib/pyshared type bind (bind)
/opt/pymaemo/usr/share/python-support on /usr/share/python-support type bind (bind)
/opt/pymaemo/usr/lib/python-support on /usr/lib/python-support type bind (bind)

actual folders they point are empty

j.s 2009-12-14 03:49

Re: what is mounting python?
 
Quote:

Originally Posted by asidana (Post 426190)
for example mount command gives


/opt/pymaemo/usr/lib/python2.5 on /usr/lib/python2.5 type bind (bind)
/opt/pymaemo/usr/share/pyshared on /usr/share/pyshared type bind (bind)
/opt/pymaemo/usr/lib/pyshared on /usr/lib/pyshared type bind (bind)
/opt/pymaemo/usr/share/python-support on /usr/share/python-support type bind (bind)
/opt/pymaemo/usr/lib/python-support on /usr/lib/python-support type bind (bind)

actual folders they point are empty

That is strange. Below are the results I get from df -h and mount.
Code:

~ $ df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.8M    157.3M    66.3M  70% /
ubi0:rootfs            227.8M    157.3M    66.3M  70% /
tmpfs                    1.0M    92.0k    932.0k  9% /tmp
tmpfs                  256.0k    76.0k    180.0k  30% /var/run
none                    10.0M    80.0k      9.9M  1% /dev
tmpfs                    64.0M      4.0k    64.0M  0% /dev/shm
/dev/mmcblk0p2            2.0G    50.6M      1.8G  3% /home
/dev/mmcblk0p1          27.0G      1.7G    25.3G  6% /home/user/MyDocs
/dev/mmcblk1p1            7.5G      2.6G      4.9G  34% /media/mmc1
~ $ 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 (rw,noatime,errors=continue,commit=1,data=writeback)
/dev/mmcblk0p1 on /home/user/MyDocs type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir)
/dev/mmcblk1p1 on /media/mmc1 type ext2 (nodiratime)
~ $


kyle 2009-12-14 04:47

Re: what is mounting python?
 
It looks like you have installed some package that was poorly "optified" using bind mounts instead of symbolic links. My guess is that it left some entries in /etc/fstab. If those directories are all empty now then you can just remove the corresponding lines in fstab and be done with it.

Nathan 2009-12-14 05:32

Re: what is mounting python?
 
Actually the newest version of Python uses a "Bind" method to mount the /opt folder for python. This is NORMAL behavior for python now. This allows all of Python to appear as if it is in the proper spot; but because it is so large and we don't actually want it in the /usr folder.

Nathan

kyle 2009-12-14 06:23

Re: what is mounting python?
 
Oh I see. I guess this is in extras-testing now? I'm not seeing it yet.

Why bind mounts instead of symbolic links?


All times are GMT. The time now is 15:46.

vBulletin® Version 3.8.8