Category : python-3.x

Running this script standalone works. Running the script in a Travis CI pipeline fails, however the code still reads the file, identifies the sheetname, but calling the wb with the sheet name just doesn’t work. wb = load_workbook(self.file) print(f"WB_SN_1: {wb.sheetnames}") self.get_merged_cells(wb, "tab1") … def get_merged_cells(self, wb, sheet): try: print(f"SHEET: {sheet} | TYPE: {type(sheet)}") print(f"WB_SN_2: {wb.sheetnames} ..

Read more

I want to set a file direction as a environment variable in docker run command line as follow: docker run -e FILE_DIR=C:UsersxyzDesktopappsample.txt docker_image_name but I get this error: FileNotFoundError: [Errno 2] No such file or directory: ‘C:UsersxyzDesktopappsample.txt’ why docker puts double ?!!! is there any command that I should add such as python for example ..

Read more

I have a problem with my python(python3.8.5) project! I have two docker containers. One is used for the frontend(container2) using flask. There I have a website where I can send requests(package requests) to the second container(backend). In the backend(container1) I have to create a zip file containing multiple file. That part is done. Now the ..

Read more

I am using create_namespaced_pod() of the kubernetes-client package to dynamically create kubernetes pods from docker images that are in an images registry. How do I check if the Docker image exists in the registry before calling create_namespaced_pod()? I want to avoid creating the pod and then having to deal with error messages. Source: Docker..

Read more

wrote a dockerfile. in it, I run the test using module testinfra. image module, which is used in the dockerile FROM alpine:3.11 there is such an error Step 24/27 : RUN py.test /etc/nginx/test/test.py —> Running in 595d6978e9a4 ============================= test session starts ============================== platform linux — Python 3.8.2, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 rootdir: /etc/nginx/test plugins: testinfra-6.2.0 collected ..

Read more