Select to view content in your preferred language

Lost autocompletion and print output in Python console

2860
3
08-14-2015 01:36 AM
YannKACENELEN
Deactivated User

Hello fellows,

I guess I shouldn't have run reload(sys) and sys.setdefaultencoding functions as suggested in StackOverFlow forums (link), as I was facing Unicode encoding issues and print commands sending back errors when running my script.

Now, the ArcMap Python console doesn't provide neither autocompletion nor print output

I could solve that problem by running a new instance of ArcMap with a blank project, but I'd like to know what went wrong with the Py console and if it would have been possible to fix it (by resetting?).

Thank you in advance for your help,

Have a good day or night, wherever you are.

- Yann

0 Kudos
3 Replies
DanPatterson_Retired
MVP Emeritus

did you reboot your computer?

0 Kudos
YannKACENELEN
Deactivated User

No I didn't and I hadn't to, as the Py console's *missing* features were back agin the new MXD created through a new instance of ArcMap launched in parallel with the former.

I thought the reload(sys) command might have affected the OS environment itself but actually no. Looks like an ArcMap internal issue.

0 Kudos
DanPatterson_Retired
MVP Emeritus

It will only reload python's sys parameters not a system wide view

0 Kudos