libdoc executes library

31 views
Skip to first unread message

Markus Boos

unread,
Jun 16, 2015, 10:17:34 AM6/16/15
to robotframe...@googlegroups.com
Hi RF users

I tried to use libdoc to generate the documentation for our library which is based on pyserial.

When I try to execute the libdoc I get:
****
python -m robot.libdoc lib_gpib.PrologixInstrument::14::15 lib_gpib.html
Initializing test library 'lib_gpib.PrologixInstrument' with arguments [ 14 | 15 ] failed: SerialException: could not open port 15: [Errno 2] No such file or directory: '15'
Traceback (most recent call last):
File "lib_gpib.py", line 38, in __init__
PrologixInstrument.serFd=serial.Serial(comPort, baudrate=baud_rate, timeout=timeout)
File "/usr/lib/python2.7/dist-packages/serial/serialutil.py", line 261, in __init__
self.open()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 278, in open
raise SerialException("could not open port %s: %s" % (self._port, msg))

Try --help for usage information.
***

Why does libdoc tries to use the library, instead of just document it? Can I somehow prevent libdoc from executing my library and provide the nice html page?

kind regards
Markus

Reply all
Reply to author
Forward
0 new messages