error in installing mrs-mapreduce

33 views
Skip to first unread message

Sherry Marcus

unread,
Dec 11, 2015, 12:56:05 PM12/11/15
to mrs-mapreduce
Hello, after I run import.mrs in python interpretor, I get the following error: any ideas?

ttributeError                            Traceback (most recent call last)
<ipython-input-6-922326390f66> in <module>()
----> 1 import mrs
      2 from WordCount import mrs
      3 class WordCount(mrs.MapReduce):
      4     def mapper(self, key, value):
      5         for word in value.split():

C:\Users\Sherry\AppData\Roaming\Python\Python35\site-packages\mrs\__init__.py in <module>()
     46 from . import version
     47 from .fileformats import HexWriter, TextWriter, BinWriter, ZipWriter
---> 48 from .main import main
     49 from .mapreduce import MapReduce, IterativeMR
     50 from .serializers import (Serializer, output_serializers, raw_serializer,

C:\Users\Sherry\AppData\Roaming\Python\Python35\site-packages\mrs\main.py in <module>()
     36 import warnings
     37 
---> 38 from . import master
     39 from . import param
     40 from .param import ParamObj, Param

C:\Users\Sherry\AppData\Roaming\Python\Python35\site-packages\mrs\master.py in <module>()
     30 from . import http
     31 from . import registry
---> 32 from . import computed_data
     33 from . import runner
     34 from . import tasks

C:\Users\Sherry\AppData\Roaming\Python\Python35\site-packages\mrs\computed_data.py in <module>()
     20 import os
     21 
---> 22 from . import datasets
     23 from .tasks import Task
     24 

C:\Users\Sherry\AppData\Roaming\Python\Python35\site-packages\mrs\datasets.py in <module>()
     25 import tempfile
     26 
---> 27 from . import bucket
     28 from . import fileformats
     29 from .serializers import (dumps_functions, loads_functions, raw_serializer,

C:\Users\Sherry\AppData\Roaming\Python\Python35\site-packages\mrs\bucket.py in <module>()
     19 
     20 from . import fileformats
---> 21 from . import util
     22 
     23 try:

C:\Users\Sherry\AppData\Roaming\Python\Python35\site-packages\mrs\util.py in <module>()
     33 
     34 PROFILE_DIR = './mrsprof'
---> 35 TEMPFILE_FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL | os.O_NOFOLLOW
     36 ID_CHARACTERS = string.ascii_letters + string.digits
     37 BITS_IN_DOUBLE = 53

AttributeError: module 'os' has no attribute 'O_NOFOLLOW'

Chris Monson

unread,
Dec 11, 2015, 2:51:45 PM12/11/15
to mrs-mapreduce
Looks like a Windows problem. O_NOFOLLOW is not available in Windows.

--
You received this message because you are subscribed to the Google Groups "mrs-mapreduce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mrs-mapreduc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kevin Seppi

unread,
Dec 16, 2015, 10:47:46 PM12/16/15
to mrs-ma...@googlegroups.com
Sherry,

Are you on windows? Was that the problem?

Reply all
Reply to author
Forward
0 new messages