import site error

I want to use a 3rd party module in my site package. There are lots of threads on this, I know how to google search. But, before I can even get there…

I type

>>>imort si

and hit “ctrl + spce” and get


>>> import si
             gnal
             te

so then…

>>>import site

Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
  File "C:\dev\blender-2.61-release-windows64\2.61\python\lib\site.py", line 529, in <module>
    main()
  File "C:\dev\blender-2.61-release-windows64\2.61\python\lib\site.py", line 513, in main
    abs_paths()
  File "C:\dev\blender-2.61-release-windows64\2.61\python\lib\site.py", line 84, in abs_paths
    for m in set(sys.modules.values()):
TypeError: unhashable type: 'list'

umm…wtf?

Have you tried to just import the module you want without trying to import site?

If you have a peek at site.py right at the top there’s a big


****************************************************************
* This module is automatically imported during initialization. *
****************************************************************



****************************************************************
* This module is automatically imported during initialization. *
****************************************************************

Doh! Indeed, open up things and read them. I need to put that higher on my tool shelf when diagnosing problems. Thanks UE

http://projects.blender.org/tracker/?func=detail&atid=498&aid=29635&group_id=9

Fixed in blender r42657