I'm Getting the following errors while using python3 from a fixed location, here it is 'python' Directory (/home/pi/python)
pi@rituraj:~/python $ python3 Python 3.4.2 (default, Feb 10 2019, 17:23:02) [GCC 4.9.2] on linux Type "help", "copyright", "credits" or "license" for more information. Failed calling sys.__interactivehook__ Traceback (most recent call last): File "/usr/lib/python3.4/site.py", line 420, in register_readline import rlcompleter File "/usr/lib/python3.4/rlcompleter.py", line 161, in <module> readline.set_completer(Completer().complete) AttributeError: 'module' object has no attribute 'set_completer'
And this is causing problem in python module import. Like I cannot import pycrypto.
But While Accessing python3 from a different directory location, it is working fine
pi@rituraj:~/vivek $ python3 Python 3.4.2 (default, Feb 10 2019, 17:23:02) [GCC 4.9.2] on linux Type "help", "copyright", "credits" or "license" for more information.
And from this directory there is no error and I can import any python module.
Note: I have tried to Change the permissions of the directory, but it didn't worked.
Thanks in Advance!