Installing python on lynxOS

2006-02-16 Thread Bryce
I'm trying to install python2.4.2 onto lynxOS 4.0.0. with gcc 2.95.3.
I was wondering if anyone who has done this before could give me some
pointers.

I'm currently getting the following error when running make:

gcc -o python Module/python.o libpython2.4.a -lsocket -lm
called2:ld returned 1 exit status
libpython2.4.a(pystate.o):In function 'PyThreadState_New':
Python2.4.2/pystate.c:191: undefined reference to
'_PyGILState_NoteThreadState'
called2:ld returned 1 exit status

I checked pystate.c and the function _PyGILState_NoteThreadState is
defined in the file, so I'm a bit lost here.

-- 
Bryce

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: a new Perl/Python a day

2005-01-09 Thread Scott Bryce
Xah Lee wrote:
frustrated constantly by its inanities and incompetences.)
I don't see what this has to do with Perl.
--
http://mail.python.org/mailman/listinfo/python-list


Re: a new Perl/Python a day

2005-01-09 Thread Scott Bryce
Bob Smith wrote:
Scott Bryce wrote:
Xah Lee wrote:
frustrated constantly by its inanities and incompetences.)

I don't see what this has to do with Perl.

You're joking, right?
No. Perl may have some interesting idiosyncrasies, especially for a 
programmer with little or no Unix experience, but I find it neither 
frustrating, inane nor incompetent. The more I use it, the more I like it.

--
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: Python 2.3.2 for PalmOS available

2005-04-16 Thread bryce . moore
Lucio,

Just tried to install it on my sony clie PEG-S360.  When I try to run
it I get:
Fatal Alert
pythonrun.c, Line: 1483,
Py_Initialize: can't init ints

Aside from my clie being significantly under-powered, I don't know what
else could be wrong.

What version of the Palm OS does this support?

Good luck with this.  I could use a more up-to-date python than Pippy
(http://pippy.sourceforge.net/) offers.

I didn't know where else to post / email this.

bryce

-- 
http://mail.python.org/mailman/listinfo/python-list


Python app links in windows

2006-11-13 Thread Bryce Bolton


I want to click a link, which is assocated with a Python application in
Windows, and have the contents of the link file passed to my program.  How
is this done?

Let's say the link name is:  open_database_viewform_50324.pal (pal =
python application link)

Inside of open_document_number_50324.pal is the following:

"database_entry" "50324"


So, if I have created a python application and compiled it into EXE, then
associated that viewer app, in windows, with the .PAL extension, it will be
called when I click any .PAL "link file".  

My question is:  How do the contents of the link file get passed to the
python application assocated with .PAL files?  Are the file contents passed
as an ARGV array?  There must be more to this because when I open a file
like some_doc.XLS, the entire contents of that file get passed to Excel, but
I don't know how.

Thanks,
Bryce






-- 
http://mail.python.org/mailman/listinfo/python-list


pexpect baudrate and mode settings

2006-09-20 Thread Bryce Bolton
Hi,

I've written a short script in pexpect to open the serial port and get
100 bytes.  The script does receive a string of garbage, but not the
good text seen when I open a minicom terminal and look at ttyS0.  

I know that the baud rate is wrong, and the other settings (such as 8N1) are unknown to me and may also be wrong.  


Question: In Linux, how do I set the baud rate = 19200, 8N1 in pexpect
scenario?  (this example is close to the pexpect documentation, but I
used the fdpexpect.fdspawn extension because pexpect.spawn didn't work.

#!/bin/python
import pexpect
import os
import fdpexpect
fd = os.open("/dev/ttyS0", os.O_RDWR|os.O_NONBLOCK|os.O_NOCTTY )
m = fdpexpect.fdspawn(fd) # Note integer fd is used instead of usual string.
m.send("+++") # Escape sequence
m.send("ATZ0\r") # Reset modem to profile 0
string1 = m.read(100)
print "%s" % string1


Would the baudrate setup be similiar under windows?  Any examples out there?

In short, setting of critical parameters is unclear under pexpect's
documentation, but may be obvious to those more familiar with os.open
or other filesystem internals.

Thanks,
Bryce
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: pexpect baudrate and mode settings

2006-09-20 Thread Bryce Bolton
Hi,

I've written a short script in pexpect to open the serial port and get
100 bytes.  The script does receive a string of garbage, but not the
good text seen when I open a minicom terminal and look at ttyS0.  

I know that the baud rate is wrong, and the other settings (such as 8N1) are unknown to me and may also be wrong.  


Question: In Linux, how do I set the baud rate = 19200, 8N1 in pexpect
scenario?  (this example is close to the pexpect documentation, but I
used the fdpexpect.fdspawn extension because pexpect.spawn didn't work.

#!/bin/python
import pexpect
import os
import fdpexpect
fd = os.open("/dev/ttyS0", os.O_RDWR|os.O_NONBLOCK|os.O_NOCTTY )
m = fdpexpect.fdspawn(fd) # Note integer fd is used instead of usual string.
m.send("+++") # Escape sequence
m.send("ATZ0\r") # Reset modem to profile 0
string1 = m.read(100)
print "%s" % string1


Would the baudrate setup be similiar under windows?  Any examples out there?

In short, setting of critical parameters is unclear under pexpect's
documentation, but may be obvious to those more familiar with os.open
or other filesystem internals.

Thanks,
Bryce


-- 
http://mail.python.org/mailman/listinfo/python-list

Installing python on lynxOS

2006-02-17 Thread Bryce Cooper
I'm trying to install python2.4.2 onto lynxOS 4.0.0. with gcc 2.95.3.  I was wondering if anyone who has done this before could give me some pointers.I'm currently getting the following error when running make:
    gcc -o python Module/python.o libpython2.4.a -lsocket -lm    called2:ld returned 1 exit status    libpython2.4.a(pystate.o):In function 'PyThreadState_New': Python2.4.2/pystate.c:191: undefined reference to '_PyGILState_NoteThreadState'
    called2:ld returned 1 exit statusI checked pystate.c and the function _PyGILState_NoteThreadState is defined in the file, so I'm a bit lost here.-- Bryce
-- 
http://mail.python.org/mailman/listinfo/python-list