Open harirngd opened 1 year ago
Hi, I can add only a few pointers to the comment I made in #5 :
I think I have seen this error before, and that's why we have a few additional comments in the Install section of readme: https://github.com/Edinburgh-Genome-Foundry/GoldenHinges#installation
I don't recall the details, but it won't include or compile the binaries of Mistral, or run it, if you don't have the correct OS, dependencies, or Python version. Another issue is that it was developed for swig3.0, but the default swig command may call a later version which won't work.
Another option is to sidestep this problem and build a standalone environment, using Docker. If that's something you're familiar with, then here is a repo with the necessary Dockerfile and instructions https://github.com/Edinburgh-Genome-Foundry/EGF_Docker_Jupyter
In that, I build Numberjack from source (line 23 onwards)
Alas Numberjack is getting old, it's reassuring to know it can still be built from sources (great move 👍) but in hindsight it probably wasn't the best choice of constraint solver when compared to e.g. Google OR tools (see the end of this page).
Hi, I can add only a few pointers to the comment I made in #5 :
I think I have seen this error before, and that's why we have a few additional comments in the Install section of readme: https://github.com/Edinburgh-Genome-Foundry/GoldenHinges#installation
I don't recall the details, but it won't include or compile the binaries of Mistral, or run it, if you don't have the correct OS, dependencies, or Python version. Another issue is that it was developed for swig3.0, but the default swig command may call a later version which won't work.
Another option is to sidestep this problem and build a standalone environment, using Docker. If that's something you're familiar with, then here is a repo with the necessary Dockerfile and instructions https://github.com/Edinburgh-Genome-Foundry/EGF_Docker_Jupyter
In that, I build Numberjack from source (line 23 onwards)
Thanks for this docker based workaround. It worked great !! and I could very easily use the docker image and build a working docker instance on Apple Silicon. Still a relative docker newbie --so capturing the process I used below.
git clone git@github.com:Edinburgh-Genome-Foundry/EGF_Docker_Jupyter.git
cd EGF_Docker_Jupyter
docker build -t hj-image-egf-foundry-jup .
docker run -it --name egf_hj-container -p 8888:8888 hj-image-egf-foundry-jup
I could then open my Browser and navigate to "http://127.0.0.1:8888" and use the Jupyter environment there. Alternatively to use this docker instance command line I could also enter the container and run python there.
# First to copy the test file into the docker container
docker cp "pcmv-abe7-10-chiselannottest (2).gb" egf_hj-container:/usr/src/app/
docker exec -it egf_hj-container /bin/bash
python3 assemble_plasmid.py
Glad to hear it worked!
Good point about running scripts directly with the docker container. I should add that as an example. Running python straight on the script should also work if the directory is mounted: https://stackoverflow.com/a/62193228
Hi this may be a "duplicate" of the previous issue #5 -but I get the following error when I try a simple GoldenHinges example on OSX. I used the "latest" Numberjack from Github.
Here is my code that is adapted from the Goldenhinges example
The Numberjack installation from this github repo proceeded without any error.