Closed mbiokyle29 closed 1 year ago
Having this exact issue. I was worried I broke something in my Conda environment. I've confirmed this is also a problem with Biopython version 1.80 as well as 1.79. I didn't test older versions.
A cursory glance makes me think Biopython version 1.79 is the one with the breaking change as they mention changing how sequence objects store their data.
From their changelogs for 1.79,
The Seq and MutableSeq classes in Bio.Seq now store their sequence contents as bytes and bytearray objects, respectively. - Biopython News
@RealYHD - interesting that you were experiencing the issue with 1.79
, we hard pinned BioPython==1.79
in our requirements file and it resolved the issue for us.
@mbiokyle29 Ah my bad, I was using Jupyter Labs and it seems the kernel cached the 1.80 version of biopython. As you said, 1.79 works, in that case, disregard what I said previously.
Thank you all for bringing attention to this, I'll work on it. We have tested the current release against 1.79, and that 1.80 was released on the same day this error surfaced suggests that the issue is with 1.80.
The changelog does not mention this although it may be related to the dict replacement.
In the meantime I agree pinning to 1.79 solves this, or using a separate image / environment. Thanks for understanding.
@veghp - thanks for the response and for all your work on this great package. It seems like quite a change for them to include in a minor release, so some fall out is to be expected.
Just noting that I also have this issue with the new biopython
1.80.
I have the same error, it broke all my code when biopython got updated :(
Any updates on that? I have a pip package that depends on dna-features-viewer and it is currently broken (cannot have github dependencies in setup.py)
@antonkulaga Have you tried pinning biopython==1.79
in your dependencies? It's not ideal but should get you going until a fix is released.
We are getting the following error when using DnaFeaturesViewer with BioPython v1.8.0 (tag):
It appears the
aa1
andaa3
objects were updated to a different structure.