-
Notifications
You must be signed in to change notification settings - Fork 41
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
Mac python 2, able to query but not read or edit-note #39
Comments
After using zotcli for a bit I realize this is caused by trying to add-note or edit-note to a library item that already has a note that was not created by zotcli. My suggestion is to handle errors from this and let the user know they need to remove the non-zotcli note. Or, better, convert non-zotcli notes into markdown zotcli notes so they are editable. |
I'm having the same issue as you, specifically with Further, notes I create using NOTE: This was with python3 instead of python2 |
Can confirm same error as @cbcoutinho under archlinux, python3. |
Receiving the same error as @cbcoutinho and @lf-araujo under Ubuntu with python3 |
New user. Mac Sierra. Python
$ python --version
Python 2.7.10
Am able to query my zotero db. E.G.
$ zotcli query Sullivan
[REFTHQBY] Sullivan and Miller: Segmenting the informal venture capital market: Economic, hedonistic, and altruistic investors (May 1996)
When reading or edit-noting, it chokes.
$ zotcli read sullivan
Traceback (most recent call last):
File "/usr/local/bin/zotcli", line 9, in
load_entry_point('zotero-cli==0.3.0', 'console_scripts', 'zotcli')()
File "/Library/Python/2.7/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/Library/Python/2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Library/Python/2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Python/2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Python/2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Library/Python/2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Library/Python/2.7/site-packages/zotero_cli/cli.py", line 208, in read
att_path = ctx.obj.get_attachment_path(read_att)
File "/Library/Python/2.7/site-packages/zotero_cli/backend.py", line 239, in get_attachment_path
"Attachment is not stored on server, cannot download!")
ValueError: Attachment is not stored on server, cannot download!
$ zotcli read REFTHQBY
Traceback (most recent call last):
File "/usr/local/bin/zotcli", line 9, in
load_entry_point('zotero-cli==0.3.0', 'console_scripts', 'zotcli')()
File "/Library/Python/2.7/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/Library/Python/2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Library/Python/2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Python/2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Python/2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Library/Python/2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Library/Python/2.7/site-packages/zotero_cli/cli.py", line 198, in read
attachments = ctx.obj.attachments(item_id)
File "/Library/Python/2.7/site-packages/zotero_cli/backend.py", line 224, in attachments
attachments = self._zot.children(item_id, itemType="attachment")
File "/Library/Python/2.7/site-packages/pyzotero/zotero.py", line 129, in wrapped_f
retrieved = self._retrieve_data(func(self, *args))
File "/Library/Python/2.7/site-packages/pyzotero/zotero.py", line 608, in children
i=item.upper())
AttributeError: 'NoneType' object has no attribute 'upper'
The text was updated successfully, but these errors were encountered: