no keywords found in library using Python 2, but no problem on Python 3

398 views
Skip to first unread message

SuperGeo

unread,
Jan 23, 2018, 3:50:28 PM1/23/18
to robotframework-users
Hello everyone,

It is my second post here today, don't want to flood but I am facing another problem.

I have a python library that I am using like

Library  |    userlib

And I run my robot command as:

py -3 -m robot test.robot

And it runs without problems.

However, when trying the same command, with the same test script, using Python 2:

py -2 -m robot test.robot

I get the following warning:

[ WARN ] Imported library 'userlib' contains no keywords.

It this expected? I have Robot Framework 3.0.2 in both environments.

userlib is implemented as a __init__.py file that imports some functions from an implementation py file. As I said, it works fine in normal python scripts and with Robot Framework + python 3.

Thanks!

Pekka Klärck

unread,
Jan 23, 2018, 4:45:30 PM1/23/18
to Victor Maryama, robotframework-users
Hello,

This sounds strange. Can you provide a simple example demonstrating
the problem? If you think it's a bug, you can also submit it into the
issue tracker.

Cheers,
.peke
> --
> You received this message because you are subscribed to the Google Groups
> "robotframework-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to robotframework-u...@googlegroups.com.
> To post to this group, send email to robotframe...@googlegroups.com.
> Visit this group at https://groups.google.com/group/robotframework-users.
> For more options, visit https://groups.google.com/d/optout.



--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org

Victor Maryama

unread,
Jan 25, 2018, 1:23:54 PM1/25/18
to Pekka Klärck, robotframework-users
Hi Pekka,

I tested on another PC and problem does not happen, works fine on py2 and py3. Should be something on my side then, not robot framework.

Thanks.

Reply all
Reply to author
Forward
0 new messages