About the error ( UnicodeDecodeError: 'utf-8' codec can't decode)form logger.py
Dear all, When I use conda to install modller 10.4 or 10.5, I used the python (3.9) to run a simple command (from modeller import *). Then I got the error (UnicodeDecodeError: 'utf-8' codec can't decode...) . Could you tell me how to overcome it ? THX YT
On 4/4/24 5:10 PM, c00jsw00@kmu.edu.tw wrote: > When I use conda to install modller 10.4 or 10.5, I used the python (3.9) to run a simple command (from modeller import *). Then > I got the error (UnicodeDecodeError: 'utf-8' codec can't decode...) . Could you tell me how to overcome it ?
On most systems Python expects its input scripts to be UTF-8 encoded (this is for all Python scripts, not specific to Modeller). We generally recommend plain text (ASCII) for Modeller inputs as this is a subset of UTF-8. It looks like you might have a Python script or other input in a different encoding.
Ben Webb, Modeller Caretaker
On 2024-04-06 04:49, Modeller Caretaker wrote:
> On 4/4/24 5:10 PM, c00jsw00@kmu.edu.tw wrote: > >> When I use conda to install modller 10.4 or 10.5, I used the python (3.9) to run a simple command (from modeller import *). Then >> I got the error (UnicodeDecodeError: 'utf-8' codec can't decode...) . Could you tell me how to overcome it ? > > On most systems Python expects its input scripts to be UTF-8 encoded (this is for all Python scripts, not specific to Modeller). We generally recommend plain text (ASCII) for Modeller inputs as this is a subset of UTF-8. It looks like you might have a Python script or other input in a different encoding. > > Ben Webb, Modeller Caretaker
Dear Sir,
My os is win11, and I uesed the Anaconda to install the modeller 10.4 or 10.5. Then I used "Anaconda prompt " comand line (from modeller import *) to run modeller and got the error (UnicodeDecodeError: 'utf-8' codec can't decode...).. But I used the colab or linux os to ran the same comand line and I can sucessed. Could u tell me how to overcome the problem ?
Thanks
YT
On 2024-04-06 04:49, Modeller Caretaker wrote:
> On 4/4/24 5:10 PM, c00jsw00@kmu.edu.tw wrote: > >> When I use conda to install modller 10.4 or 10.5, I used the python (3.9) to run a simple command (from modeller import *). Then >> I got the error (UnicodeDecodeError: 'utf-8' codec can't decode...) . Could you tell me how to overcome it ? > > On most systems Python expects its input scripts to be UTF-8 encoded (this is for all Python scripts, not specific to Modeller). We generally recommend plain text (ASCII) for Modeller inputs as this is a subset of UTF-8. It looks like you might have a Python script or other input in a different encoding. > > Ben Webb, Modeller Caretaker
On 4/7/24 3:15 PM, c00jsw00 wrote: > My os is win11, and I uesed the Anaconda to install the modeller 10.4 or > 10.5. Then I used "Anaconda prompt " comand line > (from modeller import *) to run modeller and got the error > (UnicodeDecodeError: 'utf-8' codec can't decode...).. But I used the > colab or linux os to ran the same comand line and I can sucessed. Could > u tell me how to overcome the problem ?
As I said, it looks like you have a Python script or other input that is not ASCII or UTF-8 encoded. All Modeller Python scripts should be ASCII, so that shouldn't be the issue. I suppose it's possible that your install got corrupted somehow - you could try a reinstall. Otherwise, if you post the full error message with stack trace, somebody *might* be able to help you.
Ben Webb, Modeller Caretaker
participants (3)
-
c00jsw00
-
c00jsw00@kmu.edu.tw
-
Modeller Caretaker