-
Notifications
You must be signed in to change notification settings - Fork 20
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
Multiple Tags in One Document causes Error #14
Comments
Hi StRuoff |
Yes, I get it for bib too. What I forgot to mention: I am using Python 2.7.13 with an anaconda2 installation on a SLED12 mashine. Maybe that error doesn't appear in Python3. |
The condition I mentioned is: |
Hi StRuooff,
But in the most recent (it's actually quite some time ago) line 390 is:
which is the condition for folder name being the same as one the tags in in the tag list. Btw the treatment for that condition is
So it doens't add the folder to the tag list again. |
I got it.
which will upgrade to 1.4.3. Give it a try and let me know if you encounter any further error. |
Thanks for the response! |
Good! |
can I post my questions in this issue or create a new one? |
I'm no pro user either. |
When having multiple Tags in a Document in Mendeley, the following error shows up if you want to write a "ris" file:
Traceback (most recent call last): File "menotexport.py", line 1445, in <module> args.separate,args.zotero,args.verbose) File "menotexport.py", line 1292, in main fidii,fnameii,allfolders,action,separate,iszotero,verbose) File "menotexport.py", line 1057, in processFolder tagsdict=extracttags.groupByTags(annotations) File "/home/ruof_st/.Software/anaconda2/lib/python2.7/site-packages/lib/extracttags.py", line 38, in groupByTags tagsii=['@'+kk for kk in tagsii] TypeError: cannot concatenate 'str' and 'list' objects
Also, if this error is not showing up (by convering the list to a string in extracttags.py), the script stops at:
# <Menotexport>: Exporting meta-data and annotations to .ris file... Traceback (most recent call last): File "menotexport.py", line 1444, in <module> args.separate,args.zotero,args.verbose) File "menotexport.py", line 1291, in main fidii,fnameii,allfolders,action,separate,iszotero,verbose) File "menotexport.py", line 1098, in processFolder risfolder,allfolders,isfile,iszotero,verbose) File "/home/ruof_st/.Software/anaconda2/lib/python2.7/site-packages/lib/export2ris.py", line 263, in exportAnno2Ris allfolders,isfile,iszotero,verbose) File "/home/ruof_st/.Software/anaconda2/lib/python2.7/site-packages/lib/export2ris.py", line 287, in exportDoc2Ris risdata=parseMeta(docii,basedir,isfile,iszotero) File "/home/ruof_st/.Software/anaconda2/lib/python2.7/site-packages/lib/export2ris.py", line 200, in parseMeta keywords=list(set(keywords)) TypeError: unhashable type: 'list'
If I print, how the tags look like in the python code it gives this:
[[u'LES', u'detailed chemistry', u'diagnostics', u'swirl burner'], u'LES']
If I am right, the tags are loaded in a List, and afterwards the folder name is added to the list, making it a list of lists, causing the problem.
The text was updated successfully, but these errors were encountered: