geeknote
geeknote copied to clipboard
Error when invoke geeknote from third-party app
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