You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I build the docker image as the instruction. It returns this error after running.
Traceback (most recent call last):
File "./autosub/main.py", line 10, in <module>
from autosub import logger
ModuleNotFoundError: No module named 'autosub'
I think the problem is I didn't have autosub installed in the image. So I add RUN pip3 install . to Dockerfile. Then everything works out fine.
BTW: With this solution, it's also necessary to have COPY README.md ./ in the image. Also, I have to add encoding='utf-8' in with open("README.md", "r") as fh: in setup.py, otherwise it would use ASCII encoding as default in my case.
The text was updated successfully, but these errors were encountered:
I build the docker image as the instruction. It returns this error after running.
I think the problem is I didn't have autosub installed in the image. So I add
RUN pip3 install .
to Dockerfile. Then everything works out fine.BTW: With this solution, it's also necessary to have
COPY README.md ./
in the image. Also, I have to addencoding='utf-8'
inwith open("README.md", "r") as fh:
insetup.py
, otherwise it would use ASCII encoding as default in my case.The text was updated successfully, but these errors were encountered: