Skip to content

Py3 compatibility problem of Bio.motifs.Motif.weblogo #475

Closed

Description

@shenwei356

Biopython version:

python3 -c 'import Bio; print(Bio.__version__)'
1.65

Error when calling m.weblogo("motif.png"):

TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str.

Relative code: https://github.com/biopython/biopython/blob/master/Bio/Motif/_Motif.py#L663

Thank you guys.

Activity

  1. peterjc commented on Feb 17, 2015

    @peterjc
    Member

    Thanks for the feedback @shenwei356.

    Could you report your useful suggestion about motifs.create as a separate issue please?

    The web-logo error is typical of the kind of problems we've had with moving to Python 3. This is likely another bytes string vs unicode issue we need to fix. Thank you for reporting this.

  2. changed the title [-]Py3 compatibility problem of Bio.motifs.Motif.weblogo and Advice on motifs.create[/-] [+]Py3 compatibility problem of Bio.motifs.Motif.weblogo[/+] on Feb 17, 2015
  3. added 2 commits that reference this issue on Jun 22, 2015
    31fe1da
    54e5f4a
  4. DSLituiev commented on Sep 10, 2015

    @DSLituiev

    I pulled the latest version from this repository and still I get

    TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str.
    

    with Python3.4. Looking into the code I do not see the fix from @anntzer.

    Can somebody make sure it is correctly merged?

  5. peterjc commented on Sep 11, 2015

    @peterjc
    Member

    I think this is pull request #565, not merged yet.

  6. added a commit that references this issue on Sep 11, 2015
    c7b41d5
  7. added a commit that references this issue on Sep 11, 2015
    96cf8bc
  8. added a commit that references this issue on Oct 6, 2015
    3da3035
  9. added a commit that references this issue on Jan 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions