Linux Script failures - please support

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Terminator-X Offline
Junior Member
Posts: 9
Joined: Aug 2012
Reputation: 0
Post: #1
I use XBMC on a N5550 NAS, with HDMI output, this module: http://www.thecus.com/forum/viewtopic.ph...4&start=50

Upon statup, I get several script fails (system.py; weather.weatherplus; randomitems.py). As far as I can see it is related to my almoast ALL my add-ons. None of them work!

I made a logfile for the startup. http://xbmclogs.com/show.php?id=7401

Can anyone please help me to determine the cause?
Thank you for your support,

Marco
find quote
artrafael Offline
Team-XBMC Forum Moderator
Posts: 4,424
Joined: Jul 2010
Reputation: 78
Location: USA
Post: #2
Your first link to thecus.com doesn't work.

Which Linux distribution and version are your running?
Code:
16:24:48 T:140138095536192 WARNING: Unable to determine Linux distribution
16:24:48 T:140138095536192  NOTICE: Starting XBMC (11.0-PRE Git:20120304-c50f565), Platform: Linux (Unknown, 2.6.38 x86_64). Built on Jul 22 2012

I'm seeing a lot of urandom error messages:
Code:
16:25:14 T:140137812113168   ERROR: Traceback (most recent call last):
                                              File "//.xbmc/addons/script.randomitems/RandomItems.py", line 8, in <module>
                                                import re, sys, os, random
                                              File "/opt/python/lib/python2.7/random.py", line 47, in <module>
                                                from os import urandom as _urandom
                                            ImportError: cannot import name urandom

Looks to be an OS and/or Python issue with virtualenv? See the following links, for example:
http://stackoverflow.com/questions/10366...04-upgrade
https://bugs.launchpad.net/ubuntu/+sourc...bug/954595
http://cd34.com/blog/programming/python/...e-urandom/
These include some workarounds that seemed to have resolved the problem for some users.

More can be found with a Google search for: Python "cannot import name urandom"

This doesn't appear to be an XBMC problem. Please check the support site/forums of the Linux distribution you are using and search for the following error:
Code:
ImportError: cannot import name urandom
and see if they have an update that fixes this. If it hasn't been previously reported there, go ahead and report this error to them.
find quote
Terminator-X Offline
Junior Member
Posts: 9
Joined: Aug 2012
Reputation: 0
Post: #3
Thanks for your quick reply Artrafael!

By the way, the correct link for the module is: http://www.thecus.com/forum/viewtopic.php?f=36&t=4044

I read that he Thecus OS is "based on Linux version 2.6.38". cat /proc/version gives met Red Hat 4.4.3-4

I will follow your suggestions and report progress in this topic for other users.
(This post was last modified: 2012-09-10 19:59 by Terminator-X.)
find quote