Discussion:
Processing lib in nodebox + module import from current directory doesn't work
Stuart Axon
2009-07-02 22:22:54 UTC
Permalink
http://www.multiply.org/notebook/archives/2008/08/first-visualizing-data-nodebox-conversions.html

This guy seems to have ported a couple of examples from the processing.org book "Visualizing Data".


The example doesn't work in shoebox, as it imports modules from the current directory.

I've added a ticket for this, #88
https://code.goto10.org/projects/shoebot/ticket/88
Dave Crossland
2009-07-02 22:44:21 UTC
Permalink
Good work! :)

Regards, Dave

On 2 Jul 2009, 11:22 PM, "Stuart Axon" <stuaxo2-/***@public.gmane.org> wrote:


http://www.multiply.org/notebook/archives/2008/08/first-visualizing-data-nodebox-conversions.html

This guy seems to have ported a couple of examples from the
processing.orgbook "Visualizing Data".


The example doesn't work in shoebox, as it imports modules from the current
directory.

I've added a ticket for this, #88
https://code.goto10.org/projects/shoebot/ticket/88
Stuart Axon
2009-07-02 23:06:12 UTC
Permalink
If I get time I'll have a look at getting his examples to work (the module bit); not sure where we'd put them in relation to the other
stuff we ship




________________________________
From: Dave Crossland <dave-***@public.gmane.org>
To: shoebot-devel-***@public.gmane.org
Sent: Thursday, July 2, 2009 11:44:21 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work


Good work! :)
Regards, Dave
Post by Stuart Axon
http://www.multiply.org/notebook/archives/2008/08/first-visualizing-data-nodebox-conversions.html
Post by Stuart Axon
This guy seems to have ported a couple of examples from the processing.org book "Visualizing Data".
The example doesn't work in shoebox, as it imports modules from the current directory.
I've added a ticket for this, #88
https://code.goto10.org/projects/shoebot/ticket/88
Post by Stuart Axon
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Stuart Axon
2009-07-02 23:47:20 UTC
Permalink
A quick update:
We need to add append the path of the bot to sys.path before running it;

When I added it's path as the first line
sys.path.append(r'C:\usr\shoebot\src\shoebot\filesystem\shoebot-filestructure\examples\processing\ch03')

it worked first time.




________________________________
From: Stuart Axon <stuaxo2-/***@public.gmane.org>
To: shoebot-devel-***@public.gmane.org
Sent: Friday, July 3, 2009 12:06:12 AM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work


If I get time I'll have a look at getting his examples to work (the module bit); not sure where we'd put them in relation to the other
stuff we ship




________________________________
From: Dave Crossland <dave-***@public.gmane.org>
To: shoebot-devel-***@public.gmane.org
Sent: Thursday, July 2, 2009 11:44:21 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work


Good work! :)
Regards, Dave
Post by Stuart Axon
http://www.multiply.org/notebook/archives/2008/08/first-visualizing-data-nodebox-conversions.html
Post by Stuart Axon
This guy seems to have ported a couple of examples from the processing.org book "Visualizing Data".
The example doesn't work in shoebox, as it imports modules from the current directory.
I've added a ticket for this, #88
https://code.goto10.org/projects/shoebot/ticket/88
Post by Stuart Axon
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
ricardo lafuente
2009-07-03 13:54:51 UTC
Permalink
wow, well spotted!

so the sys.path appending should happen in Bot.run(), right before the
script is executed. Where this call should go had me stumped for quite a
long time -- this means that it's also the place where the libs path
should be placed to solve the lib issue! Kudos to you Stu :)

right now the old run behaviour is to get the script file contents; now
we'll need to get its path as well. I'll be looking into this - thanks
again :)
Post by Stuart Axon
We need to add append the path of the bot to sys.path before running it;
When I added it's path as the first line
sys.path.append(r'C:\usr\shoebot\src\shoebot\filesystem\shoebot-filestructure\examples\processing\ch03')
it worked first time.
________________________________
Sent: Friday, July 3, 2009 12:06:12 AM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work
If I get time I'll have a look at getting his examples to work (the module bit); not sure where we'd put them in relation to the other
stuff we ship
________________________________
Sent: Thursday, July 2, 2009 11:44:21 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work
Good work! :)
Regards, Dave
Post by Stuart Axon
http://www.multiply.org/notebook/archives/2008/08/first-visualizing-data-nodebox-conversions.html
Post by Stuart Axon
This guy seems to have ported a couple of examples from the processing.org book "Visualizing Data".
The example doesn't work in shoebox, as it imports modules from the current directory.
I've added a ticket for this, #88
https://code.goto10.org/projects/shoebot/ticket/88
Post by Stuart Axon
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
------------------------------------------------------------------------
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Stuart Axon
2009-07-03 14:12:04 UTC
Permalink
Is changing sys.path threadsafe though ?

IE If my program (or gedit plugin, or the ide) runs a bot, then will my programs sys.path be affected?




________________________________
From: ricardo lafuente <***@sollec.org>
To: shoebot-devel-***@public.gmane.org
Sent: Friday, July 3, 2009 2:54:51 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work

wow, well spotted!

so the sys.path appending should happen in Bot.run(), right before the
script is executed. Where this call should go had me stumped for quite
a long time -- this means that it's also the place where the libs path
should be placed to solve the lib issue! Kudos to you Stu :)

right now the old run behaviour is to get the script file contents; now
we'll need to get its path as well. I'll be looking into this - thanks
again :)
Post by Stuart Axon
We need to add append the path of the bot to sys.path before running it;
When I added it's path as the first line
sys.path.append(r'C:\usr\shoebot\src\shoebot\filesystem\shoebot-filestructure\examples\processing\ch03')
it worked first time.
________________________________
Sent: Friday, July 3, 2009 12:06:12 AM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work
If I get time I'll have a look at getting his examples to work (the module bit); not sure where we'd put them in relation to the other
stuff we ship
________________________________
Sent: Thursday, July 2, 2009 11:44:21 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work
Good work! :)
Regards, Dave
http://www.multiply.org/notebook/archives/2008/08/first-visualizing-data-nodebox-conversions.html
Post by Stuart Axon
This guy seems to have ported a couple of examples from the processing.org book "Visualizing Data".
The example doesn't work in shoebox, as it imports modules from the current directory.
I've added a ticket for this, #88
https://code.goto10.org/projects/shoebot/ticket/88
_______________________________________________
Post by Stuart Axon
Shoebot-devel mailing list
ricardo lafuente
2009-07-03 15:13:16 UTC
Permalink
Post by Stuart Axon
Is changing sys.path threadsafe though ?
IE If my program (or gedit plugin, or the ide) runs a bot, then will my programs sys.path be affected?
my wild guess is that it affects the whole pythonpath. Not sure about
the possible consequences of that :/
Post by Stuart Axon
________________________________
Sent: Friday, July 3, 2009 2:54:51 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work
wow, well spotted!
so the sys.path appending should happen in Bot.run(), right before the
script is executed. Where this call should go had me stumped for quite
a long time -- this means that it's also the place where the libs path
should be placed to solve the lib issue! Kudos to you Stu :)
right now the old run behaviour is to get the script file contents; now
we'll need to get its path as well. I'll be looking into this - thanks
again :)
Post by Stuart Axon
We need to add append the path of the bot to sys.path before running it;
When I added it's path as the first line
sys.path.append(r'C:\usr\shoebot\src\shoebot\filesystem\shoebot-filestructure\examples\processing\ch03')
it worked first time.
________________________________
Sent: Friday, July 3, 2009 12:06:12 AM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work
If I get time I'll have a look at getting his examples to work (the module bit); not sure where we'd put them in relation to the other
stuff we ship
________________________________
Sent: Thursday, July 2, 2009 11:44:21 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work
Good work! :)
Regards, Dave
http://www.multiply.org/notebook/archives/2008/08/first-visualizing-data-nodebox-conversions.html
Post by Stuart Axon
This guy seems to have ported a couple of examples from the processing.org book "Visualizing Data".
The example doesn't work in shoebox, as it imports modules from the current directory.
I've added a ticket for this, #88
https://code.goto10.org/projects/shoebot/ticket/88
_______________________________________________
Post by Stuart Axon
Shoebot-devel mailing list
________________________________
Post by Stuart Axon
_______________________________________________
Shoebot-devel mailing list
------------------------------------------------------------------------
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
ricardo lafuente
2009-07-03 14:24:03 UTC
Permalink
and btw, his implementations of processing functions are really useful,
maybe we should also think about a ProcessingBot ?
Post by ricardo lafuente
wow, well spotted!
so the sys.path appending should happen in Bot.run(), right before the
script is executed. Where this call should go had me stumped for quite
a long time -- this means that it's also the place where the libs path
should be placed to solve the lib issue! Kudos to you Stu :)
right now the old run behaviour is to get the script file contents;
now we'll need to get its path as well. I'll be looking into this -
thanks again :)
Post by Stuart Axon
We need to add append the path of the bot to sys.path before running it;
When I added it's path as the first line
sys.path.append(r'C:\usr\shoebot\src\shoebot\filesystem\shoebot-filestructure\examples\processing\ch03')
it worked first time.
________________________________
Sent: Friday, July 3, 2009 12:06:12 AM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module
import from current directory doesn't work
If I get time I'll have a look at getting his examples to work (the
module bit); not sure where we'd put them in relation to the other
stuff we ship
________________________________
Sent: Thursday, July 2, 2009 11:44:21 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module
import from current directory doesn't work
Good work! :)
Regards, Dave
Post by Stuart Axon
http://www.multiply.org/notebook/archives/2008/08/first-visualizing-data-nodebox-conversions.html
Post by Stuart Axon
This guy seems to have ported a couple of examples from the
processing.org book "Visualizing Data".
The example doesn't work in shoebox, as it imports modules from the
current directory.
I've added a ticket for this, #88
https://code.goto10.org/projects/shoebot/ticket/88
Post by Stuart Axon
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
------------------------------------------------------------------------
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
------------------------------------------------------------------------
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Stuart Axon
2009-07-03 14:31:31 UTC
Permalink
That would be cool. He mentions on the page as a future task to clarify the licensing, probably will be fine if we contact him for including it.

ProcessBot would be cool - I prefer some parts of their api to the nodebox api TBH.

Quick question about grammars: If we have a processing grammar does this just mean the processing api in python, or does it mean we could run normal processing scripts ?




________________________________
From: ricardo lafuente <***@sollec.org>
To: shoebot-devel-***@public.gmane.org
Sent: Friday, July 3, 2009 3:24:03 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work

and btw, his implementations of processing functions are really useful,
maybe we should also think about a ProcessingBot ?

ricardo lafuente wrote:
wow,
Post by ricardo lafuente
well spotted!
Post by ricardo lafuente
so the sys.path appending should happen in Bot.run(), right before the
script is executed. Where this call should go had me stumped for quite
a long time -- this means that it's also the place where the libs path
should be placed to solve the lib issue! Kudos to you Stu :)
Post by ricardo lafuente
right now the old run behaviour is to get the script file contents; now
we'll need to get its path as well. I'll be looking into this - thanks
again :)
Post by ricardo lafuente
Post by Stuart Axon
Post by Stuart Axon
We need to add append the path of the bot to sys.path before running
it;
Post by Stuart Axon
Post by Stuart Axon
When I added it's path as the first line
sys.path.append(r'C:\usr\shoebot\src\shoebot\filesystem\shoebot-filestructure\examples\processing\ch03')
it worked first time.
________________________________
Sent: Friday, July 3, 2009 12:06:12 AM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import
from current directory doesn't work
Post by Stuart Axon
Post by Stuart Axon
If I get time I'll have a look at getting his examples to work (the
module bit); not sure where we'd put them in relation to the other
Post by Stuart Axon
Post by Stuart Axon
stuff we ship
________________________________
Sent: Thursday, July 2, 2009 11:44:21 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import
from current directory doesn't work
Post by Stuart Axon
Post by Stuart Axon
Good work! :)
Regards, Dave
http://www.multiply.org/notebook/archives/2008/08/first-visualizing-data-nodebox-conversions.html
Post by Stuart Axon
This guy seems to have ported a couple of
Post by Stuart Axon
examples from the processing.org book "Visualizing Data".
The example doesn't work in shoebox, as
Post by Stuart Axon
it imports modules from the current directory.
Post by Stuart Axon
I've added a ticket for this, #88
https://code.goto10.org/projects/shoebot/ticket/88
_______________________________________________
Post by Stuart Axon
Post by Stuart Axon
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
------------------------------------------------------------------------
Post by Stuart Axon
Post by Stuart Axon
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
ricardo lafuente
2009-07-03 15:12:10 UTC
Permalink
Post by Stuart Axon
That would be cool. He mentions on the page as a future task to clarify the licensing, probably will be fine if we contact him for including it.
great idea!
Post by Stuart Axon
ProcessBot would be cool - I prefer some parts of their api to the nodebox api TBH.
yeah, likewise
Post by Stuart Axon
Quick question about grammars: If we have a processing grammar does this just mean the processing api in python, or does it mean we could run normal processing scripts ?
it would just mean the p5 language/vocabulary in python. I don't know if
Jython could translate a Java program into Python, then that would be
feasible.
Post by Stuart Axon
________________________________
Sent: Friday, July 3, 2009 3:24:03 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from current directory doesn't work
and btw, his implementations of processing functions are really useful,
maybe we should also think about a ProcessingBot ?
wow,
Post by ricardo lafuente
well spotted!
Post by ricardo lafuente
so the sys.path appending should happen in Bot.run(), right before the
script is executed. Where this call should go had me stumped for quite
a long time -- this means that it's also the place where the libs path
should be placed to solve the lib issue! Kudos to you Stu :)
Post by ricardo lafuente
right now the old run behaviour is to get the script file contents; now
we'll need to get its path as well. I'll be looking into this - thanks
again :)
Post by ricardo lafuente
Post by Stuart Axon
Post by Stuart Axon
We need to add append the path of the bot to sys.path before running
it;
Post by Stuart Axon
Post by Stuart Axon
When I added it's path as the first line
sys.path.append(r'C:\usr\shoebot\src\shoebot\filesystem\shoebot-filestructure\examples\processing\ch03')
it worked first time.
________________________________
Sent: Friday, July 3, 2009 12:06:12 AM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import
from current directory doesn't work
Post by Stuart Axon
Post by Stuart Axon
If I get time I'll have a look at getting his examples to work (the
module bit); not sure where we'd put them in relation to the other
Post by Stuart Axon
Post by Stuart Axon
stuff we ship
________________________________
Sent: Thursday, July 2, 2009 11:44:21 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import
from current directory doesn't work
Post by Stuart Axon
Post by Stuart Axon
Good work! :)
Regards, Dave
http://www.multiply.org/notebook/archives/2008/08/first-visualizing-data-nodebox-conversions.html
Post by Stuart Axon
This guy seems to have ported a couple of
Post by Stuart Axon
examples from the processing.org book "Visualizing Data".
The example doesn't work in shoebox, as
Post by Stuart Axon
it imports modules from the current directory.
Post by Stuart Axon
I've added a ticket for this, #88
https://code.goto10.org/projects/shoebot/ticket/88
_______________________________________________
Post by Stuart Axon
Post by Stuart Axon
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
------------------------------------------------------------------------
Post by Stuart Axon
Post by Stuart Axon
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
________________________________
Post by ricardo lafuente
_______________________________________________
Shoebot-devel mailing list
------------------------------------------------------------------------
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Loading...