Python (version-specific) syntax error?

392 views
Skip to first unread message

Mike Weigand

unread,
Feb 28, 2018, 3:53:10 PM2/28/18
to Anvi'o
I'm a new user attempting to install v4 on Ubuntu 14.04. When running "anvi-self-test --suite mini" I encounter the following error, which also reproduces with "anvi-run-hmms --help":


Traceback (most recent call last):
  File "/usr/local/bin/anvi-run-hmms", line 17, in <module>
    from anvio.tables.hmmhits import TablesForHMMHits
  File "/usr/local/lib/python3.4/dist-packages/anvio/tables/hmmhits.py", line 15, in <module>
    from anvio.drivers.hmmer import HMMer
  File "/usr/local/lib/python3.4/dist-packages/anvio/drivers/hmmer.py", line 110
    '-o', self.hmm_scan_output, *noise_cutoff_terms.split(),
                                                   ^
SyntaxError: can use starred expression only as assignment target



Perhaps this is due to my using python3.4? I'm admittedly not a frequent python user. 

Thanks
M

A. Murat Eren

unread,
Feb 28, 2018, 3:58:30 PM2/28/18
to Anvi'o
Hi Mike,

I'm afraid that that syntax is not known to Python 3.4 error, and was introduced in Python 3.5 :(

Is using Python >= 3.5 an option for you?


Best,

--

A. Murat Eren (meren)
http://merenlab.org :: twitter :: gpg

--
Anvi'o Paper: https://peerj.com/articles/1319/
Project Page: http://merenlab.org/projects/anvio/
Code Repository: https://github.com/meren/anvio
---
You received this message because you are subscribed to the Google Groups "Anvi'o" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anvio+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anvio/fe4369a9-9620-4c33-87ba-8ce6e5d9ba4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mike Weigand

unread,
Mar 1, 2018, 4:02:21 PM3/1/18
to Anvi'o
Yeeeeeeeep. Took some trickeration, and a lot of swearing (at Ubuntu), but I got this running. I might suggest revision to the install instructions, which suggest any flavor of 'Python 3' will work.
Thanks.
M

ijazz jazz

unread,
Jun 13, 2018, 5:27:13 AM6/13/18
to Anvi'o
There are (at least) two distinguishable kinds of errors: syntax errors and ... ZeroDivisionError: division by zero >>> 4 + spam*3 Traceback (most recent .... that to create specific exception classes for different error conditions:.

Reply all
Reply to author
Forward
0 new messages