I'm trying to get the argparse module working in Python. My problem is that on a fresh install, I get the following:
File "test.py", line 3, in <module>
import argparse
File "/home/jon/Pythons/realmine/argparse.py", line 3, in <module>
parser = argparse.ArgumentParser(description='Short sample app')
AttributeError: 'module' object has no attribute 'ArgumentParser'
test.py
is:
import argparse
Clearly, I'm missing something. Can anyone help?