<?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: Python Agent in python 3.6 in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Python-Agent-in-python-3-6/m-p/721571#M2690</link>
    <description>&lt;P&gt;This is the error when starting the pyagent:&lt;/P&gt;

&lt;PRE&gt;(venv) [ec2-user@ip site-packages]$ pyagent run -c /etc/appdynamics.cfg - gunicorn my_app.wsgi -b unix:///var/app/run/gunicorn.sock -w 5
2017-05-12 02:58:19,704 [WARNING] appdynamics.proxy.watchdog &amp;lt;3161&amp;gt;: Defunct proxy pid (3476) found; starting over
2017-05-12 02:58:19,706 [INFO] appdynamics.proxy.watchdog &amp;lt;3161&amp;gt;: Started watchdog with pid=3161
Traceback (most recent call last):
  File "/var/app/envs/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 429, in get_provider
    module = sys.modules[moduleOrReq]
KeyError: 'appdynamics_bindeps.proxy'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/app/envs/venv/bin/pyagent", line 11, in &amp;lt;module&amp;gt;
    sys.exit(main())
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/scripts/pyagent/pyagent.py", line 65, in main
    mod.command(options, args)
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/scripts/pyagent/commands/run.py", line 159, in command
    proxy.start(proxy_args)
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/scripts/pyagent/commands/proxy.py", line 119, in start
    proxy_pid = start_fn(run_proxy_script=run_proxy_script, script_args=args, debug=debug)
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/scripts/pyagent/commands/proxy.py", line 221, in start_watchdog
    start_proxy(run_proxy_script=run_proxy_script, script_args=script_args, debug=debug, proxy_logger=logger)
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/scripts/pyagent/commands/proxy.py", line 227, in start_proxy
    run_proxy_script = run_proxy_script or resource_filename('appdynamics_bindeps.proxy', 'runProxy')
  File "/var/app/envs/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1197, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/var/app/envs/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 431, in get_provider
    __import__(moduleOrReq)
ModuleNotFoundError: No module named 'appdynamics_bindeps'
2017-05-12 02:58:19,884 [ERROR] appdynamics.agent &amp;lt;3159&amp;gt;: Exception in agent startup.
Traceback (most recent call last):
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/agent/__init__.py", line 133, in import_zmq
    __import__('appdynamics_bindeps.zmq')
ModuleNotFoundError: No module named 'appdynamics_bindeps'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/autoinject/sitecustomize.py", line 20, in &amp;lt;module&amp;gt;
    import appdynamics.agent
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/agent/__init__.py", line 138, in &amp;lt;module&amp;gt;
    import_zmq()
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/agent/__init__.py", line 135, in import_zmq
    make_virtual_bindeps_package()
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/agent/__init__.py", line 50, in make_virtual_bindeps_package
    src_root = get_bindeps_location()
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/agent/__init__.py", line 96, in get_bindeps_location
    import appdynamics_bindeps
ModuleNotFoundError: No module named 'appdynamics_bindeps'
Failed to import the site module
Traceback (most recent call last):
  File "/var/app/envs/venv/lib/python3.6/site.py", line 703, in &amp;lt;module&amp;gt;
    main()
  File "/var/app/envs/venv/lib/python3.6/site.py", line 694, in main
    execsitecustomize()
  File "/var/app/envs/venv/lib/python3.6/site.py", line 548, in execsitecustomize
    import sitecustomize
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/autoinject/sitecustomize.py", line 27, in &amp;lt;module&amp;gt;
    appdynamics.agent.remove_autoinject()
NameError: name 'appdynamics' is not defined
&lt;/PRE&gt;

&lt;P&gt;This is the output after running pip install appdynamics:&lt;/P&gt;

&lt;PRE&gt;Collecting appdynamics
  Downloading appdynamics-4.3.1.0-py2.py3-none-any.whl (218kB)
    100% |████████████████████████████████| 225kB 3.4MB/s 
Installing collected packages: appdynamics
Successfully installed appdynamics-4.3.1.0
&lt;/PRE&gt;
&lt;P&gt;Notice the dependencies&amp;nbsp; appdynamics-proxysupport-linux-x64 and&amp;nbsp;appdynamics-bindeps-linux-x64 are not installed. An ls -lf | grep appdynamics shows:&lt;/P&gt;

&lt;PRE&gt;appdynamics
appdynamics-4.3.1.0.dist-info&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 07:02:07 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2017-05-12T07:02:07Z</dc:date>
    <item>
      <title>Python Agent in python 3.6</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Python-Agent-in-python-3-6/m-p/721569#M2688</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I can't install the python agent in python 3.6, the appdynamics dependencies are not installed with pip.&lt;/P&gt;
&lt;P&gt;I tried installing manually but it doesn't work and with python 3.4 but is not working also.&lt;/P&gt;

&lt;P&gt;I have a virtualenv with python3.6&lt;/P&gt;
&lt;P&gt;Whe I run&amp;nbsp;pyagent run -c /etc/appdynamics.cfg -- gunicorn app.wsgi:application -w 2 --reload --log-level=debug --timeout 150&lt;/P&gt;
&lt;P&gt;it gives me:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NameError: name 'appdynamics' is not defined&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 10:53:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Python-Agent-in-python-3-6/m-p/721569#M2688</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-05-11T10:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Python Agent in python 3.6</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Python-Agent-in-python-3-6/m-p/721570#M2689</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Could you do a &lt;STRONG&gt;ls -lf&amp;nbsp;&lt;/STRONG&gt;in the agent installed directory and send us the output, I belive it will be in your &lt;STRONG&gt;&amp;lt;virtual environment&amp;gt;/lib/pythonX.x/site-packages/.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;There is a open issue with Python 3.4+, I just want to make sure its not the case.&lt;/P&gt;

&lt;P&gt;It couldn't find appdynamics, and you also iterated that you are unable to install. What error are you getting while installing.&lt;/P&gt;

&lt;P&gt;Is it possible to run you application in Python 2.7 ?&lt;/P&gt;


&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Ayush&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 06:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Python-Agent-in-python-3-6/m-p/721570#M2689</guid>
      <dc:creator>Ayush_Ghosh</dc:creator>
      <dc:date>2017-05-12T06:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Python Agent in python 3.6</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Python-Agent-in-python-3-6/m-p/721571#M2690</link>
      <description>&lt;P&gt;This is the error when starting the pyagent:&lt;/P&gt;

&lt;PRE&gt;(venv) [ec2-user@ip site-packages]$ pyagent run -c /etc/appdynamics.cfg - gunicorn my_app.wsgi -b unix:///var/app/run/gunicorn.sock -w 5
2017-05-12 02:58:19,704 [WARNING] appdynamics.proxy.watchdog &amp;lt;3161&amp;gt;: Defunct proxy pid (3476) found; starting over
2017-05-12 02:58:19,706 [INFO] appdynamics.proxy.watchdog &amp;lt;3161&amp;gt;: Started watchdog with pid=3161
Traceback (most recent call last):
  File "/var/app/envs/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 429, in get_provider
    module = sys.modules[moduleOrReq]
KeyError: 'appdynamics_bindeps.proxy'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/app/envs/venv/bin/pyagent", line 11, in &amp;lt;module&amp;gt;
    sys.exit(main())
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/scripts/pyagent/pyagent.py", line 65, in main
    mod.command(options, args)
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/scripts/pyagent/commands/run.py", line 159, in command
    proxy.start(proxy_args)
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/scripts/pyagent/commands/proxy.py", line 119, in start
    proxy_pid = start_fn(run_proxy_script=run_proxy_script, script_args=args, debug=debug)
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/scripts/pyagent/commands/proxy.py", line 221, in start_watchdog
    start_proxy(run_proxy_script=run_proxy_script, script_args=script_args, debug=debug, proxy_logger=logger)
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/scripts/pyagent/commands/proxy.py", line 227, in start_proxy
    run_proxy_script = run_proxy_script or resource_filename('appdynamics_bindeps.proxy', 'runProxy')
  File "/var/app/envs/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1197, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/var/app/envs/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 431, in get_provider
    __import__(moduleOrReq)
ModuleNotFoundError: No module named 'appdynamics_bindeps'
2017-05-12 02:58:19,884 [ERROR] appdynamics.agent &amp;lt;3159&amp;gt;: Exception in agent startup.
Traceback (most recent call last):
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/agent/__init__.py", line 133, in import_zmq
    __import__('appdynamics_bindeps.zmq')
ModuleNotFoundError: No module named 'appdynamics_bindeps'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/autoinject/sitecustomize.py", line 20, in &amp;lt;module&amp;gt;
    import appdynamics.agent
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/agent/__init__.py", line 138, in &amp;lt;module&amp;gt;
    import_zmq()
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/agent/__init__.py", line 135, in import_zmq
    make_virtual_bindeps_package()
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/agent/__init__.py", line 50, in make_virtual_bindeps_package
    src_root = get_bindeps_location()
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/agent/__init__.py", line 96, in get_bindeps_location
    import appdynamics_bindeps
ModuleNotFoundError: No module named 'appdynamics_bindeps'
Failed to import the site module
Traceback (most recent call last):
  File "/var/app/envs/venv/lib/python3.6/site.py", line 703, in &amp;lt;module&amp;gt;
    main()
  File "/var/app/envs/venv/lib/python3.6/site.py", line 694, in main
    execsitecustomize()
  File "/var/app/envs/venv/lib/python3.6/site.py", line 548, in execsitecustomize
    import sitecustomize
  File "/var/app/envs/venv/lib/python3.6/site-packages/appdynamics/autoinject/sitecustomize.py", line 27, in &amp;lt;module&amp;gt;
    appdynamics.agent.remove_autoinject()
NameError: name 'appdynamics' is not defined
&lt;/PRE&gt;

&lt;P&gt;This is the output after running pip install appdynamics:&lt;/P&gt;

&lt;PRE&gt;Collecting appdynamics
  Downloading appdynamics-4.3.1.0-py2.py3-none-any.whl (218kB)
    100% |████████████████████████████████| 225kB 3.4MB/s 
Installing collected packages: appdynamics
Successfully installed appdynamics-4.3.1.0
&lt;/PRE&gt;
&lt;P&gt;Notice the dependencies&amp;nbsp; appdynamics-proxysupport-linux-x64 and&amp;nbsp;appdynamics-bindeps-linux-x64 are not installed. An ls -lf | grep appdynamics shows:&lt;/P&gt;

&lt;PRE&gt;appdynamics
appdynamics-4.3.1.0.dist-info&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 07:02:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Python-Agent-in-python-3-6/m-p/721571#M2690</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-05-12T07:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python Agent in python 3.6</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Python-Agent-in-python-3-6/m-p/721572#M2691</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sorry you had to face the issue. Its a known issue, and we have resolved it, and the fix will out in next release.&lt;/P&gt;

&lt;P&gt;In the mean while, I would request you to try installing the dependencies, directly using.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;pip install appdynamics-bindeps-linux-x64 appdynamics-proxysupport-linux-x64&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;Or is possible use lower version python than 3.4.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ayush&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 08:50:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Python-Agent-in-python-3-6/m-p/721572#M2691</guid>
      <dc:creator>Ayush_Ghosh</dc:creator>
      <dc:date>2017-05-12T08:50:55Z</dc:date>
    </item>
  </channel>
</rss>

