Hello Thomas, hello everybody,
I just compiled py library for Pd, and the examples, which are
located inside the package seem like they work fine when I ran the
related pd file with related pyext obj exp [pyext simple ex1].
When I modify the py file, and run the script inside python, it gives
me the following error.
File "simple.py", line 73, in '?' class ex 1(pyext._class): NameError: name 'pyext' is not defined
is it so that the python, in my system, does not understand pyext, or
am I doing something wrong ( or not doing anything) for pd to see the
changes in py file?
How will I be able to make it right so that pyext objects will just
run perfectly well:-)
I am using g3 mac os X Tiger, Macpython-2.4
thanks, Koray.
M.Koray Tahiroglu Media Lab, University of Art and Design Helsinki, TaiK Hameentie 135C 00560 Helsinki Finland http://mlab.uiah.fi/~korayt/ http://purenoise.uiah.fi:8000/ tel: +358 40 754 8449 fax: +358 9 75630 555
Hi Koray,
Koray Tahiroglu schrieb:
Hello Thomas, hello everybody,
I just compiled py library for Pd, and the examples, which are
located inside the package seem like they work fine when I ran the
related pd file with related pyext obj exp [pyext simple ex1].When I modify the py file, and run the script inside python, it gives
me the following error.File "simple.py", line 73, in '?' class ex 1(pyext._class): NameError: name 'pyext' is not defined
is it so that the python, in my system, does not understand pyext, or
am I doing something wrong ( or not doing anything) for pd to see the
changes in py file?How will I be able to make it right so that pyext objects will just
run perfectly well:-)
pyext is a module that is generated inside the py/pyext external and is not available in normal Python. In principle you can declare and use Python classes within pyext without inheriting from pyext._class if you don't use self._outlet, self._send and so on. On the other hand it doesn't make much sense to use these in plain Python (outside PD) because they are supposed to stand for PD externals
best greetings, Thomas
Hello Thomas,
On Oct 28, 2005, at 12:11 AM, Thomas Grill wrote:
Hi Koray,
Koray Tahiroglu schrieb:
Hello Thomas, hello everybody,
I just compiled py library for Pd, and the examples, which are
located inside the package seem like they work fine when I ran
the related pd file with related pyext obj exp [pyext simple ex1].When I modify the py file, and run the script inside python, it
gives me the following error.File "simple.py", line 73, in '?' class ex 1(pyext._class): NameError: name 'pyext' is not defined
is it so that the python, in my system, does not understand pyext,
or am I doing something wrong ( or not doing anything) for pd to
see the changes in py file?How will I be able to make it right so that pyext objects will
just run perfectly well:-)pyext is a module that is generated inside the py/pyext external
and is not available in normal Python. In principle you can declare and use Python classes within pyext
without inheriting from pyext._class if you don't use self._outlet,
self._send and so on. On the other hand it doesn't make much sense to use these in plain
Python (outside PD) because they are supposed to stand for PD
externals
I sort of solved the problem, other than that, it sometimes requires
to restart pd whenever I change something in py file. I was just
trying to test my py codes before I send them to pyext in pd that the
thing related to my question, but my main issue is of course to use
py library to run my py codes with my pd patches.
thanks for the reply, best, Koray.