<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to run python 3 script in python 2.7 in maya in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12917666#M231</link>
    <description>&lt;P&gt;When you try to run the code, are you getting errors? or are you getting the incorrect result?&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 17:45:41 GMT</pubDate>
    <dc:creator>jmreinhart</dc:creator>
    <dc:date>2024-07-24T17:45:41Z</dc:date>
    <item>
      <title>How to run python 3 script in python 2.7 in maya</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12912890#M226</link>
      <description>&lt;P&gt;I have a script of software bridge cascaudour but it wasnt work on my maya 2020 version. I have attched script please suggest how to run or work on this.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 18:36:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12912890#M226</guid>
      <dc:creator>yadavchandrabhan59</dc:creator>
      <dc:date>2024-07-22T18:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python 3 script in python 2.7 in maya</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12914432#M227</link>
      <description>&lt;P&gt;I don't have Maya 2020 installed on my machine so I can't test this myself but you could try adding some code to the top of the script to import the "future" module which will allow some python3 functionality to be used in python2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that doesn't work you modify the code based on what is not working (fixing syntax differences and stuff).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you could upgrade to windows 2022 where python 3 is standard.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 12:29:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12914432#M227</guid>
      <dc:creator>jmreinhart</dc:creator>
      <dc:date>2024-07-23T12:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python 3 script in python 2.7 in maya</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12915299#M228</link>
      <description>&lt;P&gt;how can I modify the code based on what is not working (fixing syntax differences and stuff) I dont know coding can you help me with&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 18:56:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12915299#M228</guid>
      <dc:creator>yadavchandrabhan59</dc:creator>
      <dc:date>2024-07-23T18:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python 3 script in python 2.7 in maya</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12917189#M229</link>
      <description>&lt;P&gt;When you run the code do you get errors? If so you can use info like this: &lt;A href="https://portingguide.readthedocs.io/en/latest/" target="_blank"&gt;https://portingguide.readthedocs.io/en/latest/&lt;/A&gt;&amp;nbsp;to help you make the changes necessary to work in Python3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you're not getting errors then you'll need to manually check through the code for any syntax whose behavior would have changed between py2 and py3 (you can refer to that same link to know what to look for).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 13:52:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12917189#M229</guid>
      <dc:creator>jmreinhart</dc:creator>
      <dc:date>2024-07-24T13:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python 3 script in python 2.7 in maya</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12917599#M230</link>
      <description>&lt;P&gt;I have tried this with chat gpt several changes but it was not working....&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 17:06:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12917599#M230</guid>
      <dc:creator>yadavchandrabhan59</dc:creator>
      <dc:date>2024-07-24T17:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python 3 script in python 2.7 in maya</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12917666#M231</link>
      <description>&lt;P&gt;When you try to run the code, are you getting errors? or are you getting the incorrect result?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 17:45:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12917666#M231</guid>
      <dc:creator>jmreinhart</dc:creator>
      <dc:date>2024-07-24T17:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python 3 script in python 2.7 in maya</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12918083#M232</link>
      <description>&lt;P&gt;The script I have attached above when script run correcting there was installing window pop up automatically and now when I run script there was an error written in lower tab syntax error exactly&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 21:14:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12918083#M232</guid>
      <dc:creator>yadavchandrabhan59</dc:creator>
      <dc:date>2024-07-24T21:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python 3 script in python 2.7 in maya</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12918141#M233</link>
      <description>&lt;P&gt;What is the error message that it is giving you?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 21:45:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12918141#M233</guid>
      <dc:creator>jmreinhart</dc:creator>
      <dc:date>2024-07-24T21:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python 3 script in python 2.7 in maya</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12924680#M234</link>
      <description>&lt;P&gt;import maya.app.general.executeDroppedPythonFile as myTempEDPF&lt;BR /&gt;myTempEDPF.executeDroppedPythonFile("C:/Users/CHANDRABHAN/Downloads/maya_casc_installer.py", "")&lt;BR /&gt;del myTempEDPF&lt;BR /&gt;# Error: SyntaxError: file C:\Program Files\Autodesk\Maya2020\Python\lib\site-packages\maya\app\general\executeDroppedPythonFile.py line 66: invalid syntax #&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2024 17:27:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12924680#M234</guid>
      <dc:creator>yadavchandrabhan59</dc:creator>
      <dc:date>2024-07-28T17:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python 3 script in python 2.7 in maya</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12931052#M235</link>
      <description>&lt;P&gt;So the area around line 66 looks like this&lt;/P&gt;&lt;LI-CODE lang="general"&gt;try:
    #python2
    reload
except:
    #python3
    from importlib import reload&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have 2.7 installed on my computer so unfortunately I cannot test it myself, but&amp;nbsp; you should be able to remove that section completely since reload is a standard part of python 2.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 13:39:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-run-python-3-script-in-python-2-7-in-maya/m-p/12931052#M235</guid>
      <dc:creator>jmreinhart</dc:creator>
      <dc:date>2024-07-31T13:39:20Z</dc:date>
    </item>
  </channel>
</rss>

