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

Importing the eLabFTW .eln files #37

Closed
HTsybenko opened this issue Sep 13, 2023 · 4 comments
Closed

Importing the eLabFTW .eln files #37

HTsybenko opened this issue Sep 13, 2023 · 4 comments

Comments

@HTsybenko
Copy link

Importing the eLabFTW multiple-experiments.eln or single-experiment.eln file results in the following error:

Traceback (most recent call last):
File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/guiStyle.py", line 135, in
self.triggered.connect(lambda : widget.execute(command))
File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/gui.py", line 135, in execute
status = importELN(self.comm.backend, fileName)
File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/inputOutput.py", line 225, in importELN
addedDocuments += processPart(part)
File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/inputOutput.py", line 215, in processPart
addedDocs += processPart(child)
File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/inputOutput.py", line 205, in processPart
docID = backend.addData(docType, doc)
File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/backend.py", line 241, in addData
self.useExtractors(path,shasum,doc) #create image/content
File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/backend.py", line 485, in useExtractors
for item in doc[meta]:e
KeyError: 'metaVendor'

@SteffenBrinckmann
Copy link
Contributor

since it is a metaVendor keyError in useExtractors:

@SteffenBrinckmann
Copy link
Contributor

Should be repaired by #60

@SteffenBrinckmann SteffenBrinckmann removed their assignment Sep 27, 2023
@SteffenBrinckmann
Copy link
Contributor

@HTsybenko can you check in the next version?

@HTsybenko
Copy link
Author

In the latest version, no errors occur when importing the eln files from eLabFTW.

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