cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error in building a demo plugin

HI Guys,

i am getting below error while trying to build the demo plugin provided with PLugin development SDK

 

root@activegate:/opt/examples/demo_activegate_plugin# plugin_sdk build_plugin
Arguments=Namespace(plugin_dir='/opt/examples/demo_activegate_plugin', deployment_dir=None, verbose=False, no_upload=False, no_cert_ver=False, server=None, token=None, token_file=None)
Starting oneagent_build_plugin
Checking plugin metadata: /opt/examples/demo_activegate_plugin/plugin.json
Validating plugin.json against schema
"processTypeNames" is deprecated in custom extension JSON definition file. Please use "technologies" instead.
Plugin data: Plugin name=custom.remote.python.demo, version=1.3
Cleaning up previous build information
running bdist_wheel
running build
running build_py
Generating grammar tables from /usr/lib/python3.9/lib2to3/Grammar.txt
Generating grammar tables from /usr/lib/python3.9/lib2to3/PatternGrammar.txt
creating build
creating build/lib
copying /opt/examples/demo_activegate_plugin/demo_activegate_plugin.py -> build/lib
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
copying build/lib/demo_activegate_plugin.py -> build/bdist.linux-x86_64/wheel
running install_egg_info
running egg_info
creating /opt/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info
writing /opt/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/PKG-INFO
writing dependency_links to /opt/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/dependency_links.txt
writing requirements to /opt/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/requires.txt
writing top-level names to /opt/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/top_level.txt
writing manifest file '/opt/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/SOURCES.txt'
reading manifest file '/opt/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/SOURCES.txt'
writing manifest file '/opt/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/SOURCES.txt'
Copying /opt/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info to build/bdist.linux-x86_64/wheel/demo_activegate_plugin-1.3.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/demo_activegate_plugin-1.3.dist-info/WHEEL
creating 'dist/demo_activegate_plugin-1.3-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'demo_activegate_plugin.py'
adding 'demo_activegate_plugin-1.3.dist-info/METADATA'
adding 'demo_activegate_plugin-1.3.dist-info/WHEEL'
adding 'demo_activegate_plugin-1.3.dist-info/top_level.txt'
adding 'demo_activegate_plugin-1.3.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Leaving directory /tmp/tmp6pl9zd35
Created distribution of the plugin: [('bdist_wheel', '3.9', 'dist/demo_activegate_plugin-1.3-py3-none-any.whl')]
Installing plugin to temporary location
Processing /tmp/tmp6pl9zd35/dist/demo_activegate_plugin-1.3-py3-none-any.whl
Collecting requests>=2.6.0 (from demo-activegate-plugin==1.3)
Failed to install the plugin into temporary location

 

I installed the SDK on my activegate and am running this command from within my activegate

 

 

Dynatrace Professional
2 REPLIES 2

ChadTurner
DynaMight Guru
DynaMight Guru

@RodrigoBiaggio were you able to get this failure solved? If so what was the solution? 

-Chad

Mike_L
Dynatrace Pro
Dynatrace Pro

Usually this error is because the user that builds the extension does not have access to the plugin_deployment folder.

Can you try to either build it with another destination (using -d) or run it with sudo?