<?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: Error starting up the Python Agent in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Error-starting-up-the-Python-Agent/m-p/728961#M6455</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/154430"&gt;@Dylann.Orozco&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;I found some info.&lt;/P&gt;

&lt;P&gt;There might be some nuggets in here:&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/Dynamic-Languages-Node-JS-Python/Python-Agent-in-python-3-6/m-p/24321" target="_blank"&gt;https://community.appdynamics.com/t5/Dynamic-Languages-Node-JS-Python/Python-Agent-in-python-3-6/m-p/24321&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And I also found this&amp;nbsp;&lt;SPAN&gt;To instrument a raw script (without wsgi), you need to use the Python agent API. Here's an example:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://gist.github.com/kylefurlong/920b9824a8c0cf933e416fde5eb040cf" rel="noreferrer nofollow noopener" target="_blank"&gt;https://gist.github.com/kylefurlong/920b9824a8c0cf933e416fde5eb040cf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Not sure if this info pertains to exactly your post, but maybe it can lead to further ideas or investigation.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 16:38:39 GMT</pubDate>
    <dc:creator>iamryan</dc:creator>
    <dc:date>2021-09-30T16:38:39Z</dc:date>
    <item>
      <title>Error starting up the Python Agent</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Error-starting-up-the-Python-Agent/m-p/728960#M6454</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I'm new to AppDynamics and I'm trying to instrument a simple app using the Python agent, but I'm having some issues in the process.&amp;nbsp;The Agent Proxy is up, but not communicating or sending any data to the controller. I've validated that the settings in the configuration files are correct.&amp;nbsp;The error messages (which continue on a loop) are shown below.&lt;BR /&gt;One of the messages coming from the proxy agent is that there's Java isn't able to find jzmq, but I've verified it's actually properly installed in my system (macOS Big Sur 11.6 running on Apple Silicon M1). Is there a way in which I could direct the Java proxy agent to use the path (/usr/local/lib) that holds this library?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Exception in thread "main" java.lang.UnsatisfiedLinkError: no jzmq in java.library.path&lt;/P&gt;&lt;P&gt;ImportError: cannot import name 'constants' from partially initialized module 'appdynamics_bindeps.zmq.backend.cython' (most likely due to a circular import) (/private/tmp/appd/lib/cp39-cp39-1f01d87b92610d5ab8a368411361e151/site-packages/appdynamics_bindeps/zmq/backend/cython/__init__.py)&lt;/P&gt;&lt;P&gt;NameError: name 'appdynamics' is not defined&lt;/P&gt;&lt;P&gt;I'd appreciate any input on this matter, thanks in advance.&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;2021-09-28 18:25:18,733 [ERROR] appdynamics.agent &amp;lt;50988&amp;gt;: Exception in agent startup.
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/appdynamics/autoinject/sitecustomize.py", line 20, in &amp;lt;module&amp;gt;
    import appdynamics.agent
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/appdynamics/agent/__init__.py", line 137, in &amp;lt;module&amp;gt;
    from appdynamics.agent.core.agent import Agent
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/appdynamics/agent/core/agent.py", line 24, in &amp;lt;module&amp;gt;
    from appdynamics.agent.services.config import ConfigService
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/appdynamics/agent/services/config.py", line 15, in &amp;lt;module&amp;gt;
    from appdynamics.agent.core.transport import ConfigTransport
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/appdynamics/agent/core/transport.py", line 12, in &amp;lt;module&amp;gt;
    import appdynamics_bindeps.zmq as zmq
  File "/private/tmp/appd/lib/cp39-cp39-1f01d87b92610d5ab8a368411361e151/site-packages/appdynamics_bindeps/zmq/__init__.py", line 50, in &amp;lt;module&amp;gt;
    from appdynamics_bindeps.zmq import backend
  File "/private/tmp/appd/lib/cp39-cp39-1f01d87b92610d5ab8a368411361e151/site-packages/appdynamics_bindeps/zmq/backend/__init__.py", line 40, in &amp;lt;module&amp;gt;
    reraise(*exc_info)
  File "/private/tmp/appd/lib/cp39-cp39-1f01d87b92610d5ab8a368411361e151/site-packages/appdynamics_bindeps/zmq/utils/sixcerpt.py", line 34, in reraise
    raise value
  File "/private/tmp/appd/lib/cp39-cp39-1f01d87b92610d5ab8a368411361e151/site-packages/appdynamics_bindeps/zmq/backend/__init__.py", line 27, in &amp;lt;module&amp;gt;
    _ns = select_backend(first)
  File "/private/tmp/appd/lib/cp39-cp39-1f01d87b92610d5ab8a368411361e151/site-packages/appdynamics_bindeps/zmq/backend/select.py", line 28, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "/private/tmp/appd/lib/cp39-cp39-1f01d87b92610d5ab8a368411361e151/site-packages/appdynamics_bindeps/zmq/backend/cython/__init__.py", line 6, in &amp;lt;module&amp;gt;
    from . import (constants, error, message, context,
ImportError: cannot import name 'constants' from partially initialized module 'appdynamics_bindeps.zmq.backend.cython' (most likely due to a circular import) (/private/tmp/appd/lib/cp39-cp39-1f01d87b92610d5ab8a368411361e151/site-packages/appdynamics_bindeps/zmq/backend/cython/__init__.py)
Error in sitecustomize; set PYTHONVERBOSE for traceback:
NameError: name 'appdynamics' is not defined&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Sep 2021 15:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Error-starting-up-the-Python-Agent/m-p/728960#M6454</guid>
      <dc:creator>Dylann_Orozco</dc:creator>
      <dc:date>2021-09-29T15:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error starting up the Python Agent</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Error-starting-up-the-Python-Agent/m-p/728961#M6455</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/154430"&gt;@Dylann.Orozco&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;I found some info.&lt;/P&gt;

&lt;P&gt;There might be some nuggets in here:&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/Dynamic-Languages-Node-JS-Python/Python-Agent-in-python-3-6/m-p/24321" target="_blank"&gt;https://community.appdynamics.com/t5/Dynamic-Languages-Node-JS-Python/Python-Agent-in-python-3-6/m-p/24321&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And I also found this&amp;nbsp;&lt;SPAN&gt;To instrument a raw script (without wsgi), you need to use the Python agent API. Here's an example:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://gist.github.com/kylefurlong/920b9824a8c0cf933e416fde5eb040cf" rel="noreferrer nofollow noopener" target="_blank"&gt;https://gist.github.com/kylefurlong/920b9824a8c0cf933e416fde5eb040cf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Not sure if this info pertains to exactly your post, but maybe it can lead to further ideas or investigation.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 16:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Error-starting-up-the-Python-Agent/m-p/728961#M6455</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2021-09-30T16:38:39Z</dc:date>
    </item>
  </channel>
</rss>

