Comments (2)
This docker container executing minio install and import is working just fine. Are you sure you are not using some virtualenv, and that the shell and directory has the minio installed?
Actual problem
Your pip "pip 21.2.4 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)" is different from the python you are using. Make sure you are using the same pip/python combination
The easiest solution ✨
just run
import subprocess
import sys
def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
as stated in:
https://stackoverflow.com/a/50255019/3711660
but really, try to uninstall other versions of python to not confuse yourself
Proof that this is working
docker run --rm -it --name minio_test python:3.7-alpine ash -c "pip install minio==7;pip show minio; echo \"from minio import Minio; print('Hello, world ')\" >> ab.py; python ./ab.py"
Useful commands:
pip show minio # check which minio version you are using
pip install minio # install minio
You can also try to run the script directly without using run_create_bucket.sh
by using
pip3 install Minio
python3 ./create_bucket.py
My output
$ docker run --rm -it --name minio_test python:3.7-alpine ash -c "pip install minio==7;pip show minio; echo \"from minio import Minio; print('Hello, world ')\" >> ab.py; python ./ab.py"
Collecting minio==7
Downloading minio-7.0.0-py3-none-any.whl (72 kB)
|████████████████████████████████| 72 kB 662 kB/s
Collecting certifi
Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
|████████████████████████████████| 145 kB 7.5 MB/s
Collecting urllib3
Downloading urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
|████████████████████████████████| 138 kB 7.4 MB/s
Collecting configparser
Downloading configparser-5.0.2-py3-none-any.whl (19 kB)
Installing collected packages: urllib3, configparser, certifi, minio
Successfully installed certifi-2021.5.30 configparser-5.0.2 minio-7.0.0 urllib3-1.26.6
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Name: minio
Version: 7.0.0
Summary: MinIO Python SDK for Amazon S3 Compatible Cloud Storage
Home-page: https://github.com/minio/minio-py
Author: MinIO, Inc.
Author-email: [email protected]
License: Apache License 2.0
Location: /usr/local/lib/python3.7/site-packages
Requires: urllib3, configparser, certifi
Required-by:
Hello, world
from mlflow-docker.
closing since the issue was resolved
from mlflow-docker.
Related Issues (12)
- Multiple docker-compose up runs not needed
- Basic Authentication with CaddyServer is not working for minio store HOT 17
- I think there is no need to expose the db HOT 2
- Jupyter notebook fails storing artifacts HOT 4
- Lets use docker compose depends healthcheck instead of wait-for-it.sh
- Wrong bucket name in mc mb command. HOT 1
- Cannot start mysql container on arm v8 HOT 3
- mysql update request HOT 1
- failed to install in macos m1 HOT 6
- Add optuna to the mix HOT 2
- [Need help] Minio Port 9000 is redirecting to http://localhost:32965/ and not able connect. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlflow-docker.