<?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: Unable to build oneagent extension demo plugin in windows environment in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Unable-to-build-OneAgent-extension-demo-plugin-in-Windows/m-p/195443#M2425</link>
    <description>&lt;P&gt;Peoples : you saved me. Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 13:55:52 GMT</pubDate>
    <dc:creator>gilles_tabary</dc:creator>
    <dc:date>2022-09-29T13:55:52Z</dc:date>
    <item>
      <title>Unable to build OneAgent extension demo plugin in Windows environment</title>
      <link>https://community.dynatrace.com/t5/Extensions/Unable-to-build-OneAgent-extension-demo-plugin-in-Windows/m-p/193692#M2371</link>
      <description>&lt;P&gt;I have installed python version 3.8 from&amp;nbsp;&lt;A href="https://www.python.org/downloads/release/python-3810/" target="_blank" rel="noopener"&gt;https://www.python.org/downloads/release/python-3810/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made all steps in this link &lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on&lt;/A&gt; until the build step. When running build command I get this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C:\...\oneagent-demo-ext\examples\demo_oneagent_plugin&amp;gt;plugin_sdk build_plugin --no_upload&lt;BR /&gt;Arguments=Namespace(deployment_dir=None, no_cert_ver=False, no_upload=True, plugin_dir='C:\\...\\oneagent-demo-ext\\examples\\demo_oneagent_plugin', server=None, token=None, token_file=None, verbose=False)&lt;BR /&gt;Starting oneagent_build_plugin&lt;BR /&gt;Checking plugin metadata: C:\...\oneagent-demo-ext\examples\demo_oneagent_plugin\plugin.json&lt;BR /&gt;Validating plugin.json against schema&lt;BR /&gt;&lt;STRONG&gt;Error occured: &amp;lt;urlopen error [WinError 2] The system cannot find the file specified: 'name.json'&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas of what is causing this error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 09:27:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Unable-to-build-OneAgent-extension-demo-plugin-in-Windows/m-p/193692#M2371</guid>
      <dc:creator>joseafcampos</dc:creator>
      <dc:date>2023-05-16T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to build oneagent extension demo plugin in windows environment</title>
      <link>https://community.dynatrace.com/t5/Extensions/Unable-to-build-OneAgent-extension-demo-plugin-in-Windows/m-p/193727#M2372</link>
      <description>&lt;P&gt;Depending on which version of the SDK you are using, you may see a Traceback message that references a problem in the &lt;A href="https://pypi.org/project/jsonschema/" target="_self"&gt;jsonschema&lt;/A&gt; package. This is a dependency of plugin_sdk. There was a &lt;A href="https://github.com/python-jsonschema/jsonschema/issues/981" target="_self"&gt;change&lt;/A&gt; made in version 4.10.0 of jsonschema that seems to have broken several tools that depend on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ben_davidson_0-1662069209544.png" style="width: 791px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7391i61B461BE5EBA16BD/image-dimensions/791x172?v=v2" width="791" height="172" role="button" title="ben_davidson_0-1662069209544.png" alt="ben_davidson_0-1662069209544.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, the best course of action is downgrade your version of jsonschema to &amp;lt;=4.9.1. Run the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;pip install jsonschema==4.9.1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;After the downgrade is complete, try running the build command again. Here's an example of the error, the downgrade and a rerun of the build command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;FileNotFoundError: [Errno 2] No such file or directory: 'xxx/plugin_deployment/xxx/plugin.json'
❯ pip install jsonschema==4.9.1
Collecting jsonschema==4.9.1
  Using cached jsonschema-4.9.1-py3-none-any.whl (79 kB)
Requirement already satisfied: attrs&amp;gt;=17.4.0 in ./venv/lib/python3.11/site-packages (from jsonschema==4.9.1) (22.1.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,&amp;gt;=0.14.0 in ./venv/lib/python3.11/site-packages (from jsonschema==4.9.1) (0.18.1)
Installing collected packages: jsonschema
  Attempting uninstall: jsonschema
    Found existing installation: jsonschema 4.10.0
    Uninstalling jsonschema-4.10.0:
      Successfully uninstalled jsonschema-4.10.0
Successfully installed jsonschema-4.9.1
❯ ./build_and_simulate.sh
File: /etc/init.d/dynatracefunctions not found - Remote Plugin Module is detected
Arguments=Namespace(plugin_dir='xxx/', deployment_dir='xxx/plugin_deployment', verbose=False, no_upload=True, no_cert_ver=False, server=None, token=None, token_file=None)
Starting oneagent_build_plugin
Checking plugin metadata: /Users/xxx/dev/xxx/plugin.json
Validating plugin.json against schema
Plugin data: Plugin name=xxx, version=0.1.1
Cleaning up previous build information&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 21:54:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Unable-to-build-OneAgent-extension-demo-plugin-in-Windows/m-p/193727#M2372</guid>
      <dc:creator>ben_davidson</dc:creator>
      <dc:date>2022-09-01T21:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to build oneagent extension demo plugin in windows environment</title>
      <link>https://community.dynatrace.com/t5/Extensions/Unable-to-build-OneAgent-extension-demo-plugin-in-Windows/m-p/193730#M2374</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I will try your solution, but in the meantime i made some progress.&lt;/P&gt;&lt;P&gt;As strange as it my seams, I've created an empty json file 'name.json' that was causing the exception. Then it threw another exception that it was missing a file name 'units.json'. I also created this file, and finally it threw an exception that a file 'properties.json' was missing. I made a copy of 'plugin.json' and renamed it to 'properties.json'.&lt;/P&gt;&lt;P&gt;After this changes i was able to run de simulator , build the extension and uploaded to Dynatrace compiled with the latest version of python 3.10.6.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 23:04:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Unable-to-build-OneAgent-extension-demo-plugin-in-Windows/m-p/193730#M2374</guid>
      <dc:creator>joseafcampos</dc:creator>
      <dc:date>2022-09-01T23:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to build oneagent extension demo plugin in windows environment</title>
      <link>https://community.dynatrace.com/t5/Extensions/Unable-to-build-OneAgent-extension-demo-plugin-in-Windows/m-p/193751#M2378</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have applied your solution, downgraded the jsonschema and it worked.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 10:15:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Unable-to-build-OneAgent-extension-demo-plugin-in-Windows/m-p/193751#M2378</guid>
      <dc:creator>joseafcampos</dc:creator>
      <dc:date>2022-09-02T10:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to build oneagent extension demo plugin in windows environment</title>
      <link>https://community.dynatrace.com/t5/Extensions/Unable-to-build-OneAgent-extension-demo-plugin-in-Windows/m-p/195443#M2425</link>
      <description>&lt;P&gt;Peoples : you saved me. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 13:55:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Unable-to-build-OneAgent-extension-demo-plugin-in-Windows/m-p/195443#M2425</guid>
      <dc:creator>gilles_tabary</dc:creator>
      <dc:date>2022-09-29T13:55:52Z</dc:date>
    </item>
  </channel>
</rss>

