# Robotframework-assertion-engine v. 3.0.0 causes New Context kw of BrowserLibrary to fail

**URL:** <https://forum.robotframework.org/t/robotframework-assertion-engine-v-3-0-0-causes-new-context-kw-of-browserlibrary-to-fail/6381>\
**Category:** Libraries\
**Created:** [23 October 2023 11:51 UTC](https://forum.robotframework.org/t/robotframework-assertion-engine-v-3-0-0-causes-new-context-kw-of-browserlibrary-to-fail/6381 "2023-10-23T11:51:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![linTer](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@linTer](https://forum.robotframework.org/u/linTer)\
**Post date:** [23 October 2023 11:51 UTC](https://forum.robotframework.org/t/robotframework-assertion-engine-v-3-0-0-causes-new-context-kw-of-browserlibrary-to-fail/6381/1 "2023-10-23T11:51:12Z")

</div>

Hello, I’ve encountered today an error in my pipeline with a robot setup with BrowserLibrary (v.16.0.0) and Python 3.11.2.  
Error in file ‘\<my\_robot\_suite\_file\>’ on line 2: Initializing library ‘Browser’ with arguments [enable\_playwright\_debug=True] failed: TypeError: Formatter() takes no arguments  
Traceback (most recent call last):  
File “/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/Browser/browser.py”, line 817, in **init**  
Formatter(self),

My python package versions:

> Blockquote  
> robotframework-6.1.1  
> robotframework-assertion-engine-3.0.0  
> robotframework-browser-16.0.0  
> robotframework-pabot-2.1.0  
> robotframework-pythonlibcore-4.2.0  
> robotframework-requests-0.9.5  
> robotframework-seleniumlibrary-6.0.0  
> robotframework-seleniumtestability-2.1.0  
> robotframework-stacktrace-0.4.1  
> rpaframework-27.0.1  
> rpaframework-core-11.2.0  
> rpaframework-pdf-7.2.0

I digged out the robotframework-assertion-engine package where the Formatter module is from, and found out that with robotframework-assertion-engine v2.0.0 this error did not occur. I wonder if my package configuration with robotframework-browser v16.0.0 and python 3.11 should be supported at all?

---

<div class="post-metadata">

**Author:** ![Silken](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Silken](https://forum.robotframework.org/u/Silken)\
**Post date:** [23 October 2023 16:05 UTC](https://forum.robotframework.org/t/robotframework-assertion-engine-v-3-0-0-causes-new-context-kw-of-browserlibrary-to-fail/6381/2 "2023-10-23T16:05:23Z")

</div>

[Here is the discussion about this.](https://github.com/MarketSquare/robotframework-browser/issues/3181) My understanding is that this won’t be fixed due to only the latest version of Browser being supported. So your options are to upgrade Browser or pin version 2.0 of assertion engine.

---

<div class="post-metadata">

**Author:** ![Robot-J](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@Robot-J](https://forum.robotframework.org/u/Robot-J)\
**Post date:** [24 October 2023 06:55 UTC](https://forum.robotframework.org/t/robotframework-assertion-engine-v-3-0-0-causes-new-context-kw-of-browserlibrary-to-fail/6381/3 "2023-10-24T06:55:25Z")

</div>

Thanks for the description for OP, helped a lot!  
We had to set: pip install robotframework-assertion-engine==2.0.0  
in to our systems to fix this
