Skip to content
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

Alpine Linux: ModuleNotFoundError: No module named 'reloadium.corium' #163

Open
braddotcoffee opened this issue Sep 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@braddotcoffee
Copy link

braddotcoffee commented Sep 8, 2023

Describe the bug

reloadium run fails with ModuleNotFoundError: No module named 'reloadium.corium' when running as a standalone app on Alpine Linux via a Docker container. Python version is 3.11.

To Reproduce

The full use case is for use with hot-reloading in a docker-compose dev environment, but a minimal reproduction is below:

  1. Create a test python file test.py
def hello_world():
    print("Hello, world!")
  1. Create Docker image using python:3.11.0-alpine image
FROM python:3.11.0-alpine

ENV PIP_ROOT_USER_ACTION=ignore
RUN pip install --upgrade pip
RUN pip install reloadium

ADD test.py /
ENV RW_DEBUG=True

ENTRYPOINT ["reloadium", "run", "test.py"]
docker build . -t test-reloadium
  1. Start Docker container and see error
$ docker run test-reloadium
It seems like your platform or Python version are not supported yet.
Windows, Linux, macOS and Python 64 bit >= 3.7 (>= 3.9 for M1) <= 3.11 are currently supported.
Please submit a github issue if you believe Reloadium should be working on your system at
https://github.com/reloadware/reloadium
To see the exception run Reloadium with environmental variable RW_DEBUG=True
Traceback (most recent call last):
  File "/usr/local/bin/reloadium", line 5, in <module>
    from reloadium import start
  File "/usr/local/lib/python3.11/site-packages/reloadium/__init__.py", line 4, in <module>
    pre_import_check()
  File "/usr/local/lib/python3.11/site-packages/reloadium/__utils__.py", line 24, in pre_import_check
    import reloadium.corium
ModuleNotFoundError: No module named 'reloadium.corium'

Expected behavior

Reloadium should run the file.

Desktop or remote (please complete the following information):**

  • OS: Alpine Linux
  • OS version: Alpine 3.17 python3.11.0-alpine Docker Image
  • M1 chip: No
  • Reloadium package version: 1.2.1
  • PyCharm plugin version: None
  • Editor: N/A
  • Python Version: 3.11.0
  • Python Architecture: 64bit
  • Run mode: Run

Additional context

I'm not positive if this is a bug or this is just not supported. I'd love to be able to use this project for hot reloading with docker compose, but cannot figure out what this missing module might be. Thanks for any help!

@dkrystki dkrystki added the enhancement New feature or request label Sep 9, 2023
@dkrystki
Copy link
Contributor

dkrystki commented Sep 9, 2023

Hey @braddotcoffee
Thanks for trying out Reloadium! Alpine docker images are currently not supported but I'm planning to add this in the future.
I'll keep this ticket open until it's added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants