Home › Forums › Installation › Installing Glade on Linux › Reply To: Installing Glade on Linux
Hello,
Glade 4.1.69 still issues on my openSUSE 11.2 the error message
import site' failed; use -v for traceback
Root cause is that Glade's Python module 'sys' is defining different attributes than openSUSE 11.2's Python:
Glade 4.1.69 (RH4, 64bit):
p, li { white-space: pre-wrap; }
>>>
p, li { white-space: pre-wrap;
p, li { white-space: pre-wrap;>>> sys.lib
openSUSE 11.2:
Python 2.6.5 (r265:79063, May 6 2011, 17:25:59)
[GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> dir(sys)
['__displayhook__', '__doc__', '__egginsert', '__excepthook__', '__name__', '__package__', '__plen', '__stderr__', '__stdin__', '__stdout__', '_clear_type_cache', '_current_frames', '_getframe', 'api_version', 'arch', 'argv', 'builtin_module_names', 'byteorder', 'call_tracing', 'callstats', 'copyright', 'displayhook', 'dont_write_bytecode', 'exc_clear', 'exc_info', 'exc_type', 'excepthook', 'exec_prefix', 'executable', 'exit', 'exitfunc', 'flags', 'float_info', 'getcheckinterval', 'getdefaultencoding', 'getdlopenflags', 'getfilesystemencoding', 'getprofile', 'getrecursionlimit', 'getrefcount', 'getsizeof', 'gettrace', 'hexversion', 'lib', 'maxint', 'maxsize', 'maxunicode', 'meta_path', 'modules', 'path', 'path_hooks', 'path_importer_cache', 'platform', 'prefix', 'ps1', 'ps2', 'py3kwarning', 'setcheckinterval', 'setdlopenflags', 'setprofile', 'setrecursionlimit', 'settrace', 'stderr', 'stdin', 'stdout', 'subversion', 'version', 'version_info', 'warnoptions']
>>>
>>> sys.lib
'lib64'
>>> sys.arch
'x86_64'
>>>
The openSUSE Python is having the additional attributes 'arch' and 'lib',which Glade's Python (RH4) doesn't have.
Obviously, the sys module is differing for the Linux distributions, see also:
http://old.nabble.com/Looking-for-portable-what-to-determine-directory-where-extensions-are-installed–td26238412.html
Is there a way to add these missing attributes to Glade's Python?
This would allow to work with python inside Glade.
Best regards,
Ewald