You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think part of this is bug #211 about the doctest framework not using the copy of the Python files we want it to, which could explain all the path problems (input test files not being found). Do you have an existing (older) version of Biopython already installed?
My guess is if you go ahead and install Biopython 1.66, then on rerunning the tests it will be fine.
Thanks @sagitter - I was assuming this was a routine installation from source and was struggling to understand what might be going wrong.
Can you clarify if there is an old Biopython install already present or not, which could be confusing the doctests (we know there is some thing happening there which we don't quite understand, see #211)?
Assuming there is not pre-existing Biopython, then something else is happening. We don't see this failure on our TravisCI setup where a clean VM is used each time. Could you tell us a little more about the RPM packaging process - in particular how are you compiling Biopython (and in which folder) and where are you running the tests from (which folder)? My hunch is you are not running them from the folder we expect, and thus test data files are not being found.
Can you clarify if there is an old Biopython install already present or not, which could be confusing the doctests (we know there is some thing happening there which we don't quite understand, see #211)?
None previous release installed.
Could you tell us a little more about the RPM packaging process - in particular how are you compiling Biopython (and in which folder) and where are you running the tests from (which folder)? My hunch is you are not running them from the folder we expect, and thus test data files are not being found.
I'm compiling biopython in a dedicated root for build-process with python2 and python3 (i hope attached build-log can show you all that you need).
The tests are runned from Tests directory:
/usr/bin/python2 Tests/run_tests.py doctest
Early on i chose to run only off-line tests with:
/usr/bin/python2 Tests/run_tests.py --offline -v obtaining what you see in the first comment.
This is unlikely to cause you any problems with using Biopython with strict ASCII text files. These tests have some accented/special characters, and their failure suggest something unexpected with your locale settings, see also this thread with @tiagoantao which we never really resolved:
Activity
peterjc commentedon Nov 14, 2015
This was with the Biopython 1.66 release? Under Linux?
The failing doctest https://github.com/biopython/biopython/blob/master/Doc/Tutorial/chapter_seqio.tex#L888 would be using
Bio.SeqIO.index(...)on a BGZF compressed GenBank file.See also #211
sagitter commentedon Nov 14, 2015
Hi,
Biopython-1.66 on Fedora 23.
To me, even
python run_tests.py doctestfails.biopthon-doctest.txt
peterjc commentedon Nov 14, 2015
I think part of this is bug #211 about the doctest framework not using the copy of the Python files we want it to, which could explain all the path problems (input test files not being found). Do you have an existing (older) version of Biopython already installed?
My guess is if you go ahead and install Biopython 1.66, then on rerunning the tests it will be fine.
sagitter commentedon Nov 14, 2015
Unfortunately, in this case the error will propose itself again at every new Biopython compilation during the RPM packaging (that's what i'm doing).
Would be acceptable disable only the doctest?
peterjc commentedon Nov 15, 2015
Thanks @sagitter - I was assuming this was a routine installation from source and was struggling to understand what might be going wrong.
Can you clarify if there is an old Biopython install already present or not, which could be confusing the doctests (we know there is some thing happening there which we don't quite understand, see #211)?
Assuming there is not pre-existing Biopython, then something else is happening. We don't see this failure on our TravisCI setup where a clean VM is used each time. Could you tell us a little more about the RPM packaging process - in particular how are you compiling Biopython (and in which folder) and where are you running the tests from (which folder)? My hunch is you are not running them from the folder we expect, and thus test data files are not being found.
sagitter commentedon Nov 15, 2015
None previous release installed.
I'm compiling biopython in a dedicated root for build-process with python2 and python3 (i hope attached build-log can show you all that you need).
The tests are runned from Tests directory:
/usr/bin/python2 Tests/run_tests.py doctestEarly on i chose to run only off-line tests with:
/usr/bin/python2 Tests/run_tests.py --offline -vobtaining what you see in the first comment.biopython_buildlog.txt
Thank you.
peterjc commentedon Nov 15, 2015
I think I understand now. By doing this, you appear to be running the tests from the Biopython source root folder:
We expect
run_tests.pyto be run from theTests/folder, e.g.:Assuming this explains things, we should make
run_tests.pydetect it is in the wrong working directory, and abort with an explicit error.sagitter commentedon Nov 15, 2015
You're right. Now it works.
But i see other failures with Python3 biopython_buildlog#2.txt with
peterjc commentedon Nov 15, 2015
Errors from Python 3 included,
which parsed and drew a Newick tree, and then loads of encoding related ones from
NCBIXML.py,PhyloXMLIO.py, and alsoNexus.py:My guess is there is something different about your Python's unicode or the Linux encoding setting, which we're not coping with.
sagitter commentedon Nov 16, 2015
Is it a tests problem or does it influence the Biopython functionalities too ?
peterjc commentedon Nov 16, 2015
This is unlikely to cause you any problems with using Biopython with strict ASCII text files. These tests have some accented/special characters, and their failure suggest something unexpected with your locale settings, see also this thread with @tiagoantao which we never really resolved:
http://lists.open-bio.org/pipermail/biopython-dev/2014-May/020541.html
My Mac and Linux machines give me this (testing with Python 3.3, 3.4 and 3.5):
My Windows XP machine using Python 3.3 and 3.4 says:
What does your Linux machine report?
sagitter commentedon Nov 16, 2015
Use Tests/ as working directory in run_tests.py
run_tests.py Tests/ directory path changes
[-]1 Tutorial doctests failed (biopython-1.66)[/-][+]UnicodeDecodeError from Tutorial doctests[/+]