>>> class foo(BWindow.BWindow):
... pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: base is not a class object
Not entirely sure what the message means (beyond the obvious that it
does not believe the class is a class, so to speak). (Btw, I did
previously import BWindow).
Anyone here have BeOS experience with Python? The "rest" of python
works fine. I've built and added packages to it and am in the process
of coding an application which I will, eventually, want a front end for.
Thanks!
Mike 7 1361
No takers, eh? :/
I can't be the only python user on BeOS...
The only thing I can think of is that I am running "bone".
Mike
Quoth Zoo Keeper <ca*******@comcast.net>:
| No takers, eh? :/
|
| I can't be the only python user on BeOS...
|
| The only thing I can think of is that I am running "bone".
Well, at least now we know one thing about your setup.
In later versions, a Python class can definitely inherit
from BWindow. If you have the 0.5.1 distribution, the
programs in "test" do it that way, and they work. Earlier
versions, before 0.5.0, can't do this (and neither can
older versions of Python.) It is certainly possible to
mess up the BeOS libraries while trying to improve them,
though, as demonstrated by the 3rd party "Developer Edition".
That certainly could be your problem.
You're not the only Python user on BeOS, but they are few.
Given the level of general interest, I think you'd have
better odds posting to comp.sys.be.programmer.
As for what I read as your implicit question, will you be
sorry you chose to develop your application in Python with
a Bethon UI - it depends on the details. The functions
available here are numerous but not nearly the whole Be API,
and there are whole areas of functionality that it will
probably never get into. It's pretty useful for casual
stuff, but probably not for real hard core polished
applications. Distribution will be a harder, too, than
a straight C++ program.
Donn Cave, do**@drizzle.com
Don! You've done great work. I suppose I can try rebuilding after switching
back to net_server. I have 2.2.2 w/0.5.0 and that failed as well, btw. I
apologize for not providing more information, I did not seek to irritate you.
:/ (as you sound in your response) and I appreciate all the work you've done.
Neither did I mean to imply that I was not sure if I wanted to use
Python/Bethon. I love Python, and I love BeOS. Bethon seems to be the way to
go, altho' I need to learn Bethon.
So, anyway, I will try switching back to net_server, building 0.5.1 for 2.2.2
and give it another go.
Mike
In message <1074926701.236022@yasure>, "Donn Cave" wrote: Quoth Zoo Keeper <ca*******@comcast.net>: | No takers, eh? :/ | | I can't be the only python user on BeOS... | | The only thing I can think of is that I am running "bone".
Well, at least now we know one thing about your setup.
In later versions, a Python class can definitely inherit from BWindow. If you have the 0.5.1 distribution, the programs in "test" do it that way, and they work. Earlier versions, before 0.5.0, can't do this (and neither can older versions of Python.) It is certainly possible to mess up the BeOS libraries while trying to improve them, though, as demonstrated by the 3rd party "Developer Edition". That certainly could be your problem.
You're not the only Python user on BeOS, but they are few. Given the level of general interest, I think you'd have better odds posting to comp.sys.be.programmer.
As for what I read as your implicit question, will you be sorry you chose to develop your application in Python with a Bethon UI - it depends on the details. The functions available here are numerous but not nearly the whole Be API, and there are whole areas of functionality that it will probably never get into. It's pretty useful for casual stuff, but probably not for real hard core polished applications. Distribution will be a harder, too, than a straight C++ program.
Donn Cave, do**@drizzle.com
Rebuilt with Net_Server. Works fine now.
Mike
Donn Cave wrote: Quoth Zoo Keeper <ca*******@comcast.net>: | No takers, eh? :/ | | I can't be the only python user on BeOS... | | The only thing I can think of is that I am running "bone".
Well, at least now we know one thing about your setup.
In later versions, a Python class can definitely inherit from BWindow. If you have the 0.5.1 distribution, the programs in "test" do it that way, and they work. Earlier versions, before 0.5.0, can't do this (and neither can older versions of Python.) It is certainly possible to mess up the BeOS libraries while trying to improve them, though, as demonstrated by the 3rd party "Developer Edition". That certainly could be your problem.
You're not the only Python user on BeOS, but they are few. Given the level of general interest, I think you'd have better odds posting to comp.sys.be.programmer.
As for what I read as your implicit question, will you be sorry you chose to develop your application in Python with a Bethon UI - it depends on the details. The functions available here are numerous but not nearly the whole Be API, and there are whole areas of functionality that it will probably never get into. It's pretty useful for casual stuff, but probably not for real hard core polished applications. Distribution will be a harder, too, than a straight C++ program.
Donn Cave, do**@drizzle.com
Quoth Michael S. Jessop <ca*******@comcast.net>:
| Rebuilt with Net_Server. Works fine now.
Thanks, that's interesting. I would not have guessed that the
host network implementation could be a factor in the Python
type/class internals that seemed to be failing for you, so I'm
guessing that when you choose between the two, there are some
other things that come along that have nothing to do with the
network. I'm actually running a BONE system right now, as I
type this, and the Python inheritance works fine - Zeta RC1.
Python+Bethon comes on the CD, but looks like it's the standard
issue software built on 5.03 (and has a problem with the Zeta
internationalization software, crashes on exit after I suppose
it freed something it wasn't supposed to.)
Donn Cave, do**@drizzle.com
Quoth Zoo Keeper <ca*******@comcast.net>:
....
| Neither did I mean to imply that I was not sure if I wanted to use
| Python/Bethon. I love Python, and I love BeOS. Bethon seems to be the way to
| go, altho' I need to learn Bethon.
As far as I know, there's no alternative. Just wanted to point out
that some limitations and impediments come with this path, compared
to C++.
On the other hand, Python may actually solve one problem that some
people claim is serious defect of BeOS. When Be was alive, the
pervasively multithreaded architecture was supposed to be a big
advantage, but after they crashed, even Be engineers came out of
the woodwork to claim that the concurrency issues posed too difficult
of a problem for most developers and were thus responsible for a lot
of unreliable software.
I loved the thread-per-window architecture myself and never noticed
any problem, and at first I figured that might have been because
I fastidiously follow a queuing, event I/O model for thread interop
in my own application. But Python itself takes some of the teeth
out of concurrency problems, because the interpreter doesn't run
in parallel. So while your program executes in parallel, your code
doesn't - only the library functions are parallel.
Donn Cave, do**@drizzle.com
That IS interesting. :/ Granted my machine was customized to some extent, but
it was basically 5.03 Pro, with BONE and OpenTracker and Mail Daemon
replacement.
I did also install the LibPak.
Mike
In message <1075053883.217392@yasure>, "Donn Cave" wrote: Quoth Michael S. Jessop <ca*******@comcast.net>: | Rebuilt with Net_Server. Works fine now.
Thanks, that's interesting. I would not have guessed that the host network implementation could be a factor in the Python type/class internals that seemed to be failing for you, so I'm guessing that when you choose between the two, there are some other things that come along that have nothing to do with the network. I'm actually running a BONE system right now, as I type this, and the Python inheritance works fine - Zeta RC1. Python+Bethon comes on the CD, but looks like it's the standard issue software built on 5.03 (and has a problem with the Zeta internationalization software, crashes on exit after I suppose it freed something it wasn't supposed to.)
Donn Cave, do**@drizzle.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Stephen Horne |
last post by:
Just recently I decided I want to make use of my ISP freebie webspace.
In order to make that easier, I'd like to be able to automatically
synchronise an FTP file/folder heirarchy with one on my...
|
by: Charles Krug |
last post by:
List:
I'm trying to use the example files from Programming Python, 2nd Ed.
I've copied them into c:\Python24\Examples\PP2E.
Launching any of the examples programs by themselves seems to work...
|
by: seberino |
last post by:
Is there any advantage to a language having a nice mathematically
compact grammar like LISP does? (or at least used to?)
Many have admired the mathematically simple grammar of LISP
in which much...
|
by: vduber6er |
last post by:
First off this is in unix.
I have a C file that has python embedded in it. In the script I have
the following
PyRun_SimpleString(code);
where
code = "import mymodule"
|
by: tkondal |
last post by:
Hi all.
I just started looking at Python's ctypes lib and I am having trouble
using it for a function.
For starters, here's my Python code:
from ctypes import*;
myStringDLL=...
|
by: Daniel Klein |
last post by:
Here's a c routine that prints a single line :
#include <stdio.h>
main()
{
printf ("Hello World!\n");
}
And now the Python program (called 'po.py') that uses 'popen2' :
|
by: =?Utf-8?B?V2lsbGlhbSBQb3dlbGw=?= |
last post by:
I've having trouble searching within the
microsoft.public.dotnet.framework.microframework
newsgroup. In the Search For: box, I enter "porting" (no quotes), select
the newsgroup as listed above,...
|
by: Alexnb |
last post by:
Okay, what I want to do with this code is to got to thesaurus.reference.com
and then search for a word and get the syns for it. Now, I can get the syns,
but they are still in html form and some are...
|
by: sab |
last post by:
Hello,
I have been working on a python script to parse a continuously growing
log file on a UNIX server. The input is the standard in, piped in
from the log file. The application works well...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |