Skip to content

AttributeError: 'str' object has no attribute 'decode' (scipy1.7) #13

@htalibart

Description

@htalibart

Hello,

When running the simple example provided in your wiki, CCMpred failed with the following error in ccmpred/algorithm/lbfgs.py, line 91, in minimize:
AttributeError: 'str' object has no attribute 'decode'
It seems to be because I am using a newer version of scipy (scipy1.7.1).

Replacing line 91 of ccmpred/algorithm/lbfgs.py:
"message": res.message.decode("utf-8"),
with
"message": res.message,
fixed it for me.

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