# No keyword with name 'RE.invoke\_reg1' found

**URL:** <https://forum.robotframework.org/t/no-keyword-with-name-re-invoke-reg1-found/6108>\
**Category:** Libraries\
**Created:** [22 August 2023 05:36 UTC](https://forum.robotframework.org/t/no-keyword-with-name-re-invoke-reg1-found/6108 "2023-08-22T05:36:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanchana](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/sanchana/32/2924_2.png) [@Sanchana](https://forum.robotframework.org/u/Sanchana)\
**Post date:** [22 August 2023 05:36 UTC](https://forum.robotframework.org/t/no-keyword-with-name-re-invoke-reg1-found/6108/1 "2023-08-22T05:36:59Z")

</div>

I’m calling python file and one of its method from robot file

\*\*\* Settings \*\*\*  
Library ${CURDIR}/…/…/…/Resources/Keywords/CommonClasses/Registration.py WITH NAME RE

\*\*\* Test Cases \*\*\*  
user\_reg\_user  
RE.invoke\_reg1 ${BASE\_URL}

Python file named as Registration.py  
class Registration():  
def invoke\_reg1(self, host):  
print (“hii”)

why I’m getting this error ? all the naming conventions are correct

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [22 August 2023 08:43 UTC](https://forum.robotframework.org/t/no-keyword-with-name-re-invoke-reg1-found/6108/2 "2023-08-22T08:43:21Z")

</div>

Hi Sanchana,

Which version of robot framework are you using?

Can you re-post this using a code block, (three back ticks (```) before and after the code) so that we can see the white space you’ve used?

I can’t see any issue with what you’ve posted unless there is missing white space?

I’ll note the Robot Framework User Guide for [Setting custom name to library](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#toc-entry-310) does mention that the `WITH NAME` was deprecated in version 6.0, so if you are using version 6.1 perhaps that might be the issue?

Dave.
