DiscoVista
DiscoVista copied to clipboard
ImportError: No module named dendropy
Hi, I'm struggling to run discoVista, which I installed from the source code (I tried with docker but failed to understand the tutorial for this as I never used docker before). When I execute the command ./discoVista.py (located in DiscoVista/src/utils/) I get the following error: "ImportError: No module named dendropy." I did install dendropy. However, it installed it with pyhton3 instead of python2.7. Maybe that's the issue? if so, should I try to install dendropy again with python2.7 and try again?
Thanks
Hi,
Can you please send me the exact commands that you used for installation as well as how you run DiscoVista.
Best, Erfan
On Jun 27, 2020, at 4:10 PM, Julián Aguirre-Santoro [email protected] wrote:
Hi, I'm struggling to run discoVista, which I installed from the source code (I tried with docker but failed to understand the tutorial for this as I never used docker before). When I execute the command ./discoVista.py (located in DiscoVista/src/utils/) I get the following error: "ImportError: No module named dendropy." I did install dendropy. However, it installed it with pyhton3 instead of python2.7. Maybe that's the issue? if so, should I try to install dendropy again with python2.7 and try again?
Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/esayyari/DiscoVista/issues/8__;!!Mih3wA!TU3O7gPV1Rk6Nd9to-Fack1VyrY7CDVgi7hxgKyMAJK_mg6rVwpUTeeHR_4WyQSI$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABRPHINI6F3ZIOB37QYZDO3RYZ36ZANCNFSM4OKHS2AA__;!!Mih3wA!TU3O7gPV1Rk6Nd9to-Fack1VyrY7CDVgi7hxgKyMAJK_mg6rVwpUTeeHR7Dkkdu7$.
Hi Erfan, thank you for your quick reply! Here's what I did:
- Created the environmental variable WS_HOME:
export WS_HOME=/users/juliansoda/repository/
- Installed Dendropy:
python3 -m pip install --upgrade git+https://github.com/jeetsukumaran/DendroPy.git
# Output message: "Successfully installed DendroPy-4.4.0"
- Executed DiscoVista following the instructions in your GitHub page:
Try 1:
cd $WS_HOME/DiscoVista/
./discoVista.py
# Output message: "-bash: ./discoVista.py: No such file or directory"
Try 2:
cd $WS_HOME/DiscoVista/src/utils/
./discoVista.py
# Output message: "Traceback (most recent call last): File "./discoVista.py", line 8, in <module> import find_clades File "/Users/juliansoda/repository/DiscoVista/src/utils/find_clades.py", line 7, in <module> import dendropy ImportError: No module named dendropy"
I hope this is useful. Thank you for your help.
Julián
Erfan, I forgot to say that I also tried the following:
python3 ./discoVista.py
# Output message: "Traceback (most recent call last): File "./discoVista.py", line 8, in <module> import find_clades File "/Users/juliansoda/repository/DiscoVista/src/utils/find_clades.py", line 124 print "In %s, %s is not defined before" %(r[0],e.args[0]) ^ SyntaxError: invalid syntax"
Hi Julian,
Thanks for your follow-up! DiscoVista needs python2.7 (python2 in general). If you prefer condo please try this:
Conda create -n py2.7 python=2.7 Conda activate py2.7 Pip install dendropy
And try ./discovista.py and let me know if you still have the same issue or not.
Thanks for using DiscoVista, Erfan
On Jul 11, 2020, at 1:31 PM, Julián Aguirre-Santoro [email protected] wrote:
Hi Erfan, thank you for your quick reply! Here's what I did:
Created the environmental variable WS_HOME: export WS_HOME=/users/juliansoda/repository/
Installed Dendropy: python3 -m pip install --upgrade git+https://github.com/jeetsukumaran/DendroPy.git
Output message: "Successfully installed DendroPy-4.4.0"
Executed DiscoVista following the instructions in your GitHub page: Try 1:
cd $WS_HOME/DiscoVista/ ./discoVista.py
Output message: "-bash: ./discoVista.py: No such file or directory"
Try 2:
cd $WS_HOME/DiscoVista/src/utils/ ./discoVista.py
Output message: "Traceback (most recent call last): File "./discoVista.py", line 8, in
import find_clades File "/Users/juliansoda/repository/DiscoVista/src/utils/find_clades.py", line 7, in import dendropy ImportError: No module named dendropy" I hope this is useful. Thank you for your help.
Julián
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/esayyari/DiscoVista/issues/8*issuecomment-657125150__;Iw!!Mih3wA!RllFajNciyRCYgG5c5jZLb-ny2PU48A1D8Y-hur846ddfpc8XL-4NDCxgDiXycom$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABRPHII6P3EGSDMDVN3EVALR3DD3RANCNFSM4OKHS2AA__;!!Mih3wA!RllFajNciyRCYgG5c5jZLb-ny2PU48A1D8Y-hur846ddfpc8XL-4NDCxgLY9EMBy$.