Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
not working in python 2.7 #159
While running https://github.com/gautamkrishnar/socli/tree/refactoring
$ python -m socli for loop java Traceback (most recent call last): File "/Users/gautam/miniconda3/envs/socli/1/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/Users/gautam/miniconda3/envs/socli/1/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/Users/gautam/PycharmProjects/socli/socli/__main__.py", line 1, in <module> from socli.socli import main File "socli/socli.py", line 25, in <module> import socli.tui as tui ImportError: No module named tui
This is related to python's module import difference between two versions.
Backers (Total: $10.00)
Submitted pull Requests
IssueHunt has been backed by the following sponsors. Become a sponsor
I went through the files, changing
@agarwalnishtha dont use
We must implement it using https://www.python.org/dev/peps/pep-0328/
By adding the path of the current directory using sys.path.append, python will always search the current directory for the specified module.