geeknote icon indicating copy to clipboard operation
geeknote copied to clipboard

Error when invoke geeknote from third-party app

Open casper-gh opened this issue 8 years ago • 0 comments

Hi, I'm having an issue when invoking geeknote from a third-party application.

It works fine when I invoke the command directly: geeknote show myNote, but when I call it from another app, I got this:

Traceback (most recent call last):
  File "/usr/local/bin/geeknote", line 9, in <module>
    load_entry_point('geeknote==0.2a', 'console_scripts', 'geeknote')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/geeknote.py", line 19, in <module>
    import config
  File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/config.py", line 33, in <module>
    APP_DIR = os.path.join(os.getenv("HOME") or os.getenv("USERPROFILE"),  ".geeknote")
  File "/usr/lib/python2.7/posixpath.py", line 77, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

Not sure what is wrong, I'm running on Rapsbian OS

casper-gh avatar May 29 '16 20:05 casper-gh