I'm on Catalina and have installed Python 3.9.5 using Homebrew. I created the venv as described in the README. The output is:
(.venv) fhir-populator $ python -m fhir_populator --endpoint http://localhost:8080/fhir --get-dependencies --package de.gecco
[20:49:45] INFO - endpoint : http://localhost:8080/fhir populator.py:181
INFO - authorization_header : None populator.py:181
INFO - log_file : None populator.py:181
INFO - get_dependencies : True populator.py:181
INFO - non_interactive : False populator.py:181
INFO - include_examples : False populator.py:181
INFO - log_level : INFO populator.py:181
INFO - rewrite_versions : False populator.py:181
INFO - only_put : False populator.py:181
INFO - versioned_ids : False populator.py:181
INFO - exclude_resource_type : None populator.py:181
INFO - registry_url : https://packages.simplifier.net populator.py:181
INFO - packages : ['de.gecco'] populator.py:181
INFO Downloading package with spec [email protected] populator.py:288
[20:49:46] INFO Downloading package with spec [email protected] populator.py:288
INFO Downloading package with spec [email protected] populator.py:288
[20:49:47] INFO Downloading package with spec [email protected] populator.py:288
[20:49:48] INFO Downloading package with spec [email protected] populator.py:288
[20:49:49] INFO Downloading package with spec [email protected] populator.py:288
INFO Downloading package with spec [email protected] populator.py:288
INFO Downloading package with spec [email protected] populator.py:288
INFO Downloading package with spec [email protected] populator.py:288
Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/akiel/fhir-populator/.venv/lib/python3.9/site-packages/fhir_populator/__main__.py", line 4, in <module>
Populator().populate()
File "/Users/akiel/fhir-populator/.venv/lib/python3.9/site-packages/fhir_populator/populator.py", line 351, in populate
dependency_graph = self.download_packages(packages)
File "/Users/akiel/fhir-populator/.venv/lib/python3.9/site-packages/fhir_populator/populator.py", line 289, in download_packages
package_path = self.download_untar_package(package_name=package)
File "/Users/akiel/fhir-populator/.venv/lib/python3.9/site-packages/fhir_populator/populator.py", line 332, in download_untar_package
download_tar_fs.extractall(extract_path)
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tarfile.py", line 2036, in extractall
self.extract(tarinfo, path, set_attrs=not tarinfo.isdir(),
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tarfile.py", line 2077, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name),
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tarfile.py", line 2150, in _extract_member
self.makefile(tarinfo, targetpath)
File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tarfile.py", line 2191, in makefile
with bltn_open(targetpath, "wb") as target:
OSError: [Errno 92] Illegal byte sequence: '/var/folders/gg/_48t_zj16b53c2vl04s52cjr0000gn/T/fhir-populator0j0pw0l2/extract/kbv.basis_1.1.3/package/examples/Patient - Ludger K\udcfdnigstein.json'
The FHIR server is Blaze but it didn't receive any request.