Forum Replies Created
-
AuthorPosts
-
Ewald
ParticipantHi Keith,
The new version 4.4.63 solved my problem :xd:
Thanks a lot.
It's now working both for Kubuntu 14.04 and Kununtu 15.10.
Best regards,
Ewald
Ewald
ParticipantThanks for your swift reply.
I already have set LD_LIBRARY_PATH=${GLADE_HOME}/lib by this start bash script:
#!/bin/bash
export QT_PLUGIN_PATH=""
pushd ${HOME}/CAD/glade/_work
export mach_type=`uname -m`
export GLADE_HOME="${HOME}/Kubuntu/tarballs/glade4_linux64_ub14"
export PATH=${GLADE_HOME}/bin:${PATH}
export QT_PLUGIN_PATH=""
export LD_LIBRARY_PATH=${GLADE_HOME}/lib:$LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
export PYTHONPATH=""
export PYTHONPATH=$PYTHONPATH:${GLADE_HOME}/bin
export GLADE_THREADED_EXTRACTION='ON'
glade $*
popdObviously, this doesn't fix the issue for Kubuntu 14.04.
Best regards,
Ewald
Ewald
ParticipantHello,
For glade 4.4.62 I get for kubuntu 14.02 64bit (and kubuntu 15.10 64bit) this error message:
This application failed to start because it could not find or load the Qt platform plugin "xcb".
Available platform plugins are: linuxfb, minimal, offscreen, xcb.
Reinstalling the application may fix this problem.
Best regards,
Ewald
Ewald
ParticipantDear All,
Here a hint how to get glade 'Linux 64 bit build for Ubuntu (tested on Ubuntu 12.04) version 4.4.28' running on Kubuntu 14.04:
When installing the download package you will face to an error message:
Cannot mix incompatible Qt library (version 0x40806) with this library (version 0x40805)
You can overcome this by two additional settings:
1. Add to your startup script:
export QT_PLUGIN_PATH=""
2. Put into the glade installation directory a file
<your_installation_directory/bin/qt.conf
with the following contents:
[Paths]
Plugins = '.'Then glade is starting up again correctly.
Attached my startup script as reference.
Best regards,
Ewald
Ewald
ParticipantHere the screen dump.
Ewald
ParticipantHello Keith,
Great job! Many thanks.
Glade 4.3.28 in now working under (K)ubuntu 12.04 LTS 64Bit.
See attached screen dump.Best regards,
Ewald
Ewald
ParticipantHello again,
For completeness:
'configure', 'make', then 'make altinstall' did not change the result.
Still same traceback of errors.Best regards,
Ewald
Ewald
ParticipantHello,
Thanks for the swift reply.
Here my answers to your questions:
>Did you download the source and run 'configure', 'make', then 'make altinstall'?
=> Not exactly, I ran:./configure –prefix=/usr/local/python2.7
make
make test
sudo make install> What you you get if you type 'python -v'?
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/local/python2.7/lib/python2.7/site.pyc matches /usr/local/python2.7/lib/python2.7/site.py
import site # precompiled from /usr/local/python2.7/lib/python2.7/site.pyc
# /usr/local/python2.7/lib/python2.7/os.pyc matches /usr/local/python2.7/lib/python2.7/os.py
import os # precompiled from /usr/local/python2.7/lib/python2.7/os.pyc
import errno # builtin
import posix # builtin
# /usr/local/python2.7/lib/python2.7/posixpath.pyc matches /usr/local/python2.7/lib/python2.7/posixpath.py
import posixpath # precompiled from /usr/local/python2.7/lib/python2.7/posixpath.pyc
# /usr/local/python2.7/lib/python2.7/stat.pyc matches /usr/local/python2.7/lib/python2.7/stat.py
import stat # precompiled from /usr/local/python2.7/lib/python2.7/stat.pyc
# /usr/local/python2.7/lib/python2.7/genericpath.pyc matches /usr/local/python2.7/lib/python2.7/genericpath.py
import genericpath # precompiled from /usr/local/python2.7/lib/python2.7/genericpath.pyc
# /usr/local/python2.7/lib/python2.7/warnings.pyc matches /usr/local/python2.7/lib/python2.7/warnings.py
import warnings # precompiled from /usr/local/python2.7/lib/python2.7/warnings.pyc
# /usr/local/python2.7/lib/python2.7/linecache.pyc matches /usr/local/python2.7/lib/python2.7/linecache.py
import linecache # precompiled from /usr/local/python2.7/lib/python2.7/linecache.pyc
# /home/ewald/Kubuntu/tarballs/glade4_linux64_ub10/bin/types.pyc matches /home/ewald/Kubuntu/tarballs/glade4_linux64_ub10/bin/types.py
import types # precompiled from /home/ewald/Kubuntu/tarballs/glade4_linux64_ub10/bin/types.pyc
# /usr/local/python2.7/lib/python2.7/UserDict.pyc matches /usr/local/python2.7/lib/python2.7/UserDict.py
import UserDict # precompiled from /usr/local/python2.7/lib/python2.7/UserDict.pyc
# /usr/local/python2.7/lib/python2.7/_abcoll.pyc matches /usr/local/python2.7/lib/python2.7/_abcoll.py
import _abcoll # precompiled from /usr/local/python2.7/lib/python2.7/_abcoll.pyc
# /usr/local/python2.7/lib/python2.7/abc.pyc matches /usr/local/python2.7/lib/python2.7/abc.py
import abc # precompiled from /usr/local/python2.7/lib/python2.7/abc.pyc
# /usr/local/python2.7/lib/python2.7/_weakrefset.pyc matches /usr/local/python2.7/lib/python2.7/_weakrefset.py
import _weakrefset # precompiled from /usr/local/python2.7/lib/python2.7/_weakrefset.pyc
import _weakref # builtin
# /usr/local/python2.7/lib/python2.7/copy_reg.pyc matches /usr/local/python2.7/lib/python2.7/copy_reg.py
import copy_reg # precompiled from /usr/local/python2.7/lib/python2.7/copy_reg.pyc
# /usr/local/python2.7/lib/python2.7/traceback.pyc matches /usr/local/python2.7/lib/python2.7/traceback.py
import traceback # precompiled from /usr/local/python2.7/lib/python2.7/traceback.pyc
# /usr/local/python2.7/lib/python2.7/sysconfig.pyc matches /usr/local/python2.7/lib/python2.7/sysconfig.py
import sysconfig # precompiled from /usr/local/python2.7/lib/python2.7/sysconfig.pyc
# /usr/local/python2.7/lib/python2.7/re.pyc matches /usr/local/python2.7/lib/python2.7/re.py
import re # precompiled from /usr/local/python2.7/lib/python2.7/re.pyc
# /usr/local/python2.7/lib/python2.7/sre_compile.pyc matches /usr/local/python2.7/lib/python2.7/sre_compile.py
import sre_compile # precompiled from /usr/local/python2.7/lib/python2.7/sre_compile.pyc
import _sre # builtin
# /usr/local/python2.7/lib/python2.7/sre_parse.pyc matches /usr/local/python2.7/lib/python2.7/sre_parse.py
import sre_parse # precompiled from /usr/local/python2.7/lib/python2.7/sre_parse.pyc
# /usr/local/python2.7/lib/python2.7/sre_constants.pyc matches /usr/local/python2.7/lib/python2.7/sre_constants.py
import sre_constants # precompiled from /usr/local/python2.7/lib/python2.7/sre_constants.pyc
import encodings # directory /usr/local/python2.7/lib/python2.7/encodings
# /usr/local/python2.7/lib/python2.7/encodings/__init__.pyc matches /usr/local/python2.7/lib/python2.7/encodings/__init__.py
import encodings # precompiled from /usr/local/python2.7/lib/python2.7/encodings/__init__.pyc
# /usr/local/python2.7/lib/python2.7/codecs.pyc matches /usr/local/python2.7/lib/python2.7/codecs.py
import codecs # precompiled from /usr/local/python2.7/lib/python2.7/codecs.pyc
import _codecs # builtin
# /usr/local/python2.7/lib/python2.7/encodings/aliases.pyc matches /usr/local/python2.7/lib/python2.7/encodings/aliases.py
import encodings.aliases # precompiled from /usr/local/python2.7/lib/python2.7/encodings/aliases.pyc
# /usr/local/python2.7/lib/python2.7/encodings/utf_8.pyc matches /usr/local/python2.7/lib/python2.7/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/local/python2.7/lib/python2.7/encodings/utf_8.pyc
Python 2.7.3 (default, Jan 19 2013, 14:24:14)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>> What you you get if you type uname -a'?
Linux STICK01 3.2.0-36-generic #57-Ubuntu SMP Tue Jan 8 21:44:52 UTC 2013 x86_64 x86_64 x86_64 GNU/LinuxBest regards,
Ewald
Ewald
ParticipantHello,
I am also running Kubuntu 12.04 LTS 64bit and experienced same trouble as 'gsuarez' and followed your advise to install Phyton 2.7.3 from http://www.python.org as /usr/local/python2.7.
Still I get same error message when invoking glade 4.3.28 (ubuntu 10.4, 64Bit):
Traceback (most recent call last):
File "/usr/local/python2.7/lib/python2.7/site.py", line 62, in <module>
import os
File "/usr/local/python2.7/lib/python2.7/os.py", line 398, in <module>
import UserDict
File "/usr/local/python2.7/lib/python2.7/UserDict.py", line 83, in <module>
import _abcoll
File "/usr/local/python2.7/lib/python2.7/_abcoll.py", line 11, in <module>
from abc import ABCMeta, abstractmethod
File "/usr/local/python2.7/lib/python2.7/abc.py", line 8, in <module>
from _weakrefset import WeakSet
File "/usr/local/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module>
from _weakref import ref
ImportError: No module named _weakrefHow can I help to debug this issue?
My suggestion is to compile glade for ubuntu 12.04 LTS. This version will be supported until 2017, while there is no update support for 10.04 anymore.
Best regards,
EwaldEwald
ParticipantAs far as I understand, some distributions have multilib support.
Some backgroup on multilib is given at
http://cblfs.cross-lfs.org/index.php/Python
There you can also find a patch for multilib support, e.g.
http://svn.cross-lfs.org/svn/repos/patches/Python/Python-2.7.1-multilib-1.patchOn my computers there is
openSUSE 11.3: multilib support
openSUSE 11.4: multilib support
Kubuntu 11.10: no multilib supportIn case of multilib support, sys.lib returns 'lib64' (openSUSE 11.4):
Python 2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.lib
'lib64'
>>> sys.arch
'x86_64'
>>>BR
Ewald
Ewald
ParticipantHello,
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; }
# Glade release version 4.1.69 compiled on Oct 14 2011 11:28:54# Qt version 4.7.3 on 64 bit platform (little endian)# Compiled with gcc version 3.4# Username: ewald Hostname: abc/def# Current time: Sun Oct 16 17:52:26 2011# Operating system: Linux abc/def 2.6.34.10-0.2-default #1 SMP 2011-07-20 18:48:56 +0200 x86_64 x86_64 x86_64 GNU/Linux# Number of CPUs: 2# OpenGL vendor: NVIDIA Corporation# OpenGL renderer: GeForce 8400M GS/PCI/SSE2# OpenGL version: 3.3.0 NVIDIA 275.21# OpenGL FBOs will be used.# Python version 2.6.7 (r267:88850, Jun 27 2011, 05:04:01)[GCC 4.0.2 20051125 (Red Hat 4.0.2-] for linux2
>>> import sys>>> dir(sys)['__displayhook__', '__doc__', '__excepthook__', '__name__', '__package__', '__stderr__', '__stdin__', '__stdout__', '_clear_type_cache', '_current_frames', '_getframe', 'api_version', 'builtin_module_names', 'byteorder', 'call_tracing', 'callstats', 'copyright', 'displayhook', 'dont_write_bytecode', 'exc_clear', 'exc_info', 'exc_type', 'excepthook', 'exec_prefix', 'executable', 'exit', 'flags', 'float_info', 'getcheckinterval', 'getdefaultencoding', 'getdlopenflags', 'getfilesystemencoding', 'getprofile', 'getrecursionlimit', 'getrefcount', 'getsizeof', 'gettrace', 'hexversion', 'maxint', 'maxsize', 'maxunicode', 'meta_path', 'modules', 'path', 'path_hooks', 'path_importer_cache', 'platform', 'prefix', 'py3kwarning', 'setcheckinterval', 'setdefaultencoding', 'setdlopenflags', 'setprofile', 'setrecursionlimit', 'settrace', 'stderr', 'stdin', 'stdout', 'subversion', 'version', 'version_info', 'warnoptions']>>>
p, li { white-space: pre-wrap;
>>> sys.libTraceback (most recent call last):File "<stdin>", line 1, in <module>AttributeError: 'module' object has no attribute 'lib'>>>p, li { white-space: pre-wrap;>>> sys.lib
Traceback (most recent call last):File "<stdin>", line 1, in <module>AttributeError: 'module' object has no attribute '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.htmlIs there a way to add these missing attributes to Glade's Python?
This would allow to work with python inside Glade.
Best regards,
Ewald
Ewald
ParticipantHello,
Thanks a lot. Glade 4.1.69 RHEL / 64 bit works perfect with openSUSE 11.3 / python 2.6 now.
Good job!
BR,
Ewald
p, li { white-space: pre-wrap; }
# Glade release version 4.1.69 compiled on Oct 14 2011 11:28:54# Qt version 4.7.3 on 64 bit platform (little endian)# Compiled with gcc version 3.4# Username: ewald Hostname: abc/def# Current time: Fri Oct 14 18:35:22 2011# Operating system: Linux abc/def 2.6.34.10-0.2-default #1 SMP 2011-07-20 18:48:56 +0200 x86_64 x86_64 x86_64 GNU/Linux# Number of CPUs: 2# OpenGL vendor: NVIDIA Corporation# OpenGL renderer: GeForce 8400M GS/PCI/SSE2# OpenGL version: 3.3.0 NVIDIA 275.21# OpenGL FBOs will be used.# Python version 2.6.7 (r267:88850, Jun 27 2011, 05:04:01)[GCC 4.0.2 20051125 (Red Hat 4.0.2-] for linux2
>>>Ewald
ParticipantThanks.
Glade still fails to start when not setting PYTHONHOME:
#!/bin/bash
pushd ${HOME}/CAD/glade/_work
export mach_type=`uname -m`
export GLADE_HOME="${HOME}/openSUSE/tarballs/glade4_linux64_rh4"
export PATH=${GLADE_HOME}/bin:${PATH}
export LD_LIBRARY_PATH=${GLADE_HOME}/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$PYTHONPATH:${GLADE_HOME}/bin
#export PYTHONHOME=/usr
#strace glade >& glade.strace
glade
popdCould not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
File "/usr/lib64/python2.6/site.py", line 519, in <module>
main()
File "/usr/lib64/python2.6/site.py", line 502, in main
known_paths = addsitepackages(known_paths)
File "/usr/lib64/python2.6/site.py", line 268, in addsitepackages
sitedirs.append(os.path.join(prefix, sys.lib,
AttributeError: 'module' object has no attribute 'lib'Ewald
ParticipantHello Glade-Supporters,
Glade 4.1.68 (RHEL 64bit version) does not start on my openSUSE 11.3 linux OS (64bit).
(however some older versions of Glade did)My start script looks as follows:
#!/bin/bash
pushd ${HOME}/CAD/glade/_work
export mach_type=`uname -m`
export GLADE_HOME="${HOME}/openSUSE/tarballs/glade4_linux64_rh4"
export PATH=${GLADE_HOME}/bin:${PATH}
export LD_LIBRARY_PATH=${GLADE_HOME}/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$PYTHONPATH:${GLADE_HOME}/bin
export PYTHONHOME=/usr
#strace glade >& glade.strace
glade
popdError message is:
Traceback (most recent call last):
File "/usr/lib64/python2.6/site.py", line 519, in <module>
main()
File "/usr/lib64/python2.6/site.py", line 502, in main
known_paths = addsitepackages(known_paths)
File "/usr/lib64/python2.6/site.py", line 268, in addsitepackages
sitedirs.append(os.path.join(prefix, sys.lib,
AttributeError: 'module' object has no attribute 'lib'Python installation path is /usr/lib64/python2.6/..
When running strace for glade, the relevant messages before aborting are:
getcwd("/home/ewald/CAD/glade/_work", 1024) = 28
geteuid() = 1000
getuid() = 1000
getegid() = 100
getgid() = 100
stat("/home/ewald/.local/lib/python2.7/site-packages", 0x7fffa63ad940) = -1 ENOENT (No such file or directory)
close(4) = 0
munmap(0x7feebde6d000, 4096) = 0
write(2, "Traceback (most recent call last"…, 35Traceback (most recent call last):
) = 35
write(2, " File "/usr/lib64/python2.6/sit"…, 61 File "/usr/lib64/python2.6/site.py", line 519, in <module>
) = 61
open("/usr/lib64/python2.6/site.py", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=18834, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7feebde6d000
read(4, """"Append module search paths fo"…, 4096) = 4096
read(4, "nning in the build dirn (espe"…, 4096) = 4096
read(4, "nv_base else joinuser("~", ".loc"…, 4096) = 4096
read(4, " fp = file(filename"…, 4096) = 4096
read(4, " passnnndef main():n glo"…, 4096) = 2450
write(2, " ", 4 ) = 4
write(2, "main()n", 7main()
) = 7
close(4) = 0
munmap(0x7feebde6d000, 4096) = 0
write(2, " File "/usr/lib64/python2.6/sit"…, 57 File "/usr/lib64/python2.6/site.py", line 502, in main
) = 57
open("/usr/lib64/python2.6/site.py", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=18834, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7feebde6d000
read(4, """"Append module search paths fo"…, 4096) = 4096
read(4, "nning in the build dirn (espe"…, 4096) = 4096
read(4, "nv_base else joinuser("~", ".loc"…, 4096) = 4096
read(4, " fp = file(filename"…, 4096) = 4096
read(4, " passnnndef main():n glo"…, 4096) = 2450
write(2, " ", 4 ) = 4
write(2, "known_paths = addsitepackages(kn"…, 43known_paths = addsitepackages(known_paths)
) = 43
close(4) = 0
munmap(0x7feebde6d000, 4096) = 0
write(2, " File "/usr/lib64/python2.6/sit"…, 68 File "/usr/lib64/python2.6/site.py", line 268, in addsitepackages
) = 68
open("/usr/lib64/python2.6/site.py", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=18834, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7feebde6d000
read(4, """"Append module search paths fo"…, 4096) = 4096
read(4, "nning in the build dirn (espe"…, 4096) = 4096
read(4, "nv_base else joinuser("~", ".loc"…, 4096) = 4096
write(2, " ", 4 ) = 4
write(2, "sitedirs.append(os.path.join(pre"…, 46sitedirs.append(os.path.join(prefix, sys.lib,
) = 46
close(4) = 0
munmap(0x7feebde6d000, 4096) = 0
write(2, "AttributeError", 14AttributeError) = 14
write(2, ": ", 2: ) = 2
write(2, "'module' object has no attribute"…, 38'module' object has no attribute 'lib') = 38
write(2, "n", 1
) = 1
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7feebc3e42e0}, {0x943e60, [], SA_RESTORER, 0x7feebc3e42e0},= 0
brk(0xe85000) = 0xe85000
getpid() = 31839
munmap(0x7feebde6f000, 233472) = 0
exit_group(1) = ?The traceback starts after
stat("/home/ewald/.local/lib/python2.7/site-packages", 0x7fffa63ad940) = -1 ENOENT (No such file or directory)
close(4) = 0
munmap(0x7feebde6d000, 4096) = 0
write(2, "Traceback (most recent call last"…, 35Traceback (most recent call last):
Python 2.7 is NOT installed on my OS.
Can you help, please?
Thanks.
Best regards,
Ewald
-
AuthorPosts