I am making a poster (24"x36")for my programming class, all done with just NodeBox - including printing out the code on the poster. Based on sample image
size(1200,3600)
I can Python|Run to generate the image,
but upon export to PDF, JPG, PNG - anything I try,
Nodebox shuts down. Error log below.
Code also below that
Any help would be appreciated
Mac OS X Version 10.4.11 (Build 8S2167)
2007-11-26 12:52:39 -0500
2007-11-26 12:52:51.599 SystemUIServer[99] lang is:en
2007-11-26 12:52:52.068 textexpanderd[117] textexpanderd 1.4.2 at your service
Nov 26 12:52:55 rob-mccormacks-computer diskarbitrationd[42]: SystemUIServer [99]:19731 not responding.
2007-11-26 12:53:02.563 SystemUIServer[232] lang is:en
/Volumes/Mobile Mac/College/NodeBox/Examples/colors/__init__.py:2775: DeprecationWarning: The 'path' attribute is deprecated. Please use _nsBezierPath instead.
/Volumes/Mobile Mac/College/NodeBox/Examples/colors/__init__.py:2776: DeprecationWarning: The 'transform' attribute is deprecated. Please use _nsAffineTransform instead.
/Volumes/Mobile Mac/College/NodeBox/Examples/colors/__init__.py:2821: DeprecationWarning: The 'path' attribute is deprecated. Please use _nsBezierPath instead.
/Volumes/Mobile Mac/College/NodeBox/Examples/colors/__init__.py:2788: DeprecationWarning: The 'path' attribute is deprecated. Please use _nsBezierPath instead.
NodeBox(309,0xa000d000) malloc: *** vm_allocate(size=557056) failed (error code=3)
NodeBox(309,0xa000d000) malloc: *** error: can't allocate region
NodeBox(309,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
NodeBox(309,0x1a07a00) malloc: *** Deallocation of a pointer not malloced: 0xeed21220; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
Nov 26 12:59:34 rob-mccormacks-computer crashdump[313]: NodeBox crashed
Nov 26 12:59:42 rob-mccormacks-computer crashdump[313]: crash report written to: /Users/robmccormack/Library/Logs/CrashReporter/NodeBox.crash.log
2007-11-26 13:00:17.866 NodeBox[315] An exception has occured:
Traceback (most recent call last):
File "/Volumes/Mobile Mac/College/NodeBox/NodeBox.app/Contents/Resources/__boot__.py", line 71, in
_run('macboot.py')
File "/Volumes/Mobile Mac/College/NodeBox/NodeBox.app/Contents/Resources/__boot__.py", line 47, in _run
execfile(path, globals(), globals())
File "/Volumes/Mobile Mac/College/NodeBox/NodeBox.app/Contents/Resources/macboot.py", line 10, in
AppHelper.runEventLoop()
File "PyObjCTools/AppHelper.pyo", line 235, in runEventLoop
File "nodebox/gui/mac/__init__.pyo", line 935, in awakeFromNib
File "posixpath.pyo", line 62, in join
AttributeError: 'NoneType' object has no attribute 'endswith'
2007-11-26 13:00:18.055 NodeBox[315] NodeBox Error
2007-11-26 13:00:18.055 NodeBox[315] NodeBox Error
An unexpected error has occurred during execution of the main script
AttributeError: 'NoneType' object has no attribute 'endswith'
0.25:
p = supershape.path(x+r, y+r, r, r, 10, 1.5, -0.5, 1.5)
drawpath(p)
except:
# Couldn't find the Supershape library.
pass
# print title - some type, with a heart symbol!
toptitle=160
lefttitle=150
linelength=370
heart = u"\u2665" #unicode for heart
s1 = "mm 118 creative programming " + heart
s2 = "google gadgets with xml/JavaScript/Python"
fill(1, 1, 1, 0.85)
fontsize(60)
text(s1, lefttitle, toptitle)
fontsize(20)
text(s2.upper(), lefttitle, toptitle +36)
stroke(1)
strokewidth(3)
line(0, toptitle+10, linelength, toptitle+10)
# Print the code of this file on Poster set up code printing parameters
top=400
left=490
indent=60
pagewidth=590
pageheight=1250
degrees=0 #degrees to rotate
Error when exporting 1200 x 1800 image
Posted by MrMcCormack on Nov 26, 2007I am making a poster (24"x36")for my programming class, all done with just NodeBox - including printing out the code on the poster. Based on sample image
size(1200,3600)
I can Python|Run to generate the image,
but upon export to PDF, JPG, PNG - anything I try,
Nodebox shuts down. Error log below.
Code also below that
Any help would be appreciated
Mac OS X Version 10.4.11 (Build 8S2167)
2007-11-26 12:52:39 -0500
2007-11-26 12:52:51.599 SystemUIServer[99] lang is:en
2007-11-26 12:52:52.068 textexpanderd[117] textexpanderd 1.4.2 at your service
Nov 26 12:52:55 rob-mccormacks-computer diskarbitrationd[42]: SystemUIServer [99]:19731 not responding.
2007-11-26 12:53:02.563 SystemUIServer[232] lang is:en
/Volumes/Mobile Mac/College/NodeBox/Examples/colors/__init__.py:2775: DeprecationWarning: The 'path' attribute is deprecated. Please use _nsBezierPath instead.
/Volumes/Mobile Mac/College/NodeBox/Examples/colors/__init__.py:2776: DeprecationWarning: The 'transform' attribute is deprecated. Please use _nsAffineTransform instead.
/Volumes/Mobile Mac/College/NodeBox/Examples/colors/__init__.py:2821: DeprecationWarning: The 'path' attribute is deprecated. Please use _nsBezierPath instead.
/Volumes/Mobile Mac/College/NodeBox/Examples/colors/__init__.py:2788: DeprecationWarning: The 'path' attribute is deprecated. Please use _nsBezierPath instead.
NodeBox(309,0xa000d000) malloc: *** vm_allocate(size=557056) failed (error code=3)
NodeBox(309,0xa000d000) malloc: *** error: can't allocate region
NodeBox(309,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
NodeBox(309,0x1a07a00) malloc: *** Deallocation of a pointer not malloced: 0xeed21220; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
Nov 26 12:59:34 rob-mccormacks-computer crashdump[313]: NodeBox crashed
Nov 26 12:59:42 rob-mccormacks-computer crashdump[313]: crash report written to: /Users/robmccormack/Library/Logs/CrashReporter/NodeBox.crash.log
2007-11-26 13:00:17.866 NodeBox[315] An exception has occured:
Traceback (most recent call last):
File "/Volumes/Mobile Mac/College/NodeBox/NodeBox.app/Contents/Resources/__boot__.py", line 71, in
_run('macboot.py')
File "/Volumes/Mobile Mac/College/NodeBox/NodeBox.app/Contents/Resources/__boot__.py", line 47, in _run
execfile(path, globals(), globals())
File "/Volumes/Mobile Mac/College/NodeBox/NodeBox.app/Contents/Resources/macboot.py", line 10, in
AppHelper.runEventLoop()
File "PyObjCTools/AppHelper.pyo", line 235, in runEventLoop
File "nodebox/gui/mac/__init__.pyo", line 935, in awakeFromNib
File "posixpath.pyo", line 62, in join
AttributeError: 'NoneType' object has no attribute 'endswith'
2007-11-26 13:00:18.055 NodeBox[315] NodeBox Error
2007-11-26 13:00:18.055 NodeBox[315] NodeBox Error
An unexpected error has occurred during execution of the main script
AttributeError: 'NoneType' object has no attribute 'endswith' 0.25:
p = supershape.path(x+r, y+r, r, r, 10, 1.5, -0.5, 1.5)
drawpath(p)
except:
# Couldn't find the Supershape library.
pass
# print title - some type, with a heart symbol!
toptitle=160
lefttitle=150
linelength=370
heart = u"\u2665" #unicode for heart
s1 = "mm 118 creative programming " + heart
s2 = "google gadgets with xml/JavaScript/Python"
fill(1, 1, 1, 0.85)
fontsize(60)
text(s1, lefttitle, toptitle)
fontsize(20)
text(s2.upper(), lefttitle, toptitle +36)
stroke(1)
strokewidth(3)
line(0, toptitle+10, linelength, toptitle+10)
# Print the code of this file on Poster set up code printing parameters
top=400
left=490
indent=60
pagewidth=590
pageheight=1250
degrees=0 #degrees to rotate
rotate(degrees)
colors.shadow(alpha=0.0)
str = open("colors_example7MM118Poster.py").read()
fill(.15,.6)
rect(left,top, pagewidth, pageheight)
fill(1.0)
font("Courier",8)
lineheight(1.0)
text(str,left+indent,top+50,width= pagewidth-indent, height=pageheight)
#vert. text
rotate(90)
font("Arial",18)
text("Creative Commons Attribution 2.5 License",-50, pageHeight-250)