Installing Docker in Windows gives an error (bad image) - python

I had to install the latest version of the Docker on Windows and I am getting some error as follow:
When I close the error and procced with installation the docker does not start. My system previously had docker installed and was working fine (no issues with WSL or Windows version). The reason to install the latest version of docker is because of the error described here.
Has anybody faced similar issue and how to resolve it?
What is rtutils.dll? and what it has to do with Bad Image?

Related

Python: Showing unmet dependencies error and broken packages error despite not having any such packages

We were trying to run a shell script for installing prerequistes(install_prerequistes_onnx.sh) for OpenVINO Model Optimizer but we got the following error:
The Error
We tried resolving it using python 3.6.7 in a virtual environment(tsc). But it was of no use. Also we do not have any broken packages(we checked for them explicitly) but it still shows "unable to correct problems, you have held broken packages".
Can anyone explain the last three lines of the error? Also what does "error in line 78" imply, since our notebook was running fine before incorporating OpenVINO.
PS: We are using Ubuntu 18.04.
Please ensure that you’ve installed external software dependencies.
You may refer to this link for the installation:
https://docs.openvinotoolkit.org/2021.3/openvino_docs_install_guides_installing_openvino_linux.html#install-external-dependencies
For your virtual environment, the broken packages error that you’re facing is due to the Python’s dependency package version is not available on your system.
Try with this command: sudo apt update && sudo apt upgrade
If the issue still persists, you may need to re-install Python.

File already exists in database error from Protobuf when deploying Google Dataflow template after MacOS Catalina upgrade

I have a project that uses Google Dataflow. I have been successfully using the following command (and commands like it) for months to deploy templates.
.venv/bin/python -m dataflow.registry_files.delimited_file --runner=DataflowRunner --region=us-central1 --project=myproject --staging_location=gs://mybucket-staging/staging/gr265 --template_location=gs://mybucket-code/templates/gr265 --temp_location=gs://mybucket-staging/temp/gr265 --no_use_public_ips --save_main_session --setup_file=dataflow/setup.py --projectId=myproject --datasetId=padl_staging --tableId=gr265 --configFile=gs://mybucket-code/registry/registry_files.yaml --fileType=gr265
This command continues to work on windows 10 and Debian machines in my team.
Since I upgraded to catalina (10.15.1, with python 3.7.5 and apache-beam==2.16.0 ) I get the following error:
[libprotobuf ERROR google/protobuf/descriptor_database.cc:58] File already exists in database:
[libprotobuf FATAL google/protobuf/descriptor.cc:1370] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
Abort trap: 6
I have done all of the following, with many reboots:
Run xcode-select --install
Run brew update-reset, brew update, brew upgrade, and brew reinstall python all to no effect (except after brew update-reset, brew doctor works again)
Run brew uninstall protobuf and brew install protobuf
Run pip3 uninstall protobuf outside of the virtual environments
Deleted and re-created my virtual environments from their requirements files.
Several bits of voodoo involving /usr/local/include that I located elsewhere on stack overflow that didn't help.
I wondered if this was just my machine, and unfortunately was able to reproduce it on the other macOS Catalina laptop in my team, but not the laptop still running macOS Mojave.
According with the Apache Beam Issue 8368 this issue is related with a pyarrow version, you have to test with pyarrow 0.15.1 beam since is the one which works on MacOS 10.15 as is mentioned in this link.
Please let us know how it works.
I just leave it here, because it is a common problem has not resolved by maintainers and I didn't found the closest convenient solution in the time.
https://github.com/protocolbuffers/protobuf/issues/1941
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=721791;filename=protobuf-2.4.1-3.1.debdiff;msg=5
The patch actually quite does not help, because in the next step the protobuf does hang in the Run function and call does not return.
The closest solution for myself was to completely avoid of any double linkage with the protobuf at any cost.

Issue installing dlib python package on 16.04 Ubuntu server

I have an issue with installing python packages before deploying my web application . So i'm stuck with the installation of dlib. I had several other issues when i tried installing it but this is the latest one .
I tried installing from the officiel github repo and directly with python pip and with different versions . I reinstalled python and i installed all the required dependencies but still stuck with the same error .
The server is running Ubuntu 16.04 (1 GB ram ).
Thanks.
error that i get when i run dlib installation

How to fix Illegal Instruction: 4 when trying to run a python file in MacOS?

I am trying to install dlib and run the code from here.
After installing dlib when I execute the line
python detect_face_features.py --shape-predictor shape_predictor_68_face_landmarks.dat --image images/image_1.jpg
I get the error
Illegal instruction: 4
I tried creating a virtual environment first and install dlib and opencv. The files get imported but on running the code on python I get the same error. I clean installed it on my root environment but still the same error. I can't figure out what library or file is broken as other python files work as expected.
I am working on MacOS 10.11.6 with XCode version 8.2.1
I installed the dlib with reference to this site.
Please tell me how to fix this. Thank you.
Edit: My MacBook is of mid 2010 build and it doesn't have AVX instructions built into it. I tried installing dlib again by explicitly switching off AVX instructions but the problem still persists.
sudo python3 setup.py install --no USE_AVX_INSTRUCTIONS
I also tried this solution but couldn't find the line
set(USE_SSE4_INSTRUCTIONS ON CACHE BOOL "Use SSE4 instructions")
on dlib's path tools/python/CMakeLists.txt
Please tell me how can I fix this issue.
Thank You.

How to install EB CLI on Windows?

I have used the entire day trying to install EB CLI on windows in order to connect to AWS Elastic Beanstalk but I keep getting the same error:
Running setup.py install for docker-py
Could not find .egg-info directory in install record for docker-py>=1.1.0 <=1.7.2 (from awsebcli)
I started out with the latest version of Python but after reading of other users issues on Stack Overflow I decided to downgrade my Python version to 3.4.0. However, I still get the same error, meaning that I cannot do EB init to connect to my Elastic Beanstalk instance since it does not recognise the command.
I also tried to un-install docker-py and re-install it - still not working.
Any ideas to what I am doing wrong?
It looks as if you may have version conflicts. See a similar issue here
Try installing awsebcli in a virtual environment, as suggested by the aws docs.

Categories

Resources