Error output in Textmate 2 using Python 3.4

I am using Textmate 2.0 on Mac OSX and I cannot make it stop printing an error message every time I run the script. He continues to say:

Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: 'NoneType' object has no attribute 'name'

All I did was add a value /usr/local/bin/python3to the variable TM_PYTHONin the Settings menu.

Does anyone know what is going on?

+4
source share
1 answer

TextMate Python , . , , Python 3.4 reload() Python 3.3 new importlib. Python .

, , , dummy sitecustomize.py sys.path Python 3.4. , :

echo '' > $(/usr/local/bin/python3.4 -c 'import site; print(site.getusersitepackages())')/sitecustomize.py
+7

Source: https://habr.com/ru/post/1542702/


All Articles