-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named 'minio' #8
Comments
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 problemYour 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: but really, try to uninstall other versions of python to not confuse yourself Proof that this is workingdocker 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:
You can also try to run the script directly without using pip3 install Minio
python3 ./create_bucket.py My output
|
closing since the issue was resolved |
Hi.
How i try bash ./run_create_bucket.sh after docker-compose up -d, i see trourble
Traceback (most recent call last):
File "./create_bucket.py", line 3, in
from minio import Minio
ModuleNotFoundError: No module named 'minio'
I try another minio version, lates, 6, 7 - trouble repeat.
My ENV
Python 3.7.3
pip 21.2.4 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
CentOS Linux release 7.9.2009 (Core)
minio 7.0.0
Docker version 18.06.0-ce, build 0ffa825
docker-compose version 1.29.2, build 5becea4c
The text was updated successfully, but these errors were encountered: