OSError: [Errno 72] RPC struct is bad

“Command Line Tools” I have a unique issue on my new 2020 M1 MacbookPro.

I set up my new M1 2020 MacbookPro using a backup on time machine of my 2017 intel based MacbookPro. SO all versions of software are identical.

My python programs that run perfectly on my old MacbookPro (and various MacbooksPros of my colleagues). However it crashes with "OSError: [Errno 72] RPC struct is bad"  in a specific line of the code on the new 2020 M1 MacBookPro.

The Shell Script line where the error occurs is: "$EXE_DIR/qdl_futures.py "$FUT_DIR/$FUT_TOPIX.csv" tmp_tp.csv 2JTIc1 $LASTDT $tag cat tmp_tp.csv >> TP1_Index.csv"

How do I resolve this issue. Can you please guide me in the right direction.

That error, EBADRPC, is pretty obscure and it’s likely that it’s not ‘real’, that is, it’s unlikely to be related to RPC but that some component is reusing the error code in some other context. It’s hard to say what that might be. To dig further into this, you need to debug your Python code to see who is raising that error and under what circumstances.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

OSError: [Errno 72] RPC struct is bad
 
 
Q