Github user mengxr commented on the pull request:
https://github.com/apache/spark/pull/1628#issuecomment-50575901
We pinged Davies today. It seems to be a well-known problem with Python.
There are ways to force import a standard module in Python 2, but they are all
very messy:
1.
https://www.inkling.com/read/learning-python-mark-lutz-4th/chapter-23/package-relative-imports
2. https://hkn.eecs.berkeley.edu/~dyoo/python/__std__/
3. http://www.ianbicking.org/py-std.html
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---