<?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: Problem running password-encrypted Python toolbox script / Problema al lanzar script Python de caja de herramientas encriptado con contraseña in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614048#M47914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suggestion is export your &amp;nbsp;script and to see whether it can work. Seems in some case the imported script become broken in ArcMap 10.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2019 08:32:59 GMT</pubDate>
    <dc:creator>TieshengWu</dc:creator>
    <dc:date>2019-03-06T08:32:59Z</dc:date>
    <item>
      <title>Problem running password-encrypted Python toolbox script / Problema al lanzar script Python de caja de herramientas encriptado con contraseña</title>
      <link>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614047#M47913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background: white; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #212121; border: none windowtext 1.0pt; font-size: 12.0pt; padding: 0cm;"&gt;Hello, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="background: white; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #212121; border: none windowtext 1.0pt; font-size: 12.0pt; padding: 0cm;"&gt;I have programmed a tool with Python (script) that I have added to an ArcGIS Desktop 10.1 toolbox. I wanted to share this script, but I do not want them to be able to see the script code or edit it, so after importing the script, I set a password. But when doing this, when I run the script, it does not work, ArcMap stays in the "Not Responding" state. Does anyone know what can be due&lt;BR /&gt; and how can I solve it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #212121; border: none windowtext 1.0pt; font-size: 12.0pt; padding: 0cm;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #212121; border: none windowtext 1.0pt; font-size: 12.0pt; padding: 0cm;"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="background: white; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #212121; border: none windowtext 1.0pt; font-size: 12.0pt; padding: 0cm;"&gt;-----------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Hola,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;He programado una herramienta con Python (secuencia de comandos) que he agregado a una caja de herramientas de ArcGIS Desktop 10.1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Quería compartir este script, pero no quisiera que pudieran ver el código del script ni editarlo, por lo que, después de importar la secuencia de comandos, establezco una contraseña. Pero al realizar esto, cuando inicio el script, no funciona, ArcMap se queda en estado "No responde". ¿Alguien sabe a qué puede ser debido y cómo lo puedo solucionar?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Gracias!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 10:22:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614047#M47913</guid>
      <dc:creator>SilviaP</dc:creator>
      <dc:date>2019-03-05T10:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running password-encrypted Python toolbox script / Problema al lanzar script Python de caja de herramientas encriptado con contraseña</title>
      <link>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614048#M47914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suggestion is export your &amp;nbsp;script and to see whether it can work. Seems in some case the imported script become broken in ArcMap 10.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 08:32:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614048#M47914</guid>
      <dc:creator>TieshengWu</dc:creator>
      <dc:date>2019-03-06T08:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running password-encrypted Python toolbox script / Problema al lanzar script Python de caja de herramientas encriptado con contraseña</title>
      <link>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614049#M47915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="" data-fulltext="" data-placeholder="Traducción" dir="ltr" style="color: #212121; background-color: #ffffff; border: none; font-size: 16px !important; padding: 0px 0.14em 0px 0px;"&gt;&lt;SPAN lang="en"&gt;Thanks for your answer,  The exported script works correctly. The problem is that I have to import the script so that the company to which it is directed can not see the code of the script.  Do you know if there is another way to encrypt the code?&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 08:44:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614049#M47915</guid>
      <dc:creator>SilviaP</dc:creator>
      <dc:date>2019-03-06T08:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running password-encrypted Python toolbox script / Problema al lanzar script Python de caja de herramientas encriptado con contraseña</title>
      <link>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614050#M47916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can&amp;nbsp;encrypt it to a .pyt file, but seems &amp;nbsp;there is software to crack &amp;nbsp;it. &amp;nbsp;So I use ArcMap 10.5 to import the script and save the toolbox as 10.1 format, and it work fine.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 08:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614050#M47916</guid>
      <dc:creator>TieshengWu</dc:creator>
      <dc:date>2019-03-06T08:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running password-encrypted Python toolbox script / Problema al lanzar script Python de caja de herramientas encriptado con contraseña</title>
      <link>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614051#M47917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Than you so much! I'll try it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 09:08:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614051#M47917</guid>
      <dc:creator>SilviaP</dc:creator>
      <dc:date>2019-03-06T09:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running password-encrypted Python toolbox script / Problema al lanzar script Python de caja de herramientas encriptado con contraseña</title>
      <link>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614052#M47918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe your script is too large? If that, don't try to import the script. It will give your user a &amp;nbsp;bad using experience by the slow responding of the tool. Then the best way is &amp;nbsp;writing the toolbox as a pyt form&amp;nbsp; if your user can update his platform.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 10:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614052#M47918</guid>
      <dc:creator>TieshengWu</dc:creator>
      <dc:date>2019-03-06T10:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running password-encrypted Python toolbox script / Problema al lanzar script Python de caja de herramientas encriptado con contraseña</title>
      <link>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614053#M47919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;Exactly what happens, my script is too long and the response is bad, in fact it never runs. I have never writed a toolbox as a python toolbox, but I will try it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;Why do you say "if your user can update his platform? The user works with ArcGIS Desktop 10.1 like me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;Thanks again!!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 11:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614053#M47919</guid>
      <dc:creator>SilviaP</dc:creator>
      <dc:date>2019-03-06T11:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running password-encrypted Python toolbox script / Problema al lanzar script Python de caja de herramientas encriptado con contraseña</title>
      <link>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614054#M47920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;I already know why you say "if your user can update his platform? Because I only can encrypt by ArcGIS 10.5 not 10.1. Is there any way to save a&amp;nbsp;.pyt toolbox in 10.1 after I write the toolbox in 10.5?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 16:56:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614054#M47920</guid>
      <dc:creator>SilviaP</dc:creator>
      <dc:date>2019-03-06T16:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running password-encrypted Python toolbox script / Problema al lanzar script Python de caja de herramientas encriptado con contraseña</title>
      <link>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614055#M47921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes we can encrypt a python toolbox and save it as a 10.1 one, but seems it will not&amp;nbsp;run in 10.1, even opening the folder of the tool will make desktop to shut down in my machine.&lt;/P&gt;&lt;P&gt;The solution in 10.1 platform I think is:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;Compile your .py as .pyc to avoid editing, but easy be&amp;nbsp;decompiled.&lt;/P&gt;&lt;P&gt;2. How many lines is there in your script? &amp;nbsp;Import the script after optimizing your code, deleting&amp;nbsp;&amp;nbsp;all of&amp;nbsp;unneeded snippet, space lines and comments ， then test if you can wait for it's response not &amp;nbsp;smashing your mouse.&lt;/P&gt;&lt;P&gt;3. Rewrite it in AO.&lt;/P&gt;&lt;P&gt;4. Tool license, It's the most effective protection.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 01:25:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614055#M47921</guid>
      <dc:creator>TieshengWu</dc:creator>
      <dc:date>2019-03-07T01:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running password-encrypted Python toolbox script / Problema al lanzar script Python de caja de herramientas encriptado con contraseña</title>
      <link>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614056#M47922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I answer on your message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1.&amp;nbsp;Compile your .py as .pyc to avoid editing, but easy be&amp;nbsp;decompiled.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;As you say, it is easy to decompile the code. Simply by changing back .pyc by .py&lt;/STRONG&gt;&lt;STRONG&gt;, so this solution does not work for me.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2. How many lines is there in your script? &amp;nbsp;Import the script after optimizing your code, deleting&amp;nbsp;&amp;nbsp;all of&amp;nbsp;unneeded snippet, space lines and comments ， then test if you can wait for it's response not &amp;nbsp;smashing your mouse.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="background-color: #ffffff; color: #212121; font-size: 16px; "&gt;The code has 7954 lines. I have deleted the comments, spaces, etc. and I have managed to get the window that is launched when the tool runs, after 1 minute appears. But the parameters and the tool itself take a long time to complete the process.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3. Rewrite it in AO.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #212121; font-size: 16px; "&gt;Do you mean Arc Objects? I had thought about creating an add-in...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Tool license, It's the most effective protection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I think that although I establish a control license, the user&amp;nbsp;could take the code, which is what I try to avoid.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; : ; color: #212121; font-size: 16px; "&gt;I thank you so much for your approach and that you dedicate your time in answering me. I do not know if I will achieve my objective, but your ideas help me a lot. Thanks again.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 15:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-running-password-encrypted-python-toolbox/m-p/614056#M47922</guid>
      <dc:creator>SilviaP</dc:creator>
      <dc:date>2019-03-07T15:51:32Z</dc:date>
    </item>
  </channel>
</rss>

