![]() |
Python association problems? Please help
Hello everyone. I use to be able to type the name of a Python program that I wanted to run at a xterminal and it worked like this:
Code:
somepythonprogram.py Code:
python2.5 somepythonprogram.py I've uninstalled Python-2.5 and re-installed it a million times. I've done "apt-get python...." a million times. I've installed Python launcher in hopes that something would get fixed but to no avail. I've also read and tried different things for hours on end and nothing seems to be fixing it. |
Re: Python association problems? Please help
Quote:
What's the output if you run "python /usr/bin/mClock"? From the terminal, I mean. Also, it would be useful if you upload the file created with: "dpkg -l python* > /media/mmc2/installed_python_packages.txt" |
Re: Python association problems? Please help
1 Attachment(s)
Oh man, thanks yerga for helping. Here are the results you asked for.
Quote:
Code:
/bin/sh: not found Quote:
Code:
/bin/sh: not found Code:
python2.5 /usr/bin/mClock Code:
File "/usr/bin/mClock", line 2 Quote:
|
Re: Python association problems? Please help
Did you have python launcher installed and then uninstall it?
I had this same issue a week or so ago, and it looks like when I uninstalled python launcher it didn't repair the link for "/usr/bin/python" If you run the command Code:
cd /usr/bin If it shows a different target, you'll need to run the following command as root to get it working: Code:
rm python |
Re: Python association problems? Please help
hvacengi,
YES, YES, YES... That did it. Awesome. I'd hit 'thanks' ten times but that would just leave you with no thanks. Thank you both for your awesome help. |
Re: Python association problems? Please help
Ha ha, I'm glad I could help out!
|
All times are GMT. The time now is 16:38. |
vBulletin® Version 3.8.8