Giter Club home page Giter Club logo

Comments (16)

afvrbanac avatar afvrbanac commented on August 15, 2024 1

So I couldn't get virtualenv working on barnacle, but I did a fresh miniconda install on barnacle and got your frozen conda env to successfully install. It just gives me tons of deprecated warnings related to the tensorflow dtypes and numpy every time I run a command, buuut it works! :)

from mmvec.

mortonjt avatar mortonjt commented on August 15, 2024

from mmvec.

afvrbanac avatar afvrbanac commented on August 15, 2024

So just "pip install tensorflow==1.14.0"?

Unfortunately, that doesn't seem to fix either the standalone install or the one within qiime2

Edit: I do still have rhapsody and minstrel installed successfully so can use those in the meantime

from mmvec.

mortonjt avatar mortonjt commented on August 15, 2024

You're installing within a conda environment, so don't use pip.

On a good note, I recently froze a conda environment for a workshop.

You can install this via

wget https://raw.githubusercontent.com/mortonjt/q2stats-workshops/master/environment.yml
conda env create -n qiime2-2019.7-plus --file environment.yml

This environment has the fixed tensorflow version for both songbird / tensorflow (and deicode and qurro). Let me know if this works for you and I can post this into the readme as an alternative install option.

from mmvec.

mortonjt avatar mortonjt commented on August 15, 2024

Looking at the message more carefully, I'm seeing a GLIBC error popping up your barnacle install.
I remember seeing those in the past with conda installs - I bet a conda install will not work on that machine.

For this sort of thing, I'd recommend using virtual environments instead, namely

virtualenv mmvec_env
source activate mmvec_env/bin/activate
pip install tensorflow==1.14.0
pip install mmvec

I'd recommend using the latest mmvec version, since the outputs are a bit more readable.

from mmvec.

mortonjt avatar mortonjt commented on August 15, 2024

Hi @afvrbanac , great! I'm closing this issue - feel free to follow up if there are further installation issues.

from mmvec.

dacuotecuo111 avatar dacuotecuo111 commented on August 15, 2024

Hi, mortonjt.

I am a postdoc at the University of Arkansas. I want to do some microbiome-metabolites analysis with mmvec and I found some useful information from the github website. I installed mmvec under qiime2-2020.02. When I try running the mmvec with provided tables, it says "No module named 'tensorflow'". However, when I try to install this module (with different versions), none of them works.

I am not a professional bioinformatic person, so I am not familiar with any "environments".

Could you please provide me with any advice?

I attached the error information below. Looking forward your response.

(qiime2-2020.2) xxxxxx@x86_64-apple-darwin13 omicsstudio % mmvec paired-omics --microbe-file otus_nt.biom --metabolite-file lcms_nt.biom --summary-dir summary

Traceback (most recent call last):

File "/Users/xiaofanwang/opt/miniconda3/envs/qiime2-2020.2/bin/mmvec", line 17, in

import tensorflow as tf

ModuleNotFoundError: No module named 'tensorflow'

(qiime2-2020.2) xxxxxxx@x86_64-apple-darwin13 omicsstudio %


from mmvec.

mortonjt avatar mortonjt commented on August 15, 2024

from mmvec.

dacuotecuo111 avatar dacuotecuo111 commented on August 15, 2024

from mmvec.

mortonjt avatar mortonjt commented on August 15, 2024

hmm, I'm getting confused on what is going on. How exactly did you install mmvec?

There are 2 options that I see moving forward

  1. Uninstall mmvec (either pip uninstall mmvec or conda uninstall mmvec) and reinstall. You've got some missing packages and you may need to just reinstall to get all of the packages you need
  2. Build a new qiime2 environment from scratch. There could be something weird going on with mmvec and qiime2. I do have a qiime2 mmvec conda recipe that you can build from scratch here. That can be installed via conda create -n q2-mmvec -f environment.yml using the environment file here. But do note that this is for a linux build, which won't work on your mac.

from mmvec.

dacuotecuo111 avatar dacuotecuo111 commented on August 15, 2024

from mmvec.

mortonjt avatar mortonjt commented on August 15, 2024

from mmvec.

dacuotecuo111 avatar dacuotecuo111 commented on August 15, 2024

from mmvec.

mortonjt avatar mortonjt commented on August 15, 2024

um, no don't install virtualenv

Just conda uninstall mmvec, and pip install mmvec within your conda environment.
I've just created a fresh qiime2-2020.6 environment on my macbook and confirmed that pip installing mmvec works.
The conda recipe does appear broken though do to tensorflow though ...

from mmvec.

dacuotecuo111 avatar dacuotecuo111 commented on August 15, 2024

from mmvec.

mortonjt avatar mortonjt commented on August 15, 2024

from mmvec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.