vascop / runp

export python functions from files to the command line
41 stars 7 forks source link

runp.py on Python 3.6 #6

Open z--m-n opened 5 years ago

z--m-n commented 5 years ago

I could install runp using pip, but it did not work right away. Besides the need to add parentheses to print statements, I found this error message:

Traceback (most recent call last):
[...]
File "[...]/lib/python3.6/site-packages/runp/runp.py", line 15, in filter_vars
    methods = inspect.getmembers(obj(), predicate=inspect.ismethod)

... for which a solution was to change obj() to obj. I am not knowledgeable enough to say this is the right solution, perhaps someone else could shed some light. With the above changes runp seems to work okay and continues to be a nifty little tool.

yuchenlin commented 5 years ago

also have this problem