[opensuse] run python script take error.
when I run offlineimap, a python script for receive email. get a error message: $: offlineimap Traceback (most recent call last): File "/usr/bin/offlineimap", line 20, in <module> from offlineimap import OfflineImap File "/usr/lib/python2.7/site-packages/offlineimap/__init__.py", line 21, in <module> from offlineimap.init import OfflineImap File "/usr/lib/python2.7/site-packages/offlineimap/init.py", line 28, in <module> from offlineimap import accounts, threadutil, syncmaster File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 26, in <module> from offlineimap.repository import Repository File "/usr/lib/python2.7/site-packages/offlineimap/repository/__init__.py", line 25, in <module> from offlineimap.repository.IMAP import IMAPRepository, MappedIMAPRepository File "/usr/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line 25, in <module> from offlineimap import folder, imaputil, imapserver, OfflineImapError File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 26, in <module> from ssl import SSLError, cert_time_to_seconds File "/usr/lib64/python2.7/ssl.py", line 97, in <module> import _ssl # if we can't import it, let the error propagate ImportError: /usr/lib64/python2.7/lib-dynload/_ssl.so: undefined symbol: SSLv2_method Only if i run this script with sudo, it worked fine. $ sudo offlineimap Where to change this behavior, make this python package can work with normal user account. thanks. -- Geek, Rubyist, Emacser Homepage: http://zw963.github.io -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Σάββατο, 27 Φεβρουαρίου 2016 9:28:41 Μ.Μ. EET Billy. Zheng wrote:
$: offlineimap Traceback (most recent call last): 26, in <module> from ssl import SSLError, cert_time_to_seconds File "/usr/lib64/python2.7/ssl.py", line 97, in <module> import _ssl # if we can't import it, let the error propagate
ImportError: /usr/lib64/python2.7/lib-dynload/_ssl.so: undefined symbol: SSLv2_method
This symbol exists in /lib64/libssl.so.1.0.0, which is included in the package libopenssl1_0_0 on my system (oS Leap 42.1).
Only if i run this script with sudo, it worked fine.
$ sudo offlineimap
Where to change this behavior, make this python package can work with normal user account.
Perhaps the permissions of /lib64/libssl.so.1.0.0 are incorrect?
thanks. Geek, Rubyist, Emacser Homepage: http://zw963.github.io -- Regards, Peter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Perhaps the permissions of /lib64/libssl.so.1.0.0 are incorrect?
Thanks, you are right, I copy a libssl.so.1.0.0 in my $HOME one directory which include $LD_LIBRARY_PATH. I delete this file, and use system libssl.so.1.0.0, it work fine now. auxsvr writes:
On Σάββατο, 27 Φεβρουαρίου 2016 9:28:41 Μ.Μ. EET Billy. Zheng wrote:
$: offlineimap Traceback (most recent call last): 26, in <module> from ssl import SSLError, cert_time_to_seconds File "/usr/lib64/python2.7/ssl.py", line 97, in <module> import _ssl # if we can't import it, let the error propagate
ImportError: /usr/lib64/python2.7/lib-dynload/_ssl.so: undefined symbol: SSLv2_method
This symbol exists in /lib64/libssl.so.1.0.0, which is included in the package libopenssl1_0_0 on my system (oS Leap 42.1).
Only if i run this script with sudo, it worked fine.
$ sudo offlineimap
Where to change this behavior, make this python package can work with normal user account.
Perhaps the permissions of /lib64/libssl.so.1.0.0 are incorrect?
thanks. Geek, Rubyist, Emacser Homepage: http://zw963.github.io -- Regards, Peter
-- Geek, Rubyist, Emacser Homepage: http://zw963.github.io -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
auxsvr
-
Billy.Zheng