I was in Tunisia at the airport in Tunis for a departing flight. Having already checked online, I tried going through security with my electronic boarding pass. The security told me I needed my boarding pass. I pointed again to the electronic copy as politely as I could. The security said “this is Tunisia, you need the paper copy.” XD
This happened to me in Mumbai several years ago. I had thankfully been forewarned, but there were military police checking boarding passes for entering passengers outside the airport, and no one without a paper boarding pass + appropriate government ID was allowed into the terminal. This was right up there with the "requirement" that business travelers in India provide a physical business card to the hotel when checking in. I haven't been a in few years, so hopefully that's at least no longer the case.