BTW, looks like a bug but I'm waiting on the author to confirm. I didn't see where that variable is used anywhere else, so I just changed that line cited in the error message to hardcode the temp directory in my cluster:
tempfile.tempdir = '/tmp/'
Maybe this was intended to have a --tempdir argument that hasn't been implemented yet. So far, it's running...
was this ever resolved im getting the same error today and i cant find a post with the solution
Traceback (most recent call last):
File "/usr/bin/macs2", line 614, in <module>
File "/usr/bin/macs2", line 56, in main
run( args )
File "/usr/local/lib/python2.7/dist-packages/MACS2/callpeak_cmd.py", line 68, in run
tempfile.tempdir = options.tempdir
AttributeError: 'Namespace' object has no attribute 'tempdir'