<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: getting python to work in max 5</title>
		<atom:link href="http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 02:19:11 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-41831</guid>
					<title><![CDATA[getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-41831</link>
					<pubDate>Sun, 18 Jan 2009 22:51:14 +0000</pubDate>
					<dc:creator>Joost Rekveld</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149147</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149147</link>
					<pubDate>Mon, 19 Jan 2009 00:31:19 +0000</pubDate>
					<dc:creator>robert</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149148</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149148</link>
					<pubDate>Mon, 19 Jan 2009 02:45:12 +0000</pubDate>
					<dc:creator>robert</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149149</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149149</link>
					<pubDate>Mon, 19 Jan 2009 07:53:48 +0000</pubDate>
					<dc:creator>Joost Rekveld</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149150</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149150</link>
					<pubDate>Mon, 19 Jan 2009 08:08:49 +0000</pubDate>
					<dc:creator>Olivier Pasquet</dc:creator>

					<description>
						<![CDATA[
						<p>Hi !</p>
<p>I&#8217;m currently working with Python for symbolic processes. You only  <br />
have the &#8220;py.mxo&#8221; external. &#8220;pyext&#8221; is just another name and you just  <br />
have to declare its objectmapping in the text file &#8220;max- <br />
objectmappings.txt&#8221;:<br />
max objectfile pyext py;</p>
<p>Then it should simply work. If not, tell me. I have recompiled it for  <br />
the mac version.</p>
<p>ps : I&#8217;m still on OS10.4.11 (I know&#8230; :)); I have replaced the  <br />
current OSX python version to Python 2.6.1 (r261:67515) with no problem.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149151</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149151</link>
					<pubDate>Mon, 19 Jan 2009 11:31:16 +0000</pubDate>
					<dc:creator>robert</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149152</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149152</link>
					<pubDate>Mon, 19 Jan 2009 12:00:54 +0000</pubDate>
					<dc:creator>lfanele</dc:creator>

					<description>
						<![CDATA[
						<p>Take a look at the jython bindings as well:</p>
<p><a href="http://www.loadbang.net/space/Software/net.loadbang.jython" rel="nofollow">http://www.loadbang.net/space/Software/net.loadbang.jython</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149153</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149153</link>
					<pubDate>Mon, 19 Jan 2009 13:10:07 +0000</pubDate>
					<dc:creator>nick rothwell / cassiel</dc:creator>

					<description>
						<![CDATA[
						<p>On 19 Jan 2009, at 12:00, Stephen Lumenta wrote:</p>
<p>> Take a look at the jython bindings as well:<br />
><br />
> <a href="http://www.loadbang.net/space/Software/net.loadbang.jython" rel="nofollow">http://www.loadbang.net/space/Software/net.loadbang.jython</a></p>
<p>Cheers &#8211; I was going to suggest going via Jython. Downside: still at  <br />
Python 2.2 (I&#8217;m currently experimenting with the Jython 2.5 release).  <br />
Upside: all of Java available, including networking and access to (for  <br />
example) XML libraries. Upside #2: completely portable between Mac and  <br />
Windows, works identically on Max 4 and Max 5.</p>
<p>	&#8211; N.</p>
<p>
Nick Rothwell / Cassiel.com Limited<br />
<a href="http://www.cassiel.com" rel="nofollow">http://www.cassiel.com</a><br />
<a href="http://www.myspace.com/cassieldotcom" rel="nofollow">http://www.myspace.com/cassieldotcom</a><br />
<a href="http://www.last.fm/music/cassiel" rel="nofollow">http://www.last.fm/music/cassiel</a><br />
<a href="http://www.reverbnation.com/cassiel" rel="nofollow">http://www.reverbnation.com/cassiel</a><br />
<a href="http://www.linkedin.com/in/cassiel" rel="nofollow">http://www.linkedin.com/in/cassiel</a><br />
<a href="http://www.loadbang.net" rel="nofollow">http://www.loadbang.net</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149154</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149154</link>
					<pubDate>Mon, 19 Jan 2009 15:40:37 +0000</pubDate>
					<dc:creator>Joost Rekveld</dc:creator>

					<description>
						<![CDATA[
						<p>aha, thanks I will try that and see if that was the problem when I&#8217;m  <br />
behind my machine again&#8230;<br />
not sure for now whether that looks like the error I got, however&#8230;</p>
<p>thanks,</p>
<p>Joost.</p>
<p>On Jan 19, 2009, at 9:08 AM, olivier pasquet wrote:</p>
<p>> Hi !<br />
><br />
> I&#8217;m currently working with Python for symbolic processes. You only  <br />
> have the &#8220;py.mxo&#8221; external. &#8220;pyext&#8221; is just another name and you  <br />
> just have to declare its objectmapping in the text file &#8220;max- <br />
> objectmappings.txt&#8221;:<br />
> max objectfile pyext py;<br />
><br />
> Then it should simply work. If not, tell me. I have recompiled it  <br />
> for the mac version.<br />
><br />
> ps : I&#8217;m still on OS10.4.11 (I know&#8230; :)); I have replaced the  <br />
> current OSX python version to Python 2.6.1 (r261:67515) with no  <br />
> problem.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149155</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149155</link>
					<pubDate>Mon, 19 Jan 2009 16:43:21 +0000</pubDate>
					<dc:creator>Nat</dc:creator>

					<description>
						<![CDATA[
						<p>I have used Jython within max and it works great ! Much easier than the other implementation.</p>
<p>Looking forward to Jython 2.5 !</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149156</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149156</link>
					<pubDate>Mon, 19 Jan 2009 17:20:45 +0000</pubDate>
					<dc:creator>nick rothwell / cassiel</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149157</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149157</link>
					<pubDate>Mon, 19 Jan 2009 21:31:39 +0000</pubDate>
					<dc:creator>Joost Rekveld</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Olivier,</p>
<p>behind my machine, changed the max-objectmappings as instructed and  <br />
bang, this error:</p>
<p>  2009-01-19 22:24:02.432 MaxMSP[6001] CFLog (21): Error loading / <br />
Applications/Max5/Cycling &#8217;74/max-externals/py.mxo/Contents/MacOS/ <br />
py:  error code 4, error number 0 (Symbol not found:  <br />
_LSGetApplicationForItem<br />
    Referenced from: /Applications/Max5/Cycling &#8217;74/max-externals/ <br />
py.mxo/Contents/MacOS/py<br />
    Expected in: /System/Library/Frameworks/CoreServices.framework/ <br />
Versions/A/CoreServices<br />
  )</p>
<p>it shows that it does try to load py.mxo, but there is some  <br />
incompatibility with it.<br />
Also when I looked at my previous error, it was identical, so the  <br />
objectmapping was not the problem (I do recall installing a python- <br />
objectmappings file).<br />
Can you perhaps send me the recompiled version (or point me to an  <br />
explanation  how to recompile myself) ?<br />
I&#8217;m still on os10.4.11 too, but that will change soon.<br />
I installed python 2.5.4 to be sure that some of my extra modules  <br />
work properly (numpy, scipy, sympy, brian).</p>
<p>I am still exploring possibillities for a project, so I might try the  <br />
Jython route too: it seems better supported from my first impression..</p>
<p>thanks !</p>
<p>Joost.</p>
<p>On  19 Jan, 2009, at 9:08 AM, olivier pasquet wrote:</p>
<p>> Hi !<br />
><br />
> I&#8217;m currently working with Python for symbolic processes. You only  <br />
> have the &#8220;py.mxo&#8221; external. &#8220;pyext&#8221; is just another name and you  <br />
> just have to declare its objectmapping in the text file &#8220;max- <br />
> objectmappings.txt&#8221;:<br />
> max objectfile pyext py;<br />
><br />
> Then it should simply work. If not, tell me. I have recompiled it  <br />
> for the mac version.<br />
><br />
> ps : I&#8217;m still on OS10.4.11 (I know&#8230; :)); I have replaced the  <br />
> current OSX python version to Python 2.6.1 (r261:67515) with no  <br />
> problem.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>                               Joost Rekveld<br />
&#8212;&#8212;&#8212;&#8211;    <a href="http://www.lumen.nu/rekveld" rel="nofollow">http://www.lumen.nu/rekveld</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>&#8220;In theory, there is no difference between theory and practice.<br />
In practice, there is.&#8221;</p>
<p>(Jan L. A. van de Snepscheut)</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149158</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149158</link>
					<pubDate>Tue, 20 Jan 2009 01:34:18 +0000</pubDate>
					<dc:creator>Olivier Pasquet</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>OOps, I did not see you had this error message on your previous  <br />
email. Indeed, that simply means you do not have the right py.mxo  <br />
version.<br />
Jython seems very good too but different.</p>
<p>You need flext to recompile it. Here is the binary external (82 Kb &#8211;  <br />
available for 7 days):</p>
<p><a href="http://www.yousendit.com/download/WnBTb2VKY3kzMW1Ga1E9PQ" rel="nofollow">http://www.yousendit.com/download/WnBTb2VKY3kzMW1Ga1E9PQ</a></p>
<p>best,</p>
<p>O</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149159</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149159</link>
					<pubDate>Mon, 09 Feb 2009 19:58:07 +0000</pubDate>
					<dc:creator>Nat</dc:creator>

					<description>
						<![CDATA[
						<p>Olivier, could you please repost this ?<br />
Thanks a lot !</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149160</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149160</link>
					<pubDate>Tue, 05 Jan 2010 20:37:01 +0000</pubDate>
					<dc:creator>robotpapier</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, jython implementation works great. I&#8217;m using it for a project since 2 months. But as my python codes grows in size, it seems that it can&#8217;t load properly class files that is compiled and that weight more than 90ko.<br />
here&#8217;s what it says<br />
&#8220;java.lang.ClassFormatError: java.lang.ClassFormatError: Invalid method Code length 71421 in class file CLASS_losemanfra$py&#8221;</p>
<p>Did anyone experienced this kind of issue?</p>
<p>Gus</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149161</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149161</link>
					<pubDate>Tue, 05 Jan 2010 21:42:25 +0000</pubDate>
					<dc:creator>robotpapier</dc:creator>

					<description>
						<![CDATA[
						<p>Re, I made some search and it seems that&#8217;s because of the 64k method size limitation of JVM.<br />
The only way is to make methods that&#8217;s smaller than 64k once compiled.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149162</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149162</link>
					<pubDate>Wed, 06 Jan 2010 12:08:41 +0000</pubDate>
					<dc:creator>nick rothwell / cassiel</dc:creator>

					<description>
						<![CDATA[
						<p>Oh &#8211; interesting. I didn&#8217;t know about that. Do you have the faulty code? I might punt it at the Jython mailing list. (I also need to update the Jython release I&#8217;m using; it&#8217;s a beta release.)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149163</guid>
					<title><![CDATA[Re: getting python to work in max 5]]></title>
					<link>http://cycling74.com/forums/topic/getting-python-to-work-in-max-5/#post-149163</link>
					<pubDate>Fri, 08 Jan 2010 00:54:04 +0000</pubDate>
					<dc:creator>robotpapier</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, there is no faulty code.<br />
For my project, I have 2 python files.<br />
The first one is the one I load with &#8220;mxj net.loadbang.jython.mxj.ScriptEngine&#8221; object.<br />
This file calls a python class which is my second file.<br />
In my class, I have methods. If one of them is too long (the code is ui scripting, so there&#8217;s lots of code) then the max message window warn us with this message: &#8220;java.lang.ClassFormatError: java.lang.ClassFormatError: Invalid method Code length 71421 in class file CLASS_losemanfra$py&#8221;. Means that the method is too long. But fortunately the class file can be more than 64k, it&#8217;s just the method that can&#8217;t.</p>
<p>It seems to be a java limitation, people in forums says that it is not necessarly a disadvantage for it forces us to write more modulable code&#8230;</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

