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

Reading json from iso file #119

Open
elungu3 opened this issue Nov 11, 2023 · 0 comments
Open

Reading json from iso file #119

elungu3 opened this issue Nov 11, 2023 · 0 comments

Comments

@elungu3
Copy link

elungu3 commented Nov 11, 2023

Hello @clalancette , @zekaizer , @ticky ,
I've been trying to read/load data from a json within an iso file. Using listchildren method I can see that the file is there, but I cannot do any operation on it. I've been trying to use some of your examples:

with iso.open_file_from_iso(iso_path='/myfile.json') as infp:
json_data = json.loads(infp)
# Assuming the JSON data is in UTF-8 encoding
json_content = json_data.decode('utf-8')
print(json_content)
iso.close()

but I get: pycdlib.pycdlibexception.PyCdlibInvalidInput: Could not find path
even tho if I extract files from the iso I have myfile.json in the root.

As extra info, I have an iso file that has 3 files within, one of them being a json file from which I need to extract data without extract all the files if possible.

Please advise :(

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

1 participant