skip to Main Content

Debian – Convert text file that contains colon to json

Existing Code import json filename = 'thunar-volman/debian/control' dict1 = {} with open(filename) as fh: for line in fh: print(line) command, description = line.strip().split(': ') print(command) print(description) dict1[command.strip()] = description.strip() with open("test.json", "w") as out_file: json.dump(dict1, out_file, indent=4, sort_keys = False)…

VIEW QUESTION

docker build exactly same requirements.txt & Dockerfile, 4 weeks ago success, but currently failed

Steps to reproduce the failure. Docker version 24.0.2 Python version in container 3.10.9 see base image requirements.txt pycurl==7.45.1 delta==0.4.2 fiftyone==0.21.0 filetype==1.2.0 Flask==2.2.2 kfp==1.8.19 kfp_pipeline_spec==0.1.16 numpy==1.23.5 pandas==1.5.2 Pillow==9.4.0 pyspark==3.3.2 requests==2.28.1 shortuuid==1.0.11 ultralytics==8.0.109 cvat_sdk==2.4.4 onnxruntime==1.14.1 PyJWT==2.7.0 bcrypt==4.0.1 email-validator==2.0.0.post2 decorator==5.1.1 Flask-Admin==1.5.8 Flask-CAS==1.0.2 Flask-Cors==3.0.10…

VIEW QUESTION
Back To Top
Search