[Eric] doctest.py problem on eric5

Algis Kabaila akabaila at pcug.org.au
Sat Aug 13 05:52:29 BST 2011


Hi,

I've just installed a stable eric5-5.1.4 (rev 70d7137b615c). When testing 
upgrade of a pypi package, an old problem arouse: on eric testing a program 
with doctest.py causes problems that do not occur when staring the same test 
program from the CLI. The test program runs without complaints from CLI as 
shown below.

ak at supremo:/dat/work/py3/vectors32$ python3  vectors32-tst/testVectors32.py 
vectors32 module verification:
If no errors reported, all is well.
ak at supremo:/dat/work/py3/vectors32$ 

The module tested is vectors32 and is installed on my system.  When running 
the same program on eric5, an exception is raised by the  debugger:

The debugger program raised an exception
Attribute Error
"'Async File' object has no attribute 'encoding'"
File /usr/lib/python3.2/doctest.py
Line 1361

I attach a tar ball of the module, which can be used to install the module in 
the standard location

ak at supremo:/dat/work/py3/vectors32$ ls /usr/local/lib/python3.2/dist-packages/
vectors32  vectors32-0.0.5.egg-info
ak at supremo:/dat/work/py3/vectors32$ 

The error is raised consistently. While this is not a big deal in the 
otherwise excellent program, I thought it would be good to eliminate it. 

Of couse, there is  a good chance that  my configuration is faulty.  If that is 
the case, can you help me to configure eric5 better?

Regards,

OldAl.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vectors32-0.0.5.tar.gz
Type: application/x-compressed-tar
Size: 15524 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/eric/attachments/20110813/b0dfc5c4/attachment.bin>


More information about the Eric mailing list