Reputation: 537
I really like IDLE because it's simple and intuitive, not to mention it is lightweight, but one turnoff is its lack of Line Numbers which is very important (for me).
I installed Python 3.6.0 for all users and then installed IdleX (python setup.py install), both as Admin. The setup went smoothly and the console displayed all processes just fine. However, when I tried to run idlex, an error showed:
Unable to located "idlexlib".
Make sure it is located in the same directory as "idlexlib" or run setup.py
to install IdleX.
python setup.py install --user
I tried uninstalling IDLE then installed it for single user, reboot then run again but the problem is still the same. I tried upgrading to Python 3.6.1 but with no luck. I also tried copying LineNumbers.py to idlelib then edited configextensions.def but still no luck.
This should be a textbook setup (or so I thought) but I can't get it to work.
P.S.: Using Windows 10, 64-bit
Upvotes: 4
Views: 2503
Reputation: 31
This solution works on Ubuntu 20.04.2 LTS, using
The solution to the issue comes in the form of installing idlex, but there's more to it than that, so I've written the whole process.
sudo apt update
sudo apt install -y idle3 python3-setuptools
sudo wget http://sourceforge.net/projects/idlex/files/idlex-1.18.zip -P ~/
cd ~/
unzip idlex-1.18
mv idlex-1.18 .idlex-1.18
rm -rf ~/idlex-1.18 ~/idlex-1.18.zip
cd ~/.idlex-1.18
sudo python3 setup.py install
cd ~/.idlex-1.18
python3 idlex.py
Exit the program and proceed to next step.
nano ~/Desktop/idlex.desktop
Paste into the text file:
python3 ~/.idlex-1.18/idlex.py
Press Ctrl+X and type "Y" and enter to save file to desktop.
sudo chmod +x ~/Desktop/idlex.desktop
Right-click idlex.desktop on your desktop > select "Properties":
Upvotes: 1