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

Fixing python2.7 and python3 compatibility issue #38

Merged
merged 2 commits into from
Jun 17, 2021

Conversation

Neato-Nick
Copy link
Contributor

Original traceback:

Traceback (most recent call last):
  File "/home/nicholas.carleson@usda-ars.orst.edu/opt/pico_galaxy/tools/protein_analysis/seq_analysis_utils.py", line 111, in fasta_iterator
    raise StopIteration
StopIteration

Original traceback:
```
Traceback (most recent call last):
  File "/home/nicholas.carleson@usda-ars.orst.edu/opt/pico_galaxy/tools/protein_analysis/seq_analysis_utils.py", line 111, in fasta_iterator
    raise StopIteration
StopIteration
```
@peterjc
Copy link
Owner

peterjc commented Jun 17, 2021

Thanks for the stacktrace, I think the fix is even simpler - remove the raise StopIteration line. Can you try that quickly?

Back to the original code, just remove the Stop
@Neato-Nick
Copy link
Contributor Author

Hah, that also works! Very simple fix after all

@peterjc peterjc merged commit c175634 into peterjc:master Jun 17, 2021
@peterjc
Copy link
Owner

peterjc commented Jun 17, 2021

OK, this needs a version bump and pushing to the toolshed now... hang on.

@peterjc
Copy link
Owner

peterjc commented Jun 17, 2021

That's on the tool shed now as v0.2.13 - Python 3 fix for raising StopIteration

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

Successfully merging this pull request may close these issues.

2 participants