[Slackbuilds-users] zim wiki crashes, python 2.7.13 update

Brenton Earl brent at exitstatusone.com
Fri Jan 6 17:28:02 UTC 2017


On Fri, Jan 06, 2017 at 04:34:41PM +0700, Willy Sudiarto Raharjo wrote:
> > Zim wiki seems to crash with the recent update to python 2.7.13.  There
> > is a work around to launch Zim:
> > 
> >> zim --standalone
> > 
> > A bug report has been filed upstream here:
> > 
> > https://bugs.launchpad.net/zim/+bug/1618410
> > 
> > I attached the error message to this email.  Reproduced in a fresh
> > virtual machine of Slackware x86 and x86_64 14.2.  Can anyone else
> > reproduce this?  Any suggestions are welcome.
> 
> Works on current machine with same Python 2.7.13
> probably a bug caused by the way Python was compiled? (UCS-2 vs UCS-4)
> 

In short, rebuild python 2.7.13 and this problem will be fixed.  Remove
your $HOME/.config/zim and $HOME/.cache/zim.  Start zim as normal.

The issue lies in the python multiprocessing module.  Zim is unable to
start up because it cannot import the required module.

The following will return the import error:

> python -c "from _multiprocessing import SemLock"

This problem can be seen if you run zim in debug mode during the first
launch of the application.  See attached log.

Thanks,
Brenton Earl
-------------- next part --------------
bash-4.3$ zim -D
WARNING: Can not import 'xdg.Mime' - falling back to 'mimetypes'
WARNING: Filesystem encoding is set to ASCII or Latin1, using UTF-8 
instead
INFO: This is zim 0.65
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=13, 
releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
  branch: zim-trunk
  revision: 805 
jaap.karssenberg at gmail.com-20151101144245-0g7s8a7qjt5xu1d0
  date: 2015-11-01 15:42:45 +0100
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/el0226/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share>, <Dir: 
/usr/local/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/el0226/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>, <Dir: /etc/kde/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/el0226/.cache
DEBUG: First time usage - prompt for notebook folder
DEBUG: Loading config from: /home/el0226/Notebooks/Notes/notebook.zim
DEBUG: Opening dialog "Add Notebook - Zim"
DEBUG: Dialog response OK
DEBUG: Closed dialog "Add Notebook"
DEBUG: Loading config from: /home/el0226/Notebooks/Notes/notebook.zim
DEBUG: Wrote /home/el0226/Notebooks/Notes/notebook.zim
DEBUG: Wrote /home/el0226/.config/zim/notebooks.list
DEBUG: Wrote /home/el0226/Notebooks/Notes/.zim/tmp
INFO: Remove file: /home/el0226/Notebooks/Notes/.zim/tmp
DEBUG: Loading config from: /home/el0226/Notebooks/Notes/notebook.zim
DEBUG: Cache dir: 
/home/el0226/.cache/zim/notebook-home_el0226_Notebooks_Notes
DEBUG: Index database file: 
/home/el0226/.cache/zim/notebook-home_el0226_Notebooks_Notes/index.db
INFO: Flushing index
DEBUG: Remote call from 4758: <RemoteMethodCall: 4758: 
zim.ipc.Server(None).ping((), {})>
DEBUG: Starting server by spawning new process
INFO: Spawning: ['/usr/bin/zim', '--ipc-server-main', 
'/tmp/zim-el0226/zim-server-socket', '10'] (cwd: None)
DEBUG: Process started with PID: 4762
DEBUG: Remote call from 4758: <RemoteMethodCall: 4758: 
zim.ipc.Server(None).ping((), {})>
WARNING: Can not import 'xdg.Mime' - falling back to 'mimetypes'
WARNING: Filesystem encoding is set to ASCII or Latin1, using UTF-8 
instead
Traceback (most recent call last):
  File "/usr/bin/zim", line 50, in <module>
    zim.ipc.handle_argv()
  File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 124, in 
handle_argv
    servermain()
  File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 352, in 
servermain
    server = Server()
  File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 384, in 
__init__
    self.logqueue = multiprocessing.Queue()
  File "/usr/lib/python2.7/multiprocessing/__init__.py", line 217, in 
Queue
    from multiprocessing.queues import Queue
  File "/usr/lib/python2.7/multiprocessing/queues.py", line 48, in 
<module>
    from .synchronize import Lock, BoundedSemaphore, Semaphore, 
Condition
  File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 59, 
in <module>
    " function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open 
implementation, therefore, the required synchronization primitives 
needed will not function, see issue 3770.
DEBUG: Remote call from 4758: <RemoteMethodCall: 4758: 
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4758: <RemoteMethodCall: 4758: 
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4758: <RemoteMethodCall: 4758: 
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4758: <RemoteMethodCall: 4758: 
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4758: <RemoteMethodCall: 4758: 
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4758: <RemoteMethodCall: 4758: 
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4758: <RemoteMethodCall: 4758: 
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4758: <RemoteMethodCall: 4758: 
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4758: <RemoteMethodCall: 4758: 
zim.ipc.Server(None).ping((), {})>
DEBUG: Cannot connect to server 4758:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 273, in 
start_server_if_not_running
    s.ping()
  File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 763, in 
call
    conn = Client(SERVER_ADDRESS, SERVER_ADDRESS_FAMILY)
  File "/usr/lib/python2.7/multiprocessing/connection.py", line 169, 
in Client
    c = SocketClient(address)
  File "/usr/lib/python2.7/multiprocessing/connection.py", line 308, 
in SocketClient
    s.connect(address)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 2] No such file or directory

ERROR: Exception in main()
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/zim/main.py", line 446, in 
main
    obj.run()
  File "/usr/lib/python2.7/site-packages/zim/main.py", line 211, in 
run
    zim.ipc.start_server_if_not_running()
  File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 283, in 
start_server_if_not_running
    raise AssertionError, 'Failed to start server (spawning)'
AssertionError: Failed to start server (spawning)
DEBUG: Running ErrorDialog



More information about the SlackBuilds-users mailing list