Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help(sh) does not work #455

Closed
sush-abc opened this issue Oct 18, 2018 · 1 comment
Closed

help(sh) does not work #455

sush-abc opened this issue Oct 18, 2018 · 1 comment

Comments

@sush-abc
Copy link

sush-abc commented Oct 18, 2018

As this is my first time using 'sh', I tried to run help on it. 'sh' doesnt seem to like it

sh $python
Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sh
>>> help(sh)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/sush/anaconda3/lib/python3.6/_sitebuiltins.py", line 103, in __call__
    return pydoc.help(*args, **kwds)
  File "/Users/sush/anaconda3/lib/python3.6/pydoc.py", line 1858, in __call__
    self.help(request)
  File "/Users/sush/anaconda3/lib/python3.6/pydoc.py", line 1911, in help
    else: doc(request, 'Help on %s:', output=self._output)
  File "/Users/sush/anaconda3/lib/python3.6/pydoc.py", line 1645, in doc
    pager(render_doc(thing, title, forceload))
  File "/Users/sush/anaconda3/lib/python3.6/pydoc.py", line 1638, in render_doc
    return title % desc + '\n\n' + renderer.document(object, name)
  File "/Users/sush/anaconda3/lib/python3.6/pydoc.py", line 382, in document
    if inspect.ismodule(object): return self.docmodule(*args)
  File "/Users/sush/anaconda3/lib/python3.6/pydoc.py", line 1103, in docmodule
    all = getattr(object, '__all__', None)
  File "/Users/sush/Desktop/up/sh/sh.py", line 3349, in __getattr__
    return self.__env[name]
  File "/Users/sush/Desktop/up/sh/sh.py", line 3187, in __getitem__
    Please import sh or import programs individually.")
RuntimeError: Cannot import * from sh. Please import sh or import programs individually.
>>> 
@amoffat
Copy link
Owner

amoffat commented Apr 24, 2020

Thanks for reporting. 1a56211 will go out in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants