Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solving environment failed #8

Open
lurialeslie opened this issue Mar 19, 2022 · 7 comments
Open

Solving environment failed #8

lurialeslie opened this issue Mar 19, 2022 · 7 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@lurialeslie
Copy link

Hi Ivan,
I am trying to setup rMAP on my macbook M1 Big Sur 11.3.
I did the initial step but when I tried to install rMAP with the command "conda env create -n rMAP-1.0 --file rMAP-1.0-macOs-installer.yml"
I receive this :

Collecting package metadata (repodata.json): done
Solving environment: failed

ResolvePackageNotFound:

  • ncbi-amrfinderplus=3.8.4
  • python=3.7.8
  • freebayes=1.3.2
  • fasttree=2.1.10
  • mafft=7.471
  • prodigal=2.6.3
  • parallel=20200722
  • iqtree=2.0.3
  • quast=5.0.2
  • samtools=1.9
  • sra-tools
  • megahit=1.2.9
  • snippy=4.3.6
  • assembly-stats=1.0.1
  • r-base=4.0.2
  • roary=3.13.0
  • bwa=0.7.17
  • lxml=4.5.2
  • unicycler
  • vt
    Then the subsequent steps cannot work like "conda activate rMAP-1.0" give
    Could not find conda environment: rMAP-1.0

Could you advise what I am doing wrong and how to solve this issue?

@GunzIvan28
Copy link
Owner

GunzIvan28 commented Mar 21, 2022

Hi @lurialeslie,
Apologies for the delayed response. The development team was trying to test and troubleshoot the issue you rasied.

To start off, the error below:

Solving environment: failed

ResolvePackageNotFound: 

could be as a result of intermittent internet disruptions from our experience. The conda installer may fail to resolve the packages when internet gets unstable. We have tested the installer on 2 separate MacBooks in both it worked just fine.

WORKAROUND:
We suggest you find a place with very stable and reliable internet and then retry the steps at the installation sequentially. It should solve your issue.

I am also available for a zoom call at your earliest convenience to walk you through any technicalities if need be, feel free to reach out.

Let me know how it goes.

Ivan

@lurialeslie
Copy link
Author

Hi @GunzIvan28

Many thanks for your reply. Can I ask indeed further assistance as I am still getting the same issue.

@GunzIvan28
Copy link
Owner

@lurialeslie ,

Email me a zoom link via [email protected]. I am available right now for a call.

@GunzIvan28 GunzIvan28 added the help wanted Extra attention is needed label Mar 21, 2022
@Sparrow0hawk
Copy link
Collaborator

So the issue here is that by default the architecture of the new Mac M1s is using arm64 which i'd wager a guess these conda libraries haven't been built against (rather have been built for the old intel macs).

You can install rosetta 2, which is Apple's binary translator tool and use the below commands to get conda to install the libraries using the old intel builds.

To install rosetta 2:

$ softwareupdate --install-rosetta

To install rMAP and force conda to install using intel builds, based in this issue:

$ CONDA_SUBDIR=osx-64 conda env create -n rMAP-1.0 -f rMAP-1.0-MacOs-installer.yml 

However, when I try ./rMAP -t 8 -c I get some failures here too and which would probably require changing the shell block within ./rMAP.

Another way around these difficulties might be containerising this tool via Docker. I can look at writing a Dockerfile for this and suggesting in a PR?

@GunzIvan28
Copy link
Owner

GunzIvan28 commented Apr 2, 2022

@Sparrow0hawk,

Thanks for the input. You are right about the rMAP compilation; it has not been tested with the M1 and M2 chips because we have no access to either at the moment. It would be exciting to have this contained within a docker environment. We are currently working on implementing it within nextflow and consequently make it compatible with docker and singularity. If you are familiar this workflow, it would be great to add you as a collaborator.

Let me know if you have some time for it.

Cheers,
Ivan

@Sparrow0hawk
Copy link
Collaborator

I'd be happy to have a look at containerising this tool. I've used both Docker and Singularity in the past so can definitely aim to get rMAP containers for both.

@Sparrow0hawk,

Thanks for the input. You are right about the rMAP compilation; it has not been tested with the M1 and M2 chips because we have no access to either at the moment. It would be exciting to have this contained within a docker environment. We are currently working on implementing it within nextflow and consequently make it compatible with docker and singularity. If you are familiar this workflow, it would be great to add you as a collaborator.

Let me know if you have some time for it.

Cheers,
Ivan

@GunzIvan28
Copy link
Owner

@Sparrow0hawk,
I just invited you as a collaborator for the project. You can create a branch and do the containerization using it after which we can run through the code sometime and then merge with the main branch.

Let me know how it goes or when you need any anything from our end.

Ivan

@Sparrow0hawk Sparrow0hawk self-assigned this Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants