Closed dave-doty closed 1 month ago
I suspect that the issue is due to the different way Linux and Windows handle line endings. Does the code work, regardless of the outcome of make test_run
? Can you try running one of the examples?
Unfortunately I don't have a working WSL to test the code on, but maybe @zoombya does?
Does the code work, regardless of the outcome of make test_run?
What code? I was trying to do make test_run
to see if my installation worked. I'm not sure what code you are referring to.
The oxDNA binary.
It runs although I don't know what input to give it:
$ oxDNA
ERROR: Usage is 'oxDNA input_file'
Then the code compiles just fine. Thanks for opening the issue though, I'll try to find a solution for the make test
bug on Windows (if I manage to get my hands on a Windows box).
I tried installing WSL from scratch and I cannot reproduce the issue. Is it possible that you cloned the repo outside of WSL? If you did so, can you try cloning it directly on WSL?
I tried installing WSL from scratch and I cannot reproduce the issue. Is it possible that you cloned the repo outside of WSL? If you did so, can you try cloning it directly on WSL?
I tried twice:
I just now tried a third option (but on a different computer than I was using last week):
Option 3 worked (in the sense that make test_run
successfully ran the tests). However, I have not verified that options 1 and 2 failed on my current machine, only that they failed last week on my laptop while at the oxDNA workshop. Not sure if there is a subtle configuration difference between the machines. But since it appears to work if everything is done inside the WSL "Linux-only" filesystem, perhaps that should be part of the official installation instructions.
The problem is due to the different way line endings are handled in windows and linux. If you clone from windows, you'll end up with windows "line endings", and that will make linux's python complain. It makes sense to add it to the docs though, thanks for testing it!
Describe the bug When I follow the instructions to install the Python bindings for oxDNA (https://lorenzo-rovigatti.github.io/oxDNA/install.html), it seems to install correctly, but when I follow the next suggestion to run
make test_run
, I get this error:To Reproduce Follow the instructions here: https://lorenzo-rovigatti.github.io/oxDNA/install.html
mkdir build
cd build
cmake -DPython=ON -DPYTHON_EXECUTABLE=~/anaconda3/bin/python ..
(I tried this when I noticed the error message references/usr/bin/
, which has some other python executable that may have come with Ubuntu; I didn't specify-DPYTHON_INCLUDE_DIR
because I have no idea what a "Python include directory" is.)make -j4
make install
make test_run
Expected behavior Tests pass.
Desktop (please complete the following information):
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
-DPYTHON_EXECUTABLE=~/anaconda3/bin/python
tocmake
.