<?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 how do I install python library like fonttools in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-do-i-install-python-library-like-fonttools/m-p/10695351#M7789</link>
    <description>&lt;P&gt;Not sure if my information is still valid?&lt;/P&gt;&lt;P&gt;Once I found something like this, since Spider instead of VSCode, you must find Fusion 360 Python version Normally in in Webdeploy folder "%appdata%/local/Autodesk/webdeploy" find your latest python and install the library from Source, since PIP is not installed.&lt;BR /&gt;Normally when Fusion 360 update or change python version you will lose the installation of the library and you have to install it again!!!&lt;/P&gt;&lt;P&gt;this is a translate from Japanese website through google translate , expect to have problems, and it's done over MAC OS&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-spoiler-container-editor"&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="2"&gt;For some reason (usually?) Python specific to Fusion, even if pip was installed it could not be used. If pip can be&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;used, it is done with pip install noise .&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;However, since it can not be done, I will build it manually and take it for installation.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;First of all, I will grasp where Fusion puts the entity of python.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;In my environment&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/ Users / USERNAME / Library / Application \ Support / Autodesk / webdeploy / shared / PYTHON / 3.5.3c /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;MAC64 / Python.framework / Versions / 3.5 / bin .&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;procedure&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1. Get a set of noise source code from the URL or GitHub shown earlier.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2. I will put it on the desktop etc.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3. Start a terminal that python can run.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;4. Moved inside the noise directory.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;inside that&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;sudo / Users / USERNAME / Library / Application \ Support / Autodesk / webdeploy / shared / PYTHON / 3.5.3c /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;MAC64 / Python.framework / Versions / 3.5 / bin / python setup.py build&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;next&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="2"&gt;sudo / Users / USERNAME / Library / Application \ Support / Autodesk / webdeploy / shared / PYTHON / 3.5.3c /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;MAC64 / Python.framework / Versions / 3.5 / bin / python setup.py install&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Then,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="2"&gt;/ Users / USERNAME / Library / Application \ Support / Autodesk / webdeploy / shared / PYTHON / 3.5.3c /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;MAC64 / Python.framework / Versions / 3.5 / lib / python 3.5 / site-packages / py3.5-macosx-10.6-intel.egg&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;↑ This kind of thing is generated.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;This is okay.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Because I am addicted to various things,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/ Users / USERNAME / Library / Application \ Support / Autodesk / webdeploy / production /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2a93884b46c5eedb87c1f008a9d77b138ef905db / Api / Python / packages / . I wonder if I can manage to use pip.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Although I did it, it should end in less than 10 minutes if I know how to do it.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Let's restart Fusion as a matter of course.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Let's start Spyder from scripts and add-ins.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;When adding noise to the script which changes the angle of the axis with the for statement as shown earlier&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="2"&gt;import math&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;import noise&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;import random&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;import adsk.core, adsk.fusion, adsk.cam, traceback&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;def run (context):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ui = None&lt;BR /&gt;.......&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 11:36:33 GMT</pubDate>
    <dc:creator>masounmardini</dc:creator>
    <dc:date>2021-10-18T11:36:33Z</dc:date>
    <item>
      <title>how do I install python library like fonttools</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-do-i-install-python-library-like-fonttools/m-p/10686783#M7788</link>
      <description>&lt;P&gt;I am trying to install and run the add-in surfacetext.py.&amp;nbsp; I downloaded the code, created a new add-in, and pasted in the code.&amp;nbsp; However I am getting the error "Import "fontTools" could not be resolved".&amp;nbsp; I opened a windows terminal and did "pip install fonttools" which succeeded.&amp;nbsp; This did not fix the error.&amp;nbsp; I suspect that the windows default python environment is not used by fusion360 add-ins.&amp;nbsp; Is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make a long story shorter, how do I install a library for add-ins to use?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 21:50:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-do-i-install-python-library-like-fonttools/m-p/10686783#M7788</guid>
      <dc:creator>mark</dc:creator>
      <dc:date>2021-10-13T21:50:55Z</dc:date>
    </item>
    <item>
      <title>how do I install python library like fonttools</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-do-i-install-python-library-like-fonttools/m-p/10695351#M7789</link>
      <description>&lt;P&gt;Not sure if my information is still valid?&lt;/P&gt;&lt;P&gt;Once I found something like this, since Spider instead of VSCode, you must find Fusion 360 Python version Normally in in Webdeploy folder "%appdata%/local/Autodesk/webdeploy" find your latest python and install the library from Source, since PIP is not installed.&lt;BR /&gt;Normally when Fusion 360 update or change python version you will lose the installation of the library and you have to install it again!!!&lt;/P&gt;&lt;P&gt;this is a translate from Japanese website through google translate , expect to have problems, and it's done over MAC OS&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-spoiler-container-editor"&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="2"&gt;For some reason (usually?) Python specific to Fusion, even if pip was installed it could not be used. If pip can be&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;used, it is done with pip install noise .&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;However, since it can not be done, I will build it manually and take it for installation.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;First of all, I will grasp where Fusion puts the entity of python.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;In my environment&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/ Users / USERNAME / Library / Application \ Support / Autodesk / webdeploy / shared / PYTHON / 3.5.3c /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;MAC64 / Python.framework / Versions / 3.5 / bin .&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;procedure&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1. Get a set of noise source code from the URL or GitHub shown earlier.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2. I will put it on the desktop etc.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3. Start a terminal that python can run.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;4. Moved inside the noise directory.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;inside that&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;sudo / Users / USERNAME / Library / Application \ Support / Autodesk / webdeploy / shared / PYTHON / 3.5.3c /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;MAC64 / Python.framework / Versions / 3.5 / bin / python setup.py build&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;next&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="2"&gt;sudo / Users / USERNAME / Library / Application \ Support / Autodesk / webdeploy / shared / PYTHON / 3.5.3c /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;MAC64 / Python.framework / Versions / 3.5 / bin / python setup.py install&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Then,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="2"&gt;/ Users / USERNAME / Library / Application \ Support / Autodesk / webdeploy / shared / PYTHON / 3.5.3c /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;MAC64 / Python.framework / Versions / 3.5 / lib / python 3.5 / site-packages / py3.5-macosx-10.6-intel.egg&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;↑ This kind of thing is generated.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;This is okay.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Because I am addicted to various things,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/ Users / USERNAME / Library / Application \ Support / Autodesk / webdeploy / production /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2a93884b46c5eedb87c1f008a9d77b138ef905db / Api / Python / packages / . I wonder if I can manage to use pip.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Although I did it, it should end in less than 10 minutes if I know how to do it.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Let's restart Fusion as a matter of course.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Let's start Spyder from scripts and add-ins.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;When adding noise to the script which changes the angle of the axis with the for statement as shown earlier&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="2"&gt;import math&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;import noise&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;import random&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;import adsk.core, adsk.fusion, adsk.cam, traceback&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;def run (context):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ui = None&lt;BR /&gt;.......&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 11:36:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-do-i-install-python-library-like-fonttools/m-p/10695351#M7789</guid>
      <dc:creator>masounmardini</dc:creator>
      <dc:date>2021-10-18T11:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: how do I install python library like fonttools</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-do-i-install-python-library-like-fonttools/m-p/10697066#M7790</link>
      <description>&lt;P&gt;I tried using the fonttools add-in and it seems to have a lot of problems.&amp;nbsp; I've never used it before and find it strange if it did work at one point.&amp;nbsp; The main problem is that it's trying to do some things that are not supported in a parametric model.&amp;nbsp; I change my model to not capture the design history and then I had another problem where it was trying to create groups within the timeline and the timeline is only supported in a parametric design.&amp;nbsp; Regardless, the add-in needs quite a bit of work to get it functioning again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your initial question of how to use external Python libraries, the fonttools add-in does do a good job of that.&amp;nbsp; It has a local copy of the Python library.&amp;nbsp; If you pull the zip file from Github you'll see there is a FontTools folder within the add-in folder. It is recommended that each script or add-in have its own local copy of whatever libraries it wants to use. Fusion uses Python in a different way than is typical.&amp;nbsp; Fusion has its own copy of Python and all scripts and add-ins share that copy of Python. A typical way to add libraries is to install them in the system path so the library is shared among all programs. You could install a library into the Fusion Python install but that is problematic because the location changes and is updated with each release. This is creates a problem where two add-ins want to use the same library but may not be using the same version of that library. By having your own local copy, you're able to have whatever version you want and have tested with.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 23:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-do-i-install-python-library-like-fonttools/m-p/10697066#M7790</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2021-10-18T23:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: how do I install python library like fonttools</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-do-i-install-python-library-like-fonttools/m-p/10698730#M7791</link>
      <description>&lt;P&gt;I meant to say there are a lot of problems with the SurfaceText add-in, not the fonttools library.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 14:54:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-do-i-install-python-library-like-fonttools/m-p/10698730#M7791</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2021-10-19T14:54:57Z</dc:date>
    </item>
  </channel>
</rss>

