myDSL Extensions (deprecated) :: Scite and Python
Ive downloaded both Python and Scite through the myDSL script. Ive entered the folling lines into xterminal:
export PATH=$PATH:/opt/python/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/python/lib
And am able to get into the Python interactive interpreter. All good there.
Scite opens and looks pretty nice but when I hit F5 for Go, I get the following:
>python -u test.py
sh: line 1: python: command not found
>Exit code: 32512
I am running DSL from a HD install and Python is in the path: /opt/python
Thanks
Possible answers.
1. You used the mydsl gui, yes? on a hdinstall?
baaaaad. the mydsl gui is the fastest way to kill a hdinstall.
Download extensions with firefox or dillo and md5sum them BEFORE installing it.
2. to tired to think of a 2.
-J.P.
justin_noodle, you need to edit some settings in scite. Open a bash shell and type sudo scite. You need to be root to change this particular file. Next, under the scite menus, choose Options-> edit properties-> open python.properties
Now go down to the bottom of this file and change
command.go.*.py=python -u $(FileNameExt)
to
command.go.*.py=/opt/python/bin/python -u $(FileNameExt)
and save that files. if you opened scite in the same bash shell you typed LD_LIBRARY_PATH in, the dependancies should be found if you are importing modules.
Thanks for the replies,
Saidin, when you say this is a bad idea, installing software through the MyDSL gui, could you please elaborate a little more on this?
heh, Ive downloaded a lot of stuff through there and other than a couple apps not working for whatever reason, Ive had no other real problems.
The issue I am having is with Python still. When I reboot my computer, to use Python I have to reenter the path commands. I am thinking that maybe there is a boot up script or logon script I can edit to auto set these?
The other issue is, after I had edited the python.properties in Scite, when running a simple script, I get a traceback when python gets to a raw_input() . In the interactive prompt I am able to use raw_input() without a problem.
The error is: IOError: [Errno 9] Bad file descriptor.
Any ideas what is going on here?
Thanks for your time : )
original here.