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
{{ message }}
Repository navigation
Installation from source instructions in README #4140
One significant downside of your suggestion is it runs the tests after installing. At which point if something hasn't worked it is too late. You have to uninstall (and if this was an upgrade, try to reinstall the older working version). However I'm unclear if build/test/install is going to be possible long term if we want to migrate away from setup.py to the more modern declararitve setup.
I would regard the warning about being imported from the source tree as a false positive in this specific use case, so perhaps we can silence that in run_tests.py? The warning was added in #2007 but has caused other false positives, e.g. #3653 (fixed).
What are the other import errors to you see?
Running locally after first completely uninstalling Biopython I am seeing multiple ModuleNotFoundError: No module named 'Bio.PDB.ccealign' messages, which puzzles me as sister C module Bio.PDB.kdtrees does not error and both are compiled and present in my build folder:
$ ls build/lib.linux-x86_64-3.7/Bio/PDB/*.so
build/lib.linux-x86_64-3.7/Bio/PDB/ccealign.cpython-37m-x86_64-linux-gnu.so
build/lib.linux-x86_64-3.7/Bio/PDB/kdtrees.cpython-37m-x86_64-linux-gnu.so
(And some knock-on PDB failures, plus some other non-import errors which puzzle me but seem to be a separate issue)
The problem is that there are a bunch of other import errors and a failure
of most of the tests if they are run in the source tree. So it is not just
the warning that is problematic.
On Fri, Oct 21, 2022, 07:24 Peter Cock ***@***.***> wrote:
One significant downside of your suggestion is it runs the tests *after*
installing. At which point if something hasn't worked it is too late. You
have to uninstall (and if this was an upgrade, try to reinstall the older
working version). However I'm unclear if build/test/install is going to be
possible long term if we want to migrate away from setup.py to the more
modern declararitve setup.
I would regard the warning about being imported from the source tree as a
false positive in this specific use case, so perhaps we can silence that in
run_tests.py? The warning was added in #2007
<#2007> but has caused other
false positives, e.g. #3653
<#3653> (fixed).
What are the other import errors to you see?
Running locally after first completely uninstalling Biopython I am seeing
multiple ModuleNotFoundError: No module named 'Bio.PDB.ccealign'
messages, which puzzles me as sister C module Bio.PDB.kdtrees does not
error and both are compiled and present in my build folder:
$ ls build/lib.linux-x86_64-3.7/Bio/PDB/*.so
build/lib.linux-x86_64-3.7/Bio/PDB/ccealign.cpython-37m-x86_64-linux-gnu.so
build/lib.linux-x86_64-3.7/Bio/PDB/kdtrees.cpython-37m-x86_64-linux-gnu.so
(And some knock-on PDB failures, plus some other non-import errors which
puzzle me but seem to be a separate issue)
—
Reply to this email directly, view it on GitHub
<#4140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAP34EFHXHSISZ4EKR2IXTWEKDQNANCNFSM6AAAAAARKWQK6I>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
In light of #3912, build/test/install is not going to work (we'd now expect import errors from the C code). The installation from source docs need updating.
i.e. That source tree warning is not a false positive (but it would have been prior to #3912).
Activity
peterjc commentedon Oct 21, 2022
One significant downside of your suggestion is it runs the tests after installing. At which point if something hasn't worked it is too late. You have to uninstall (and if this was an upgrade, try to reinstall the older working version). However I'm unclear if build/test/install is going to be possible long term if we want to migrate away from
setup.pyto the more modern declararitve setup.I would regard the warning about being imported from the source tree as a false positive in this specific use case, so perhaps we can silence that in
run_tests.py? The warning was added in #2007 but has caused other false positives, e.g. #3653 (fixed).What are the other import errors to you see?
Running locally after first completely uninstalling Biopython I am seeing multiple
ModuleNotFoundError: No module named 'Bio.PDB.ccealign'messages, which puzzles me as sister C moduleBio.PDB.kdtreesdoes not error and both are compiled and present in my build folder:(And some knock-on PDB failures, plus some other non-import errors which puzzle me but seem to be a separate issue)
peterjc commentedon Oct 21, 2022
Ah, #3912 broke the classic build/test/install
There is an open PR #3937 to update the docs.
idoerg commentedon Oct 21, 2022
peterjc commentedon Oct 21, 2022
In light of #3912, build/test/install is not going to work (we'd now expect import errors from the C code). The installation from source docs need updating.
i.e. That source tree warning is not a false positive (but it would have been prior to #3912).