Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Scite and Python< Next Oldest | Next Newest >
justin_noodle Offline





Group: Members
Posts: 7
Joined: Jan. 2005
Posted: Jan. 31 2005,13:16 QUOTE

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
Back to top
Profile PM 
SaidinUnleashed Offline





Group: Members
Posts: 1428
Joined: Mar. 2004
Posted: Jan. 31 2005,15:13 QUOTE

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.


--------------
They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, cause if you play it forwards, it installs Windows.

Unleash the power of the TILDE~~~
Back to top
Profile PM AOL MSN YIM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Jan. 31 2005,16:27 QUOTE

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.
Back to top
Profile PM 
justin_noodle Offline





Group: Members
Posts: 7
Joined: Jan. 2005
Posted: Feb. 03 2005,06:10 QUOTE

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 : )
Back to top
Profile PM 
3 replies since Jan. 31 2005,13:16 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Scite and Python

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code