Discussion:
Branch is basically working...
Stuart Axon
2010-05-30 22:33:46 UTC
Permalink
Since my branch is basically working at about the level of shoebot-main, I'm thinking about pushing it to main in the next
few days, unless there are any objections.

Then we can release it as 0.4


New features
Can use variables in size()
Performance seems better
CENTER/CORNER mode for translations
also - new pathmode: CORNER/CENTER - So you can draw paths that are centered
variables
call background() anywhere in the code
Some more missing methods in BezierPaths ported from nodebox
snapshot to vector formats outputs with vectors

Will do this later:
Multithreaded drawing - This isn't there yet, but everything is architected to make
it possible.

New requirement: Python 2.6

Definitely dead:
IDE

During the reorganising I broke pretty much everything :) It should be working,
releasing to a wider audience seems the best way of finding bugs at this
point.

S++
Sebastian Oliva
2010-05-31 01:37:47 UTC
Permalink
Post by Stuart Axon
Since my branch is basically working at about the level of shoebot-main, I'm thinking about pushing it to main in the next
few days, unless there are any objections.
Then we can release it as 0.4
New features
Can use variables in size()
Performance seems better
CENTER/CORNER mode for translations
also - new pathmode: CORNER/CENTER - So you can draw paths that are centered
variables
call background() anywhere in the code
Some more missing methods in BezierPaths ported from nodebox
snapshot to vector formats outputs with vectors
Multithreaded drawing - This isn't there yet, but everything is architected to make
it possible.
New requirement:  Python 2.6
IDE
During the reorganising I broke pretty much everything :)  It should be working,
releasing to a wider audience seems the best way of finding bugs at this
point.
S++
_______________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Stuart, thanks for all the work.
however, I'm having some difficulties on making it run


tian ~/sketches> sbot beat.py
Traceback (most recent call last):
File "/usr/local/bin/sbot", line 136, in <module>
show_vars = options.varwindow)
File "/usr/local/lib/python2.6/site-packages/shoebot/sbot.py", line 57, in run
sink = CairoImageSink(filename = outputfile, format = format,
multifile = iterations > 1)
TypeError: __init__() takes exactly 2 non-keyword arguments (1 given)

thanks,

Sebastian
Sebastian Oliva
2010-05-31 01:48:41 UTC
Permalink
Post by Sebastian Oliva
Post by Stuart Axon
Since my branch is basically working at about the level of shoebot-main, I'm thinking about pushing it to main in the next
few days, unless there are any objections.
Then we can release it as 0.4
New features
Can use variables in size()
Performance seems better
CENTER/CORNER mode for translations
also - new pathmode: CORNER/CENTER - So you can draw paths that are centered
variables
call background() anywhere in the code
Some more missing methods in BezierPaths ported from nodebox
snapshot to vector formats outputs with vectors
Multithreaded drawing - This isn't there yet, but everything is architected to make
it possible.
New requirement:  Python 2.6
IDE
During the reorganising I broke pretty much everything :)  It should be working,
releasing to a wider audience seems the best way of finding bugs at this
point.
S++
_______________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Stuart, thanks for all the work.
however, I'm having some difficulties on making it run
tian ~/sketches> sbot beat.py
 File "/usr/local/bin/sbot", line 136, in <module>
   show_vars = options.varwindow)
 File "/usr/local/lib/python2.6/site-packages/shoebot/sbot.py", line 57, in run
   sink = CairoImageSink(filename = outputfile, format = format,
multifile = iterations > 1)
TypeError: __init__() takes exactly 2 non-keyword arguments (1 given)
thanks,
Sebastian
Sorry for the dupe post, I did a clean reinstall, and i got:

tian:~/shoe/shoebot-dq> sbot ~/sketches/Ovals.py
Traceback (most recent call last):
File "./sbot", line 136, in <module>
show_vars = options.varwindow)
File "/home/tian/shoe/shoebot-dq/shoebot/sbot.py", line 42, in run
from core import CairoCanvas, CairoImageSink
File "/home/tian/shoe/shoebot-dq/shoebot/core/__init__.py", line 39,
in <module>
from bot import Bot
File "/home/tian/shoe/shoebot-dq/shoebot/core/bot.py", line 36, in <module>
from shoebot.data import BezierPath, EndClip, Color, Text, Variable, \
File "/home/tian/shoe/shoebot-dq/shoebot/data/__init__.py", line 64,
in <module>
from transforms import Transform, TransformMixin
ImportError: No module named transforms

thanks again
Sebastian Oliva
2010-05-31 03:22:23 UTC
Permalink
Doh !  I wasn't testing with a clean install, it should be working now.
Hi,
Sorry, to bug you again, cleaned the previous version and got

***@Kaji-Ryoji:~/sketches> sbot Ovals.py
Traceback (most recent call last):
File "/usr/local/bin/sbot", line 136, in <module>
show_vars = options.varwindow)
File "/usr/local/lib/python2.6/site-packages/shoebot/sbot.py", line 57, in run
sink = CairoImageSink(filename = outputfile, format = format,
multifile = iterations > 1)
TypeError: __init__() takes exactly 2 non-keyword arguments (1 given)
***@Kaji-Ryoji:~/sketches> sbot -o bleg.png Ovals.py
Traceback (most recent call last):
File "/usr/local/bin/sbot", line 136, in <module>
show_vars = options.varwindow)
File "/usr/local/lib/python2.6/site-packages/shoebot/sbot.py", line 57, in run
sink = CairoImageSink(filename = outputfile, format = format,
multifile = iterations > 1)
TypeError: __init__() takes exactly 2 non-keyword arguments (1 given)
***@Kaji-Ryoji:~/sketches> sbot -w Ovals.py
Traceback (most recent call last):
File "/usr/local/bin/sbot", line 136, in <module>
show_vars = options.varwindow)
File "/usr/local/lib/python2.6/site-packages/shoebot/sbot.py", line 67, in run
bot.sb_run(src, iterations, run_forever = window, frame_limiter = window)
File "/usr/local/lib/python2.6/site-packages/shoebot/core/grammar.py",
line 146, in sb_run
self._exec_frame(source_or_code, limit = frame_limiter)
File "/usr/local/lib/python2.6/site-packages/shoebot/core/grammar.py",
line 109, in _exec_frame
self._canvas.flush(self._frame)
File "/usr/local/lib/python2.6/site-packages/shoebot/core/canvas.py",
line 153, in flush
self.sink.render(self.size_or_default(), frame, self._drawqueue)
File "/usr/local/lib/python2.6/site-packages/shoebot/core/drawqueue_sink.py",
line 20, in render
r_context = self.create_rcontext(size, frame)
File "/usr/local/lib/python2.6/site-packages/shoebot/gui/gtk_window.py",
line 110, in create_rcontext
return self.sb_widget.create_rcontext(size, frame)
File "/usr/local/lib/python2.6/site-packages/shoebot/gui/gtk_drawingarea.py",
line 54, in create_rcontext
meta_surface = RecordingSurface(*size)
File "/usr/local/lib/python2.6/site-packages/shoebot/util.py", line
199, in RecordingSurface
_svg_surface = SVGSurface(fobj, 0, 0)
TypeError: SVGSurface argument 1 must be a filename (str), file
object, or an object that has a "write" method (like StringIO)
Stuart Axon
2010-05-31 03:59:05 UTC
Permalink
Sent: Mon, May 31, 2010 4:22:23 AM
Subject: Re: [shoebot-devel] Branch is basically working...
On Sun, May 30, 2010 at 9:07 PM, Stuart Axon <
Doh !
I wasn't testing with a clean install, it should be working
now.
Hi,
Sorry, to bug you again, cleaned the previous version and
got
Hehe, don't worry about any bugging - it needs testing to find my bugs :)

ea.py",
line
54, in create_rcontext
meta_surface =
RecordingSurface(*size)
File
"/usr/local/lib/python2.6/site-packages/shoebot/util.py", line
199, in
RecordingSurface
_svg_surface = SVGSurface(fobj, 0,
0)
TypeError: SVGSurface argument 1 must be a filename (str), file
object,
or an object that has a "write" method (like
StringIO)
Can you let me know what OS your on, and what version of PyGtk + Cairo ?

SVGSurface seems to take None on my Ubuntu, but I've got a workaround
for Windows, I probably need to extend it.
Sebastian Oliva
2010-05-31 04:10:02 UTC
Permalink
Post by Sebastian Oliva
Sent: Mon, May 31, 2010 4:22:23 AM
Subject: Re: [shoebot-devel] Branch is basically working...
On Sun, May 30, 2010 at 9:07 PM, Stuart Axon <
Doh !
 I wasn't testing with a clean install, it should be working
now.
Hi,
Sorry, to bug you again, cleaned the previous version and
got
Hehe, don't worry about any bugging - it needs testing to find my bugs :)
ea.py",
line
54, in create_rcontext
   meta_surface =
RecordingSurface(*size)
 File
"/usr/local/lib/python2.6/site-packages/shoebot/util.py", line
199, in
RecordingSurface
   _svg_surface = SVGSurface(fobj, 0,
0)
TypeError: SVGSurface argument 1 must be a filename (str), file
object,
or an object that has a "write" method (like
StringIO)
Can you let me know what OS your on, and what version of PyGtk + Cairo ?
SVGSurface seems to take None on my Ubuntu, but I've got a workaround
for Windows, I probably need to extend it.
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Using OpenSUSE 11.2, using python-gtk 2.16.0, cairo 1.8.8, python-cairo 1.8.6
Stuart Axon
2010-05-31 04:25:21 UTC
Permalink
Using
Post by Sebastian Oliva
OpenSUSE 11.2, using python-gtk 2.16.0, cairo 1.8.8, python-cairo
1.8.6
Hm, cairo seems about the same... (only slightly newer). Should be
OK with the fix I've put up
(that whole bit of code is a cludge until Cairo 1.10 comes out anyway)
Stuart Axon
2010-05-31 04:07:03 UTC
Permalink
I've put a more generalised for for this in, I've only tested on Ubuntu 64 bit.

It first trys to use SVGSurface(None ...)

then passes it 'nul' on Windows, or '/dev/null' hopefully that'll cover the bases...
Stuart Axon
2010-05-31 03:07:54 UTC
Permalink
Doh ! I wasn't testing with a clean install, it should be working now.
Continue reading on narkive:
Loading...