This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: LookupError : unknown encoding : [0x7FF092395AD0] ANOMALY
Type: crash Stage: resolved
Components: Windows Versions: Python 3.6
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: Kitamura, paul.moore, r.david.murray, serhiy.storchaka, steve.dower, terry.reedy, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2017-12-24 02:20 by Kitamura, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
error_capture.png Kitamura, 2017-12-24 02:20
Messages (7)
msg308977 - (view) Author: Kaoru Kitamura (Kitamura) Date: 2017-12-24 02:20
I tried to activate tensorflow after creating tensorflow environment with Anaconda Prompt.
Then, Python clashed in fatal error as attached.

I searched this kind of issues and made environment variable for UTF-8 , but it did not work.

Does anyone have any suggestions?
msg308989 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-12-24 08:28
Could you please provide the output as a text instead of a picture?
msg308998 - (view) Author: Kaoru Kitamura (Kitamura) Date: 2017-12-24 15:22
The below is the output of error.

:\Users\kitamura>activate tensorflow
パラメーターの書式が違います - [0x7FFD92395AD0]
[0x7FFD8F53DFE0] ANOMALY: meaningless REX prefix used
[0x7FFD8F555A20] ANOMALY: meaningless REX prefix used
[0x7FFD905417D0] ANOMALY: use of REX.w is meaningless (default operand size is 64)
[0x7FFD90567C60] ANOMALY: use of REX.w is meaningless (default operand size is 64)
[0x7FFD92395AD0] ANOMALY: meaningless REX prefix used
[0x7FFD8F53DFE0] ANOMALY: meaningless REX prefix used
[0x7FFD8F555A20] ANOMALY: meaningless REX prefix used
[0x7FFD905417D0] ANOMALY: use of REX.w is meaningless (default operand size is 64)
[0x7FFD90567C60] ANOMALY: use of REX.w is meaningless (default operand size is 64)
[0x7FFD92395AD0] ANOMALY: meaningless REX prefix used
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: [0x7FFD92395AD0] ANOMALY

Current thread 0x000031ac (most recent call first):
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: [0x7FFD92395AD0] ANOMALY

Current thread 0x00002bd0 (most recent call first):
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: [0x7FFD92395AD0] ANOMALY

Current thread 0x000004a4 (most recent call first):
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: [0x7FFD92395AD0] ANOMALY

Current thread 0x00002264 (most recent call first):
msg309150 - (view) Author: Kaoru Kitamura (Kitamura) Date: 2017-12-29 01:21
Does somebody know what causes above?
msg309156 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2017-12-29 02:17
Well, it's not obvious that it has anything to do with CPython itself.  You should probably work with the community responsible for tensorflow, whatever that is, and if they find a bug in CPython you can come back here with a report.  Given the error message it looks like an invalid value is being passed to CPython as the system encoding, so most likely the bug is in tensorflow and/or your environment.
msg309159 - (view) Author: Kaoru Kitamura (Kitamura) Date: 2017-12-29 03:04
Understood. Thank you.
msg309208 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-12-30 00:00
Since there is no evident CPython bug, I am closing this.  If CPython gets a bogus encoding for the std streams, it cannot output a normal traceback on sys.stderr.

From StackOverflow: "TensorFlow is an open source library for machine learning and machine intelligence. It is developed by Google and became open source in November 2015."  It obviously has a python binding as there are numerous questions tagged with both.

I searched SO for "[tensorflow] ANOMALY" and the 29 hits were about anomaly detection, as in detecting credit card fraud.  Suspecting that the error is not tensorflow specific, I searched "[anaconda] ANOMALY" and got the following, which reports a nearly identical error message, but with scikit-learn.
https://stackoverflow.com/questions/42732377/how-to-install-scikit-0-19-dev-version-in-anaconda
The advice was to reinstall after rechecking instructions.
History
Date User Action Args
2022-04-11 14:58:56adminsetgithub: 76601
2017-12-30 00:00:32terry.reedysetstatus: open -> closed

nosy: + terry.reedy
messages: + msg309208

resolution: third party
stage: resolved
2017-12-29 03:04:50Kitamurasetresolution: remind -> (no value)
messages: + msg309159
2017-12-29 02:17:21r.david.murraysetnosy: + r.david.murray
messages: + msg309156
2017-12-29 01:21:11Kitamurasetresolution: remind
messages: + msg309150
2017-12-24 15:22:18Kitamurasetmessages: + msg308998
2017-12-24 08:28:55serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg308989
2017-12-24 02:20:37Kitamuracreate