1

I'm learning with python and I can't find a working solution for my question. I have some .xml files in .7z file. I want to read the .xml files with python but I can't extract them on disk. I tried this with lzma.open('test.7z', 'r') as lf: but it gaves me "AttributeError: 'module' object has no attribute 'open'". This looked as a good solution, but I don't have py7zlib on a server, where the script has to works. But I can ask an admin to install it. Anyway I can't find anywhere, which solution would work for this. I googled for more than one hour, sunk in a deep water of google and found nothing. I'll be glad for every answer. If I badly described my problem, I'll try better but I'm not a native english speaker so my vocabulary isn't infinite. Thanks

Community
  • 1
  • 1
D. Pol
  • 11
  • 2

0 Answers0