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)

asidana 2009-12-13 17:00

what is mounting python?
 
have a look at this screenshot

http://static.pixelpipe.com/c1edbfd2...f786ea48_m.jpg

something mounting python stuff on the device. i had butterfly plugin installed and they shold have been removed after uninstallation of butterfly plugin but they didn't.

Here wat i got installed

http://static.pixelpipe.com/43214c4f...76ad11e8_m.jpg

http://static.pixelpipe.com/4643e4b6...901437c5_m.jpg

http://static.pixelpipe.com/523c2cc7...0fe14856_m.jpg

http://static.pixelpipe.com/3f2cd5fd...0f09f2be_m.jpg

MrGrim 2009-12-13 17:04

Re: what is mounting python?
 
Don't a lot of widgets use python? It could be any of them
Does python cause problems, or do anything to make you want to get rid of it?

asidana 2009-12-13 17:09

Re: what is mounting python?
 
call me obsessive-compolsive ( ;) )but it wasn't like that in fresh boot . I am trying to understand what installed it so i can remove it.

asidana 2009-12-13 17:18

Re: what is mounting python?
 
is there anyway finding out which app depends on python2.5

MrGrim 2009-12-13 17:19

Re: what is mounting python?
 
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)

fpp 2009-12-13 17:22

Re: what is mounting python?
 
No it's not, at least it wasn't on my unit. It gets installed the first time you install an app that has it as a dependency (such as PyGTKeditor, or certain widgets).

floffe 2009-12-13 17:26

Re: what is mounting python?
 
Running apt-cache rdepends python will show which packages depend on python (and hence pulled it in when they were installed). If that tells you that no package "python" was found, run dpkg -S python and pick the proper one (probably a python2.6 or similar).

Venomrush 2009-12-13 17:32

Re: what is mounting python?
 
Tip: Rather than using load-applet screenshot tool (as it shows the You have 20s...) just press Ctrl+Shift+P

asidana 2009-12-13 17:56

Re: what is mounting python?
 
butterfly installs it but doesnt remove when you uninstall it.

i tried to install it with apt-get and remove but mount points stays.
you can remove and unmount python shares and manualy remove folders but not sure if it is good idea

decantur 2009-12-13 18:12

Re: what is mounting python?
 
Quote:

Originally Posted by floffe (Post 425833)
Running apt-cache rdepends python will show which packages depend on python (and hence pulled it in when they were installed). If that tells you that no package "python" was found, run dpkg -S python and pick the proper one (probably a python2.6 or similar).

If I am not mistaken, 'apt-cache rdepends python' will show any repository package that depends on python - whether it is installed or not.

I suppose a nice project for someone would be to port over the deborphan tool.

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?

wierdo 2009-12-14 06:45

Re: what is mounting python?
 
Quote:

Originally Posted by kyle (Post 426714)
Oh I see. I guess this is in extras-testing now? I'm not seeing it yet.

Why bind mounts instead of symbolic links?

Symbolic links take up (a small amount of) space and directory entries. A lot of directory entries if a complex app with a lot of files is run through the optify tool.

For something like python, the bind mounts are far better.

And to the OP: They aren't taking up space on /usr. If the tool you are using claims those directories are taking up space on /usr, the tool is broken.

asidana 2009-12-14 08:22

Re: what is mounting python?
 
Quote:

Originally Posted by kyle (Post 426648)
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.

when i do vi /etc/fstab there are no entries related to phython. Where else they can be mounted/binded from?

j.s 2009-12-14 16:10

Re: what is mounting python?
 
Quote:

Originally Posted by Nathan (Post 426676)
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

Why can't the proper spot be in /opt?

SubCore 2009-12-14 16:23

Re: what is mounting python?
 
Quote:

Originally Posted by j.s (Post 427292)
Why can't the proper spot be in /opt?

Well, because!

j.s 2009-12-14 16:29

Re: what is mounting python?
 
Quote:

Originally Posted by SubCore (Post 427307)
Well, because!

Quote:

/opt is reserved for the installation of add-on application software packages.
python is an add-on application software package.

SubCore 2009-12-14 17:25

Re: what is mounting python?
 
Quote:

Originally Posted by j.s (Post 427314)
python is an add-on application software package.

no, it's not.
it's a runtime library required by other applications and as such part of the system.

ewan 2009-12-14 17:36

Re: what is mounting python?
 
I think it's pretty well established that the 'optification' plan is a grade A ugly hack, so doing something different on the grounds of FHS compliance is eccentric to say the least.

And as for:
Quote:

Originally Posted by wierdo (Post 426729)
Symbolic links take up (a small amount of) space and directory entries. A lot of directory entries if a complex app with a lot of files is run through the optify tool.

For something like python, the bind mounts are far better.

Surely the obvious solution is to hand craft the symlinks to link whole directories, not each file they contain? Sure, it's more effort than the automatic tool, but no more than manually creating a bind mount based setup is.

Rushmore 2009-12-14 17:38

Re: what is mounting python?
 
The thread title alone is just so wrong;)

yerga 2009-12-14 18:00

Re: what is mounting python?
 
The optification methods for Python were discussed in the mailing lists, and the best solution was to do the bind method.

Some links on the discussion:

http://lists.maemo.org/pipermail/mae...er/022323.html

http://lists.maemo.org/pipermail/mae...er/021348.html

https://garage.maemo.org/pipermail/p...er/001091.html

There are more places with the python optification discussion, but those three aren't bad for starters.

dvergin 2009-12-14 18:19

Re: what is mounting python?
 
Quote:

Originally Posted by fpp (Post 426085)
There is an optified version but it's not in Extras yet.

While I understand what is being described in this thread in a general sense, I'm not at all clear on the practical implications...

Is the current binding version of Python perfectly okay?
Does it place much of a storage burden on root storage space (as suggested earlier in this thread)?
Should we delay and wait for the optified version?
Will the optified version automatically replace the current version when it hits extras? Or do we need to even worry about that at all?

SubCore 2009-12-14 19:08

Re: what is mounting python?
 
Quote:

Originally Posted by ewan (Post 427400)
I think it's pretty well established that the 'optification' plan is a grade A ugly hack, so doing something different on the grounds of FHS compliance is eccentric to say the least.

what do you mean?
i referenced the fhs to show that there are certain things (like python) which are expected to be in certain paths. which is why we need the whole optification in the first place :)

thanks for the links, yerga. i really ought to subscribe to the mailing list(s). :D

mounting really seems to be the best way to optify python. hopefully it's the only exception, filling up the mount table would not be nice.

statwrangler 2009-12-15 00:22

Re: what is mounting python?
 
Quote:

Originally Posted by Rushmore (Post 427403)
The thread title alone is just so wrong;)

Not wrong. The answer is John Cleese.


All times are GMT. The time now is 17:47.

vBulletin® Version 3.8.8