'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/Volumes/thor/scripts/postproc.sh", line 10, in <module>
import glob
ImportError: No module named glob
I am using the default Python installations (2.5 and 2.6) that ship with the recently released Snow Leopard. I've switched all my miscellaneous Python scripts from using 2.5 to 2.6. The only thing that gives me an error is my custom post-processing script for SABnzbd. Running the script from the terminal does not yield this error, however, SABnzbd running it as post-processing does.
It's no big deal. Running it under 2.5 works, but 2.6 throws an error on the first import statement. glob, os, re, they all fail except for sys.
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/Volumes/thor/scripts/postproc.sh", line 10, in <module>
import glob
ImportError: No module named glob
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "write_album_art.py", line 26, in <module>
import sys, os, fnmatch, re, urllib, eyeD3, shutil, string, ConfigParser
ImportError: No module named os
It looks like Apple made a serious error with their Python version.
Raf (our OSX maintainer) is looking into the matter.
It also affects compiling SABnzbd for OSX.