# Python agent AttributeError exception

**URL:** <https://discuss.elastic.co/t/python-agent-attributeerror-exception/158447>\
**Category:** APM\
**Created:** [November 28, 2018, 3:26am UTC](https://discuss.elastic.co/t/python-agent-attributeerror-exception/158447 "2018-11-28T03:26:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![toughrogrammer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toughrogrammer/32/38160_2.png) [@toughrogrammer](https://discuss.elastic.co/u/toughrogrammer)\
**Post date:** [November 28, 2018, 3:26am UTC](https://discuss.elastic.co/t/python-agent-attributeerror-exception/158447/1 "2018-11-28T03:26:44Z")

</div>

Hi, I'm using python agent and there are weired exceptions in python agents.

 ![39%20PM](https://us1.discourse-cdn.com/elastic/original/3X/4/4/44c80f73264789fe9d89e6eca1d2bf5b70455649.png)  
 ![41%20PM](https://us1.discourse-cdn.com/elastic/original/3X/5/9/597c4b59db7dfb7d5dc1a407f5e0615640e3d52d.png)

Error trace are different but raised from same code(`return f.fileobj.tell() if hasattr(f, "fileobj") else f.tell()`)  
It's 4.0.1 version.  
Are you facing same error?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 18, 2018, 11:26pm UTC](https://discuss.elastic.co/t/python-agent-attributeerror-exception/158447/2 "2018-12-18T23:26:47Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
