Closed alonasorochynska closed 2 months ago
Today I have installed everything to the Linux OS and no more problems with pubmed_parser. But I am running the test pytest --cov=pubmed_parser tests/ --verbose
and now the respond is: Couldn't parse file pubmed_oa_parser.py. There is a function in this file that doesn't work. Function is list_xml_parser.py(path dir)
. I am giving the path to the xml file that I want to parse and the output is empty list. Actually doesn't work a list comprehension inside the function:
fullpath = [
os.path.join(dp, f)
for dp, dn, fn in os.walk(os.path.expanduser('pubmed20n0173.xml'))
for f in fn
]
It returnes []
Do you still face all these problems?
I think the tests fail because you don't have the necessary test files. And I think the import in jupyter failed because it was using a different python version.
I am trying to use your parser but there are some problems. My OS is Windows 10 and I did next steps:
First I try installation from the repo:
which yields
(Successfully installed).
Then I try pip:
which yields
(Requirement already satisfied)
Then I am running
which yields:
pip install pubmed_parser
ERROR: Could not find a version that satisfies the requirement pubmed_parser (from versions: none) ERROR: No matching distribution found for pubmed_parser