<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: Maya Windows Binaries	</title>
	<atom:link href="https://www.robg3d.com/maya-windows-binaries/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.robg3d.com</link>
	<description>Blog of Rob Galanakis (@robgalanakis)</description>
	<lastBuildDate>Tue, 16 Feb 2021 21:06:09 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.4.4</generator>
	<item>
		<title>
		By: Rob Galanakis		</title>
		<link>https://www.robg3d.com/maya-windows-binaries/#comment-238787</link>

		<dc:creator><![CDATA[Rob Galanakis]]></dc:creator>
		<pubDate>Tue, 16 Feb 2021 21:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?page_id=1447#comment-238787</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.robg3d.com/maya-windows-binaries/#comment-238786&quot;&gt;Grant Wallace&lt;/a&gt;.

Thanks Grant. There are quite a few libraries that wrap system calls like this, and it works pretty well. I will note that it can be very slow on Windows. I&#039;ll also mention that writing tests for this sort of thing is very helpful, since it involves documenting the output that you&#039;re parsing (trying to follow the code otherwise is impossible without trial and error). Glad you found a solution (and I&#039;d encourage you to write unit tests!).]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.robg3d.com/maya-windows-binaries/#comment-238786">Grant Wallace</a>.</p>
<p>Thanks Grant. There are quite a few libraries that wrap system calls like this, and it works pretty well. I will note that it can be very slow on Windows. I&#8217;ll also mention that writing tests for this sort of thing is very helpful, since it involves documenting the output that you&#8217;re parsing (trying to follow the code otherwise is impossible without trial and error). Glad you found a solution (and I&#8217;d encourage you to write unit tests!).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Grant Wallace		</title>
		<link>https://www.robg3d.com/maya-windows-binaries/#comment-238786</link>

		<dc:creator><![CDATA[Grant Wallace]]></dc:creator>
		<pubDate>Tue, 16 Feb 2021 17:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?page_id=1447#comment-238786</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.robg3d.com/maya-windows-binaries/#comment-238784&quot;&gt;Rob Galanakis&lt;/a&gt;.

Thanks for the help!

We ended up going for another route. Instead of trying to use the p4api, we went with calling p4 commands with a mix of os.system and subprocess.check_output/.Popen.

It&#039;s not perfect, and needs more work. But we can successfully check files out and mark files for add automatically in the users perforce workspace.

There is a lot of &#039;info gathering&#039; code used before this, but this is the meat and potatoes of what we made.

    ChangelistNumberList = []
    ChangelistInfo = []

    os.system(&#039;p4 --field &quot;Description=Change List Created by Publish Tool&quot; --field &quot;Files=&quot; change -o &#124; p4 change -i&#039;)

    p4ClientText = subprocess.check_output(&#039;p4 set P4CLIENT&#039;)
    split = p4ClientText.split(&quot;=&quot;, 1)
    badClient = split[1]
    split2 = badClient.split(&quot; &quot;, 1)
    currentClient = split2[0]

    ChangeText = subprocess.check_output(&#039;p4 changes -c&#039; + &#039; &#039; + currentClient + &#039; &#039; + &#039;-m1&#039;)
    ChangelistInfo.append(ChangeText)
    split = ChangelistInfo[0].split(&quot; &quot;)
    ChangelistNumberStr = split[1]
    ChangelistNumber = str(ChangelistNumberStr)
    for file in filesToCheckOut:
        os.system(&#039;p4 add -c&#039; + &#039; &#039; + ChangelistNumber + &#039; &#039; + file)
        os.system(&#039;p4 edit -c&#039; + &#039; &#039; + ChangelistNumber + &#039; &#039; + file)


I hope this helps someone!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.robg3d.com/maya-windows-binaries/#comment-238784">Rob Galanakis</a>.</p>
<p>Thanks for the help!</p>
<p>We ended up going for another route. Instead of trying to use the p4api, we went with calling p4 commands with a mix of os.system and subprocess.check_output/.Popen.</p>
<p>It&#8217;s not perfect, and needs more work. But we can successfully check files out and mark files for add automatically in the users perforce workspace.</p>
<p>There is a lot of &#8216;info gathering&#8217; code used before this, but this is the meat and potatoes of what we made.</p>
<p>    ChangelistNumberList = []<br />
    ChangelistInfo = []</p>
<p>    os.system(&#8216;p4 &#8211;field &#8220;Description=Change List Created by Publish Tool&#8221; &#8211;field &#8220;Files=&#8221; change -o | p4 change -i&#8217;)</p>
<p>    p4ClientText = subprocess.check_output(&#8216;p4 set P4CLIENT&#8217;)<br />
    split = p4ClientText.split(&#8220;=&#8221;, 1)<br />
    badClient = split[1]<br />
    split2 = badClient.split(&#8221; &#8220;, 1)<br />
    currentClient = split2[0]</p>
<p>    ChangeText = subprocess.check_output(&#8216;p4 changes -c&#8217; + &#8216; &#8216; + currentClient + &#8216; &#8216; + &#8216;-m1&#8217;)<br />
    ChangelistInfo.append(ChangeText)<br />
    split = ChangelistInfo[0].split(&#8221; &#8220;)<br />
    ChangelistNumberStr = split[1]<br />
    ChangelistNumber = str(ChangelistNumberStr)<br />
    for file in filesToCheckOut:<br />
        os.system(&#8216;p4 add -c&#8217; + &#8216; &#8216; + ChangelistNumber + &#8216; &#8216; + file)<br />
        os.system(&#8216;p4 edit -c&#8217; + &#8216; &#8216; + ChangelistNumber + &#8216; &#8216; + file)</p>
<p>I hope this helps someone!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rob Galanakis		</title>
		<link>https://www.robg3d.com/maya-windows-binaries/#comment-238784</link>

		<dc:creator><![CDATA[Rob Galanakis]]></dc:creator>
		<pubDate>Wed, 27 Jan 2021 00:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?page_id=1447#comment-238784</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.robg3d.com/maya-windows-binaries/#comment-238783&quot;&gt;Grant Wallace&lt;/a&gt;.

Hi Grant, it&#039;s possible either 1) your version of Python 2.7 has a very old SSL that doesn&#039;t have 1.0.1 support (very unlikely), or the Perforce server is not allowing 1.0.1 or other old version connections and the Python OpenSSL isn&#039;t negotiating the right version.
This is pretty tricky- can you try connecting to the P4 server from a newer version of Python, outside of Maya? And then check that SSL library version, and see if there is a way to tell what cipher/version is being used.
(I am no expert in this but have had to debug similar issues, hopefully that is a bit of information to go on)
Let us know how it goes!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.robg3d.com/maya-windows-binaries/#comment-238783">Grant Wallace</a>.</p>
<p>Hi Grant, it&#8217;s possible either 1) your version of Python 2.7 has a very old SSL that doesn&#8217;t have 1.0.1 support (very unlikely), or the Perforce server is not allowing 1.0.1 or other old version connections and the Python OpenSSL isn&#8217;t negotiating the right version.<br />
This is pretty tricky- can you try connecting to the P4 server from a newer version of Python, outside of Maya? And then check that SSL library version, and see if there is a way to tell what cipher/version is being used.<br />
(I am no expert in this but have had to debug similar issues, hopefully that is a bit of information to go on)<br />
Let us know how it goes!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Grant Wallace		</title>
		<link>https://www.robg3d.com/maya-windows-binaries/#comment-238783</link>

		<dc:creator><![CDATA[Grant Wallace]]></dc:creator>
		<pubDate>Tue, 26 Jan 2021 23:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?page_id=1447#comment-238783</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.robg3d.com/maya-windows-binaries/#comment-238781&quot;&gt;Nicholas Stevenson&lt;/a&gt;.

Hey Nicholas, I also need to get Perforce working with Maya 2020. Could you help me understand what to do with these files? I downloaded the p4 and p4api files from above and placed them in my Python27/Lib/sitepackages. 

But now I&#039;m getting a 
&#039;[P4.connect()] Connect to server failed; check $P4PORT. SSL library must be at least version 1.0.1.&#039;

At least I can connect now to the API now. Any ideas?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.robg3d.com/maya-windows-binaries/#comment-238781">Nicholas Stevenson</a>.</p>
<p>Hey Nicholas, I also need to get Perforce working with Maya 2020. Could you help me understand what to do with these files? I downloaded the p4 and p4api files from above and placed them in my Python27/Lib/sitepackages. </p>
<p>But now I&#8217;m getting a<br />
&#8216;[P4.connect()] Connect to server failed; check $P4PORT. SSL library must be at least version 1.0.1.&#8217;</p>
<p>At least I can connect now to the API now. Any ideas?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nicholas Stevenson		</title>
		<link>https://www.robg3d.com/maya-windows-binaries/#comment-238781</link>

		<dc:creator><![CDATA[Nicholas Stevenson]]></dc:creator>
		<pubDate>Tue, 08 Dec 2020 00:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?page_id=1447#comment-238781</guid>

					<description><![CDATA[For anyone still in the market for Perforce binaries, these thankfully still work with Maya 2018/2019/2020.  Thank you for continuing to host this site Rob, I&#039;m sure you&#039;ve saved more than just me from having to try and compile perforce&#039;s APIs against Maya.  I can&#039;t wait for the switch to Python3 and we can finally start using the maintained APIs.  But until then, this does the trick, and thank you!]]></description>
			<content:encoded><![CDATA[<p>For anyone still in the market for Perforce binaries, these thankfully still work with Maya 2018/2019/2020.  Thank you for continuing to host this site Rob, I&#8217;m sure you&#8217;ve saved more than just me from having to try and compile perforce&#8217;s APIs against Maya.  I can&#8217;t wait for the switch to Python3 and we can finally start using the maintained APIs.  But until then, this does the trick, and thank you!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rob Galanakis		</title>
		<link>https://www.robg3d.com/maya-windows-binaries/#comment-238741</link>

		<dc:creator><![CDATA[Rob Galanakis]]></dc:creator>
		<pubDate>Mon, 25 Sep 2017 01:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?page_id=1447#comment-238741</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.robg3d.com/maya-windows-binaries/#comment-238739&quot;&gt;Andres Weber&lt;/a&gt;.

Thanks Andres!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.robg3d.com/maya-windows-binaries/#comment-238739">Andres Weber</a>.</p>
<p>Thanks Andres!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andres Weber		</title>
		<link>https://www.robg3d.com/maya-windows-binaries/#comment-238739</link>

		<dc:creator><![CDATA[Andres Weber]]></dc:creator>
		<pubDate>Thu, 17 Aug 2017 21:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?page_id=1447#comment-238739</guid>

					<description><![CDATA[Good thing you did this!  I was just going a little crazy since I have 2017 installed and was trying to go through your book and got a bit stuck when I realized I didn&#039;t want to compile it myself and waste some time!  Thanks for putting these up.  Also thanks for the book so far, it&#039;s the best resource I&#039;ve found yet as a professional where the code is much better than the usual script level understanding of books you have a great comprehensive take on it.]]></description>
			<content:encoded><![CDATA[<p>Good thing you did this!  I was just going a little crazy since I have 2017 installed and was trying to go through your book and got a bit stuck when I realized I didn&#8217;t want to compile it myself and waste some time!  Thanks for putting these up.  Also thanks for the book so far, it&#8217;s the best resource I&#8217;ve found yet as a professional where the code is much better than the usual script level understanding of books you have a great comprehensive take on it.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Maya Python Binaries for Windows - RobG3D		</title>
		<link>https://www.robg3d.com/maya-windows-binaries/#comment-229617</link>

		<dc:creator><![CDATA[Maya Python Binaries for Windows - RobG3D]]></dc:creator>
		<pubDate>Fri, 23 May 2014 14:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?page_id=1447#comment-229617</guid>

					<description><![CDATA[[&#8230;] I&#8217;ve put together a page to link and host all the various Python C extensions compiled for various flavors of Autodesk Maya on Windows: http://www.robg3d.com/maya-windows-binaries/ [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] I&#8217;ve put together a page to link and host all the various Python C extensions compiled for various flavors of Autodesk Maya on Windows: <a href="http://www.robg3d.com/maya-windows-binaries/" rel="nofollow ugc">http://www.robg3d.com/maya-windows-binaries/</a> [&#8230;]</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
