Bad marshal data

756 views
Skip to first unread message

AsgeirK

unread,
Oct 28, 2013, 9:37:10 AM10/28/13
to weewx...@googlegroups.com
My Weewx suddenly stopped reporting.  When trying to run from command prompt, I get:

pi@raspberrypi /home/weewx $ ./bin/weewxd weewx.conf
Traceback (most recent call last):
  File "./bin/weewxd", line 18, in <module>
    import weewx.wxengine
  File "/home/weewx/bin/weewx/wxengine.py", line 32, in <module>
    import weewx.restful
  File "/home/weewx/bin/weewx/restful.py", line 15, in <module>
    import httplib
  File "/usr/lib/python2.7/httplib.py", line 79, in <module>
    import mimetools
  File "/usr/lib/python2.7/mimetools.py", line 11, in <module>
    import rfc822
ValueError: bad marshal data (string ref out of range)

Any ideas?

I'm using a WMR200.

Thomas Keffer

unread,
Oct 28, 2013, 10:04:36 AM10/28/13
to weewx-user
Man, that's an error I've never seen before. Nor does Googling it shed any light. Can you reproduce it from the command line? Try this:

$ python
>>> import httplib

If that gives the same exception, it would suggest that something went awry with your Python environment. 

-tk



--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

AsgeirK

unread,
Oct 28, 2013, 11:18:32 AM10/28/13
to weewx...@googlegroups.com
Yes, got the same error.  I guess I should try to reinstall something..


pi@raspberrypi /home/weewx $ python
Python 2.7.3 (default, Jan 13 2013, 11:20:46)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import httplib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>

Thomas Keffer

unread,
Oct 28, 2013, 11:34:32 AM10/28/13
to weewx-user
Looks that way. Either re-install Python, or the whole OS.

-tk



vds

unread,
Oct 28, 2013, 7:05:40 PM10/28/13
to weewx...@googlegroups.com
I found a few references ala this one that say it means a .pyc file is corrupt someplace
http://odolshinu.wordpress.com/2012/04/24/python-valueerror-bad-marshal-data/

Thomas Keffer

unread,
Oct 28, 2013, 7:22:50 PM10/28/13
to weewx...@googlegroups.com

If that's the case, then deleting all the .pyc files, then running weewx as root, will regenerate them and fix the problem.

-tk
Fat-fingered from my smartphone.

Reply all
Reply to author
Forward
0 new messages