<?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: Archicad – Python – and Anaconda/Miniconda in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267452#M690</link>
    <description>&lt;BLOCKQUOTE&gt;Tibor wrote:&lt;BR /&gt;
Thank you for pointing out this issue!&lt;BR /&gt;
You're absolutely right. I added this to our bug database
&lt;/BLOCKQUOTE&gt;

Great! Thanks again, Tibor! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
For now I just use my Python from VSCode directly, which works like a charm.</description>
    <pubDate>Mon, 10 Aug 2020 11:05:37 GMT</pubDate>
    <dc:creator>runxel</dc:creator>
    <dc:date>2020-08-10T11:05:37Z</dc:date>
    <item>
      <title>Archicad – Python – and Anaconda/Miniconda</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267443#M681</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Archicad has a problem when you have Python installed via Anaconda/Miniconda.&lt;BR /&gt;It either reports error R6034 (which can be mitigated by renaming all "msvcr90.dll" files inside the *conda folder).&lt;BR /&gt;But afterwards, if you open the Python palette the search for an interpreter just stucks inside a loop, where it never finds one. What is even more funnier, because &lt;S&gt;&lt;/S&gt;&lt;STRONG&gt;GS themself proposes to use&lt;/STRONG&gt;&lt;STRONG&gt; Anaconda/Miniconda.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;You can stop the ongoing search loop, but then the Python palette is worthless, since you can't use it. Not so dramatic either, since you can do everything in VSCode as well.&lt;BR /&gt;BUT if you try to close Archicad in the end: you can't! The files closes, but AC refuses to go away and has to be sniped from orbit with the taskmanager...&lt;BR /&gt;&lt;BR /&gt;So, please either fix this, GS, or just let the user help and point to the right interpreter... &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" border="0" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 07:55:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267443#M681</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-09-15T07:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad – Python – and Anaconda/Miniconda</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267444#M682</link>
      <description>Although not a in a very user friendly way, but there is an option to set a custom location for your Python interpreter.&lt;BR /&gt;
&lt;BR /&gt;
You can set the &lt;B&gt;PythonUI/CustomLocation&lt;/B&gt; (String Value) registy key to the location of the interpreter.&lt;BR /&gt;
&lt;BR /&gt;
Hope it helps,&lt;BR /&gt;
Viktor</description>
      <pubDate>Mon, 03 Aug 2020 08:17:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267444#M682</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2020-08-03T08:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad – Python – and Anaconda/Miniconda</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267445#M683</link>
      <description>&lt;BLOCKQUOTE&gt;Viktor wrote:&lt;BR /&gt;
You can set the &lt;B&gt;PythonUI/CustomLocation&lt;/B&gt; (String Value) registy key to the location of the interpreter.
&lt;/BLOCKQUOTE&gt;

Hey Viktor, thank you for this info!&lt;BR /&gt;
Where exactly in registry shall this key be, tho? The regedit search didn't found it, and looking by hand it's definitely not in Computer\HKEY_CURRENT_USER\Software\GRAPHISOFT\&lt;BR /&gt;
&lt;BR /&gt;
So what I did instead was making a new key named "PythonUI" inside of Computer\HKEY_CURRENT_USER\Software\GRAPHISOFT\ARCHICAD\ARCHICAD 24.0.0 GER R1\&lt;BR /&gt;
And then a new string value named "CustomLocation" set to the path to the custom Python interpreter.&lt;BR /&gt;
&lt;BR /&gt;
This however didn't work out, either....   &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt;</description>
      <pubDate>Mon, 03 Aug 2020 11:23:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267445#M683</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2020-08-03T11:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad – Python – and Anaconda/Miniconda</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267446#M684</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for reporting the issue, and I am very sorry about the experience!&lt;BR /&gt;
&lt;BR /&gt;
I tried to replicate the issue, by removing any trace of Python in my computer. After that, I download the latest Anaconda installer (2020.7) from their website and install it. Upon checking in Archicad, the interpreter is loaded correctly, there was no constant loop or error message appear (as can be seen in the attached screenshot below).&lt;BR /&gt;
&lt;BR /&gt;
Could you let me know at which point did you encounter the error R6034?&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much!&lt;BR /&gt;
&lt;BR /&gt;
Best regards,&lt;BR /&gt;
Minh</description>
      <pubDate>Tue, 04 Aug 2020 13:50:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267446#M684</guid>
      <dc:creator>Minh Nguyen</dc:creator>
      <dc:date>2020-08-04T13:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad – Python – and Anaconda/Miniconda</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267447#M685</link>
      <description>Hi Minh!&lt;BR /&gt;
Thank you so much for replying!&lt;BR /&gt;
&lt;BR /&gt;
The R6034 error shouldn't actually matter. It is a well known problem, because there can be only one msvcr90.dll loaded at any time. Also the renaming helped with that and you don't need that dll anyway.&lt;BR /&gt;
&lt;BR /&gt;
Since you had a nice and clean new install I think your default environment is already Python 3.x.&lt;BR /&gt;
I did a lot of work on IronPython previously and I have an older install of Miniconda so my &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;default&lt;E&gt;&lt;/E&gt; environment is actually 2.7 – and Py3 is in a virtual env (because that's the reason to use Miniconda: the ability to have more than one Python version installed).&lt;BR /&gt;
So it seems Archicad has problems finding the virtual env interpreter then, huh?&lt;BR /&gt;
&lt;BR /&gt;
Do you know about the registry item? Maybe if you or Viktor can shine a bit more light on it I'm still able to use my current install.&lt;BR /&gt;
It is also a bit dumb with *conda, because while you can install as many Python versions as you want, it doesn't support changing the default Python....  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt; &lt;BR /&gt;
So yeah, maybe I still need to reinstall everything. Or maybe &lt;A href="https://pipenv.pypa.io/en/latest/" target="_blank"&gt;Pipenv&lt;/A&gt; is a good alternative....?</description>
      <pubDate>Tue, 04 Aug 2020 20:28:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267447#M685</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2020-08-04T20:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad – Python – and Anaconda/Miniconda</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267448#M686</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for the clarification! I never have more than one Python environment installed, therefore I never encountered such errors. Let me ask for some help from the development team with this issue. As soon as I have an answer, I will get back to you!&lt;BR /&gt;
&lt;BR /&gt;
Best regards,&lt;BR /&gt;
Minh</description>
      <pubDate>Wed, 05 Aug 2020 11:56:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267448#M686</guid>
      <dc:creator>Minh Nguyen</dc:creator>
      <dc:date>2020-08-05T11:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad – Python – and Anaconda/Miniconda</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267449#M687</link>
      <description>&lt;BLOCKQUOTE&gt;runxel wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;Viktor wrote:&lt;BR /&gt;
You can set the &lt;B&gt;PythonUI/CustomLocation&lt;/B&gt; (String Value) registy key to the location of the interpreter.
&lt;/BLOCKQUOTE&gt;
So what I did instead was making a new key named "PythonUI" inside of Computer\HKEY_CURRENT_USER\Software\GRAPHISOFT\ARCHICAD\ARCHICAD 24.0.0 GER R1\&lt;BR /&gt;
And then a new string value named "CustomLocation" set to the path to the custom Python interpreter.&lt;BR /&gt;
&lt;BR /&gt;
This however didn't work out, either....   &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt;
&lt;/BLOCKQUOTE&gt;

Hi,&lt;BR /&gt;
&lt;BR /&gt;
The registry key should be created and set manually, so you did well.&lt;BR /&gt;
I attached a screenshot from my registry and the python versions found by the Python Palette. In the Python Options dialog you can activate the desired python environment.</description>
      <pubDate>Mon, 10 Aug 2020 09:42:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267449#M687</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2020-08-10T09:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad – Python – and Anaconda/Miniconda</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267450#M688</link>
      <description>&lt;BLOCKQUOTE&gt;Tibor wrote:&lt;BR /&gt;
The registry key should be created and set manually, so you did well.
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Hi Tibor, thank you so much for clarification!&lt;BR /&gt;
However I now see that there is a difference between what I want to achieve and what this technique can offer.&lt;BR /&gt;
See, if one opens the Python palette, AC will try to find an Archicad interpreter but fails to do so. That's when I thought the registry key could help. But after you click on "abort the search" the palette opens like this (see attached image).&lt;BR /&gt;
Seems like the registry key only helps, if AC already found an interpreter, otherwise it doesn't work – which is quite useless in a case like mine...</description>
      <pubDate>Mon, 10 Aug 2020 10:06:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267450#M688</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2020-08-10T10:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad – Python – and Anaconda/Miniconda</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267451#M689</link>
      <description>&lt;BLOCKQUOTE&gt;runxel wrote:&lt;BR /&gt;Seems like the registry key only helps, if AC already found an interpreter, otherwise it doesn't work – which is quite useless in a case like mine...&lt;/BLOCKQUOTE&gt;
Thank you for pointing out this issue!&lt;BR /&gt;
You're absolutely right. I added this to our bug database: DEF-1519 (PythonUI/CustomLocation registry key only helps if AC already found an interpreter)&lt;BR /&gt;
&lt;BR /&gt;
Until we fix the bug, as a workaround I would suggest you to add at least one python interpreter path to the PATH environment variable. That way Archicad will be able to find an interpreter and you will be able to open Python Options to select the interpreter.</description>
      <pubDate>Mon, 10 Aug 2020 10:47:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267451#M689</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2020-08-10T10:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad – Python – and Anaconda/Miniconda</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267452#M690</link>
      <description>&lt;BLOCKQUOTE&gt;Tibor wrote:&lt;BR /&gt;
Thank you for pointing out this issue!&lt;BR /&gt;
You're absolutely right. I added this to our bug database
&lt;/BLOCKQUOTE&gt;

Great! Thanks again, Tibor! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
For now I just use my Python from VSCode directly, which works like a charm.</description>
      <pubDate>Mon, 10 Aug 2020 11:05:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-Python-and-Anaconda-Miniconda/m-p/267452#M690</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2020-08-10T11:05:37Z</dc:date>
    </item>
  </channel>
</rss>

