Error when installing LiveBlog
  • Vote Up0Vote Down JamalJamal
    Posts: 11Member
    We are trying to install liveBlog on Ubuntu (following the manual). But every time we receive an error, which i cant fix: ValueError: bad marshal data (unknown type code)


     Please check the error log


    root@h2440720:/var/www/ally-py/live-blog# ./build-eggs 
    *** BUILD livedesk-seo-1.0
    ------------------------------------------------------------------------------

    *** CLEAN livedesk-seo-1.0
    ------------------------------------------------------------------------------

    *** BUILD livedesk-sync-1.0
    ------------------------------------------------------------------------------

    *** CLEAN livedesk-sync-1.0
    ------------------------------------------------------------------------------

    *** BUILD general settings-1.0
    zip_safe flag not set; analyzing archive contents...
    Traceback (most recent call last):
      File "plugins/build_egg.py", line 121, in <module>
        module = imp.load_source('setup', 'setup.py')
      File "/usr/lib/python3.4/imp.py", line 169, in load_source
        module = methods.exec(sys.modules[name])
      File "<frozen importlib._bootstrap>", line 1153, in exec
      File "<frozen importlib._bootstrap>", line 1129, in _exec
      File "<frozen importlib._bootstrap>", line 1448, in exec_module
      File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
      File "setup.py", line 30, in <module>
        url="http://www.sourcefabric.org/en/superdesk/", # project home page
      File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/var/www/ally-py/live-blog/distribution/tools/distribute-0.6.27-py3.2.egg/setuptools/command/bdist_egg.py", line 227, in run
      File "/var/www/ally-py/live-blog/distribution/tools/distribute-0.6.27-py3.2.egg/setuptools/command/bdist_egg.py", line 266, in zip_safe
      File "/var/www/ally-py/live-blog/distribution/tools/distribute-0.6.27-py3.2.egg/setuptools/command/bdist_egg.py", line 402, in analyze_egg
      File "/var/www/ally-py/live-blog/distribution/tools/distribute-0.6.27-py3.2.egg/setuptools/command/bdist_egg.py", line 429, in scan_module
    ValueError: bad marshal data (unknown type code)
  • 9 Comments sorted by
  • Hi!
    There is a PR with fix for that: https://github.com/superdesk/Live-Blog/pull/876
    Innovations developer, Sourcefabric
  • It seems like the readme is missing what new embed is a separate application:
    https://github.com/liveblog/plugin-liveblog-embed-server

    and set it's url in "plugins.properties"

    I will clarify about readme updating.
    Innovations developer, Sourcefabric
  • Vote Up0Vote Down JamalJamal
    Posts: 11Member
    After building eggs, i receive another error


    root@h2440720:/opt/ally-py/live-blog# cd distribution
    root@h2440720:/opt/ally-py/live-blog/distribution# python3.2 application.py -dum      p
    -bash: python3.2: command not found
    root@h2440720:/opt/ally-py/live-blog/distribution# cd ..
    root@h2440720:/opt/ally-py/live-blog# ./build-eggs
    ./build-eggs: 11: ./build-eggs: python3.2: not found
    ./build-eggs: 11: ./build-eggs: python3.2: not found
    ./build-eggs: 11: ./build-eggs: python3.2: not found
    ./build-eggs: 13: ./build-eggs: python3.2: not found
    root@h2440720:/opt/ally-py/live-blog# ^C
    root@h2440720:/opt/ally-py/live-blog# ./build-eggs
    ./build-eggs: 11: ./build-eggs: python3.2: not found
    ./build-eggs: 11: ./build-eggs: python3.2: not found
    ./build-eggs: 11: ./build-eggs: python3.2: not found
    ./build-eggs: 13: ./build-eggs: python3.2: not found
    root@h2440720:/opt/ally-py/live-blog#

  • Innovations developer, Sourcefabric
  • Vote Up0Vote Down JamalJamal
    Posts: 11Member
    yes i installed python again, and the liveblog was working. 

    After trying to login with IOS app, the liveblog is not working anymore. Is this possible?
  • Please attach your logs.
    Post edited by Yauhen Kirylau at 2015-05-19 06:42:05
    Innovations developer, Sourcefabric
  • Vote Up0Vote Down JamalJamal
    Posts: 11Member
    logs attached
    1003B
  • Vote Up0Vote Down JamalJamal
    Posts: 11Member
    Thank you for your reply again.

    Do we need both scripts, Live Blog and Live Blog embed server? 

    Right now i only installed Live Blog, but its loading slow and goes offline many times. When we changed the config files & plugins.propertiers for url, it goes online again, but its still very slow. After a while, the liveblog goes offline again.

    And to be clear; is the liveblog https://github.com/superdesk/Live-Blog capable to embed? Because i used an iframe to embed this liveblog on a cms page and its loading.
    Post edited by Jamal at 2015-05-20 11:46:12
  • Vote Up0Vote Down JamalJamal
    Posts: 11Member

    the liveblog is working, but is very slow, check: http://jamalb.nl:8080/content/lib/core/start.html
    we installed the separate embed application. check http://jamalb.nl:9000/

    we have set the url, like you said, but its stays a blank page. 

    when we run : grunt server
    Waiting...Warning: Command failed: /root/liveblog/ally-py/live-blog/plugins/embed/node_modules/grunt-open/node_modules/open/vendor/xdg-open: 1:
     /root/liveblog/ally-py/live-blog/plugins/embed/node_modules/grunt-open/node_modules/open/vendor/xdg-open: xdg-mime: not found
    xdg-open: no method available for opening 'http://localhost:9000'

    I hope you can give us advice to solve this problems
    Post edited by Jamal at 2015-05-28 18:24:47