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

"SyntaxError: invalid syntax" while running "sparse extract" #15

Open
housw opened this issue Jan 31, 2019 · 0 comments
Open

"SyntaxError: invalid syntax" while running "sparse extract" #15

housw opened this issue Jan 31, 2019 · 0 comments

Comments

@housw
Copy link

housw commented Jan 31, 2019

Hi Zhemin,

I installed SPARSE in a docker image (Ubuntu 16.04 ) with Python 2.7:

pip install setuptools && \
    pip install wheel && \
    pip install  meta-sparse

It works for the other subcommands except extract, here is the error:

sparse extract --workspace sparse_workspace --ref_id 337
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/SPARSE/SPARSE.py", line 133, in SPARSE
    exec '_{0}(sys.argv[2:])'.format(sys.argv[1])
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/SPARSE/SPARSE.py", line 92, in _extract
    from modules.C2_get_specific_reads import get_SSR
  File "/usr/local/lib/python2.7/dist-packages/SPARSE/modules/C2_get_specific_reads.py", line 22
    r = sum([ float(p.split(':')[1]) for p in part[4: ])
                                                       ^
SyntaxError: invalid syntax

Hope it helps.

Thanks,
Shengwei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant