Confirm AWS plugin packaging bug
FyzHsn opened this issue · 2 comments
FyzHsn commented
Acceptance criteria:
- Using a docker environment, pip install covalent-aws-plugins.
- In a python file, check that with only this pip install, you're able to import the following aws executors: batch, ecs, lambda, braket, ec2
- Leave a comment confirming that the bug was reproduced (or not).
- Copy paste the docker file and python script for future use in this issue.
scottwn commented
- Build an image using this Dockerfile, e.g.
cd tests/functional_tests
docker build -t covalent-plugin-testing .
- Log into the container
docker run --rm -it --entrypoint bash covalent-plugin-testing
- Install
covalent-aws-plugins
for the branch you want to test
cd covalent-aws-plugins
git checkout my-branch
python3.8 setup.py sdist
pip install dist/*.tar.gz
- open a Python shell
python3.8
- attempt to import the executors
>>> from covalent.executor import AWSBatchExecutor
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'AWSBatchExecutor' from 'covalent.executor' (/usr/local/lib/python3.8/dist-packages/covalent/executor/__init__.py)
FyzHsn commented
These instructions worked for me! Thanks Scott. Closing this issue.
Also, I found the same results for Conda as expected.