Python Forum
Fatal Python error: init_sys_streams: can't initialize sys standard streams Attribute
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal Python error: init_sys_streams: can't initialize sys standard streams Attribute
#20
(Aug-22-2018, 03:02 PM)metulburr Wrote: This is most likely a dead end, but i will ask. Have you created a .pth file at all on this system? This should not effect the standard lib io module if there was another io file elsewhere because 1) the .pth filepaths are search after the standard library ones, and 2) an uninstall should remove it from site-packages anyways. Unless you did something weird. But if you never did create a .pth file and have no idea what that is , then just ignore this post.
No never did anything like that. I did have Anaconda and Spyder installed before(which I uninstalled) which had Python 3.6.5 and the single system wide version on Windows was 3.6.3. This is only thing I can think of which might have caused this breakdown. Never bothered with anything .pth related.

(Aug-22-2018, 03:05 PM)metulburr Wrote:
Quote:1. Why is this '-E' thing being installed by default? Is there any way to remove it? I just want it like before i.e take me to IDLE when I type 'python' instead of 'python -E'. Only want to keep one consistent python version installed on system.

the E argument does this
Quote: -E Ignore environment variables like PYTHONPATH and PYTHONHOME that
modify the behavior of the interpreter.
You shouldnt have to do that to run a fresh python isntall. Continuing without fixing this first will cause future headaches.

Does that mean my PYTHONPATH and PYTHONHOME are broken for some reason? Any idead how to fix that?
Reply


Messages In This Thread
RE: Fatal Python error: init_sys_streams: can't initialize sys standard streams Attribute - by FatalPythonError - Aug-22-2018, 03:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error: audioio has no attribute 'AudioOut' netwrok 3 810 Oct-22-2023, 05:53 PM
Last Post: netwrok
  cx_oracle Error - AttributeError: 'function' object has no attribute 'cursor' birajdarmm 1 2,794 Apr-15-2023, 05:17 PM
Last Post: deanhystad
  python standard way of importing library mg24 1 1,023 Nov-15-2022, 01:41 AM
Last Post: deanhystad
  Running Standard Scaler in Python 3 Led_Zeppelin 1 1,380 Sep-05-2022, 06:35 PM
Last Post: deanhystad
  Handling Python Fatal Error richajain1785 7 6,334 Oct-14-2021, 01:34 PM
Last Post: Tails86
  Getting 'NoneType' object has no attribute 'find' error when WebScraping with BS Franky77 2 5,530 Aug-17-2021, 05:24 PM
Last Post: Franky77
  2 ways to initialize a list with all zero quazirfan 2 1,944 Aug-06-2021, 03:27 PM
Last Post: deanhystad
  Attribute Error received not understood (Please Help) crocolicious 5 2,837 Jun-19-2021, 08:45 PM
Last Post: crocolicious
  error in scapy attribute 'haslayer' evilcode1 5 6,818 Mar-02-2021, 11:19 AM
Last Post: evilcode1
  Fatal error after trying to play sound. giladal 0 2,016 Oct-22-2020, 10:27 AM
Last Post: giladal

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020