Re: Locating python
On Feb 3, 7:30 pm, andrew cooke and...@acooke.org wrote: the exact details of what you are reporting seem a bit odd, but i have seen a similar error because i have tried to use my own account to install the package, instead of using root. what i believe happens is that easy_install first tries to create the test file, and then checks it is there. if it is not there, you get an error. normally the error explains that you need to run as root, but i assume in your case it doesn't - that seems odd, but it seemed worth mentioning anyway. so if you have not done so, instead of python setup.py install do sudo python setup.py install more generally, i have used opensuse 11.0 and 11.1, and generally things work just fine, so i would check you are following all the instructions correctly. good luck, andrew Well, finally it worked. I even uninstalled python and all related stuff with yast2, installed it all again, then wget http://peak.telecommunity.com/dist/ez_setup.py su /path/to/python ez_setup.py and I got the same error: a certain file could not be created, and /usr/local/lib/python2.5/site-packages/ does not exist. Well, I just created them manually (/usr/local/lib was empty) and it worked. When I tried to use easy_install for mnemosyne, I got the same error _but_ this time I was told about running as root (I did it from another terminal). Now I got it installed (still not working, something called qt) but the python installation problem is solved. Thank you very much to all those who contributed. Regards, David -- http://mail.python.org/mailman/listinfo/python-list
Re: Locating python
On Feb 3, 7:35 pm, David Sevilla sevil...@gmail.com wrote: I am quite new to Linux, and thought that by using yast2 there would be no user problems (I am asked for the root password). I will sudo it to see if it solves the problem. yast asked you for the password so that easy_install could be installed correctly. you are now using sudo easy_install to install mnemosyne and sudo is asking for the root password. each time you install something you need to change public files on the system, and so each time you need to use root in some way. yast does this by logging in as root for you, but needs the password to do it. sudo does the same thing, but again needs the password to do it. hope that makes senses (and that this worked). andrew -- http://mail.python.org/mailman/listinfo/python-list
Re: Locating python
andrew cooke wrote: On Feb 3, 7:35 pm, David Sevilla sevil...@gmail.com wrote: I am quite new to Linux, and thought that by using yast2 there would be no user problems (I am asked for the root password). I will sudo it to see if it solves the problem. yast asked you for the password so that easy_install could be installed correctly. you are now using sudo easy_install to install mnemosyne and sudo is asking for the root password. each time you install something you need to change public files on the system, and so each time you need to use root in some way. yast does this by logging in as root for you, but needs the password to do it. sudo does the same thing, but again needs the password to do it. hope that makes senses (and that this worked). actually su needs the root (or the target users') password and sudo needs _your_ (the current users) password. HTH Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list
Re: Locating python
On Feb 4, 9:16 am, andrew cooke and...@acooke.org wrote: actually su needs the root (or the target users') password and sudo needs _your_ (the current users) password. argh, sorry for the confusion. actually, no. sudo requires the root password. at least on opensuse 11.1 default config. i just tried it: Python-2.5.4: sudo make install root's password: this is explained in the sudoers file: # In the default (unconfigured) configuration, sudo asks for the root password. # This allows use of an ordinary user account for administration of a freshly # installed system. When configuring sudo, delete the two # following lines: Defaults targetpw # ask for the password of the target user i.e. root ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'! andrew -- http://mail.python.org/mailman/listinfo/python-list
Re: Locating python
andrew cooke wrote: On Feb 4, 9:16 am, andrew cooke and...@acooke.org wrote: actually su needs the root (or the target users') password and sudo needs _your_ (the current users) password. argh, sorry for the confusion. actually, no. sudo requires the root password. at least on opensuse 11.1 default config. i just tried it: argh. This Nürnberg Windows ;-) But this shows that a sensible configuration of the system is usefull before you start installing services on it :-) Cheers Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list
Re: Locating python
actually su needs the root (or the target users') password and sudo needs _your_ (the current users) password. argh, sorry for the confusion. -- http://mail.python.org/mailman/listinfo/python-list
Re: Locating python
On Feb 3, 11:30 pm, andrew cooke and...@acooke.org wrote: the exact details of what you are reporting seem a bit odd, but i have seen a similar error because i have tried to use my own account to install the package, instead of using root. what i believe happens is that easy_install first tries to create the test file, and then checks it is there. if it is not there, you get an error. normally the error explains that you need to run as root, but i assume in your case it doesn't - that seems odd, but it seemed worth mentioning anyway. so if you have not done so, instead of python setup.py install do sudo python setup.py install more generally, i have used opensuse 11.0 and 11.1, and generally things work just fine, so i would check you are following all the instructions correctly. good luck, andrew On Feb 3, 6:24 pm, David Sevilla sevil...@gmail.com wrote: [...] [Errno 2] No such file or directory: '/usr/local/lib/python2.5/site- packages/test-easy-install-3728.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.5/site-packages/ This directory does not currently exist. [...] From what I have gathered by reading here and there, it seems that the actual path for site-packages is not the place where it is being looked for. Sure enough, I have /usr/local/lib/python2.5/site- packages/ . What worries me is that there is no file called test* I am quite new to Linux, and thought that by using yast2 there would be no user problems (I am asked for the root password). I will sudo it to see if it solves the problem. Thanks, David -- http://mail.python.org/mailman/listinfo/python-list
Re: Locating python
sorry, you are using easy_install, so sudo easy_install instead of what i said a moment ago. the important thing is to use sudo. andrew On Feb 3, 7:30 pm, andrew cooke and...@acooke.org wrote: the exact details of what you are reporting seem a bit odd, but i have seen a similar error because i have tried to use my own account to install the package, instead of using root. what i believe happens is that easy_install first tries to create the test file, and then checks it is there. if it is not there, you get an error. normally the error explains that you need to run as root, but i assume in your case it doesn't - that seems odd, but it seemed worth mentioning anyway. so if you have not done so, instead of python setup.py install do sudo python setup.py install more generally, i have used opensuse 11.0 and 11.1, and generally things work just fine, so i would check you are following all the instructions correctly. good luck, andrew On Feb 3, 6:24 pm, David Sevilla sevil...@gmail.com wrote: [...] [Errno 2] No such file or directory: '/usr/local/lib/python2.5/site- packages/test-easy-install-3728.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.5/site-packages/ This directory does not currently exist. [...] From what I have gathered by reading here and there, it seems that the actual path for site-packages is not the place where it is being looked for. Sure enough, I have /usr/local/lib/python2.5/site- packages/ . What worries me is that there is no file called test* -- http://mail.python.org/mailman/listinfo/python-list
Re: Locating python
On Feb 3, 3:24 pm, David Sevilla sevil...@gmail.com wrote: Hi, Apologies if this was answered somewhere else, I have not found anything similar anywhere. I have SUSE 11.0 and I am trying to install a program called mnemosyne. I need easy_install for this, for which I installed setuptools through yast2. But when I run easy_install for the final installation, I get an error like this: [...] [Errno 2] No such file or directory: '/usr/local/lib/python2.5/site- packages/test-easy-install-3728.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.5/site-packages/ This directory does not currently exist. [...] From what I have gathered by reading here and there, it seems that the actual path for site-packages is not the place where it is being looked for. Sure enough, I have /usr/local/lib/python2.5/site- packages/ . What worries me is that there is no file called test* there, and I am not even able to find the site.py file mentioned in site-packages/README. I suspect that I have two concurrent installations or something like that (I do have python and python2.5 inside /usr/lib). How do I untangle this? Or at least how do I get easy_install to find the right place? Thanks a lot, David I would get setuptools from the official source: http://peak.telecommunity.com/DevCenter/setuptools http://pypi.python.org/pypi/setuptools Install it using the python of your choice. You may have to pass a full path to the python binary to make sure you're using the right one. So, after downloading and decompressing the setuptools package, change directory into it. Then run something like this: /path/to/python setup.py install I think that will work...of course, your mileage may vary. I haven't used SUSE. Doesn't SUSE have a package manager like Ubuntu's apt-get? You might be able to just use that too.. Mike -- http://mail.python.org/mailman/listinfo/python-list
Locating python
Hi, Apologies if this was answered somewhere else, I have not found anything similar anywhere. I have SUSE 11.0 and I am trying to install a program called mnemosyne. I need easy_install for this, for which I installed setuptools through yast2. But when I run easy_install for the final installation, I get an error like this: [...] [Errno 2] No such file or directory: '/usr/local/lib/python2.5/site- packages/test-easy-install-3728.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.5/site-packages/ This directory does not currently exist. [...] From what I have gathered by reading here and there, it seems that the actual path for site-packages is not the place where it is being looked for. Sure enough, I have /usr/local/lib/python2.5/site- packages/ . What worries me is that there is no file called test* there, and I am not even able to find the site.py file mentioned in site-packages/README. I suspect that I have two concurrent installations or something like that (I do have python and python2.5 inside /usr/lib). How do I untangle this? Or at least how do I get easy_install to find the right place? Thanks a lot, David -- http://mail.python.org/mailman/listinfo/python-list
Re: Locating python
the exact details of what you are reporting seem a bit odd, but i have seen a similar error because i have tried to use my own account to install the package, instead of using root. what i believe happens is that easy_install first tries to create the test file, and then checks it is there. if it is not there, you get an error. normally the error explains that you need to run as root, but i assume in your case it doesn't - that seems odd, but it seemed worth mentioning anyway. so if you have not done so, instead of python setup.py install do sudo python setup.py install more generally, i have used opensuse 11.0 and 11.1, and generally things work just fine, so i would check you are following all the instructions correctly. good luck, andrew On Feb 3, 6:24 pm, David Sevilla sevil...@gmail.com wrote: [...] [Errno 2] No such file or directory: '/usr/local/lib/python2.5/site- packages/test-easy-install-3728.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.5/site-packages/ This directory does not currently exist. [...] From what I have gathered by reading here and there, it seems that the actual path for site-packages is not the place where it is being looked for. Sure enough, I have /usr/local/lib/python2.5/site- packages/ . What worries me is that there is no file called test* -- http://mail.python.org/mailman/listinfo/python-list
Re: Locating python
Mike Driscoll wrote: On Feb 3, 3:24 pm, David Sevilla sevil...@gmail.com wrote: Hi, Apologies if this was answered somewhere else, I have not found anything similar anywhere. I have SUSE 11.0 and I am trying to install a program called mnemosyne. I need easy_install for this, for which I installed setuptools through yast2. But when I run easy_install for the final installation, I get an error like this: [...] [Errno 2] No such file or directory: '/usr/local/lib/python2.5/site- packages/test-easy-install-3728.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.5/site-packages/ This directory does not currently exist. [...] From what I have gathered by reading here and there, it seems that the actual path for site-packages is not the place where it is being looked for. Sure enough, I have /usr/local/lib/python2.5/site- packages/ . What worries me is that there is no file called test* there, and I am not even able to find the site.py file mentioned in site-packages/README. I suspect that I have two concurrent installations or something like that (I do have python and python2.5 inside /usr/lib). How do I untangle this? Or at least how do I get easy_install to find the right place? Thanks a lot, David I would get setuptools from the official source: http://peak.telecommunity.com/DevCenter/setuptools http://pypi.python.org/pypi/setuptools Install it using the python of your choice. You may have to pass a full path to the python binary to make sure you're using the right one. So, after downloading and decompressing the setuptools package, change directory into it. Then run something like this: /path/to/python setup.py install I think that will work...of course, your mileage may vary. I haven't used SUSE. Doesn't SUSE have a package manager like Ubuntu's apt-get? You might be able to just use that too.. Easier still: wget http://peak.telecommunity.com/dist/ez_setup.py /path/to/python ez_setup.py rm ez_setup.py regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Locating python
On Feb 3, 11:24 pm, Mike Driscoll kyoso...@gmail.com wrote: On Feb 3, 3:24 pm, David Sevilla sevil...@gmail.com wrote: Hi, Apologies if this was answered somewhere else, I have not found anything similar anywhere. I have SUSE 11.0 and I am trying to install a program called mnemosyne. I need easy_install for this, for which I installed setuptools through yast2. But when I run easy_install for the final installation, I get an error like this: [...] [Errno 2] No such file or directory: '/usr/local/lib/python2.5/site- packages/test-easy-install-3728.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.5/site-packages/ This directory does not currently exist. [...] From what I have gathered by reading here and there, it seems that the actual path for site-packages is not the place where it is being looked for. Sure enough, I have /usr/local/lib/python2.5/site- packages/ . What worries me is that there is no file called test* there, and I am not even able to find the site.py file mentioned in site-packages/README. I suspect that I have two concurrent installations or something like that (I do have python and python2.5 inside /usr/lib). How do I untangle this? Or at least how do I get easy_install to find the right place? Thanks a lot, David I would get setuptools from the official source: http://peak.telecommunity.com/DevCenter/setuptoolshttp://pypi.python.org/pypi/setuptools Install it using the python of your choice. You may have to pass a full path to the python binary to make sure you're using the right one. So, after downloading and decompressing the setuptools package, change directory into it. Then run something like this: /path/to/python setup.py install I think that will work...of course, your mileage may vary. I haven't used SUSE. Doesn't SUSE have a package manager like Ubuntu's apt-get? You might be able to just use that too.. Mike Actually, a manual installation is probably the best thing to do, since I did use the SUSE package manager (yast2) to install setuptools and never had a chance to choose installation paths. Thanks, David -- http://mail.python.org/mailman/listinfo/python-list