Falldog / pyconcrete

Protect your python script, encrypt it as .pye and decrypt when import it
Apache License 2.0
692 stars 149 forks source link

Example of django doesn't work #99

Closed dotmitsu closed 1 year ago

dotmitsu commented 1 year ago

Hi. I tried to run django example, but it doesn't work. By default it write error that needed python 3.7 or higher. If I change python version if Dockerfile and run-example-django.sh from python3.6 to python 3.7 or 3.8 the process of building the image goes on, but write error ModuleNotFoundError: No module named 'pyconcrete' Please check the example and fix it)) I use Ubuntu 20.04.5 LTS Docker version 20.10.21, build baeda1f

stitrace commented 1 year ago

Can you try to apply that patch on Dockerfile? I think it's resolves your problem with python 3.6.

diff --git a/example/django/Dockerfile b/example/django/Dockerfile
index 73e2688..49ab008 100644
--- a/example/django/Dockerfile
+++ b/example/django/Dockerfile
@@ -26,7 +26,7 @@ RUN set -ex \
         \
     && rm -rf /var/lib/apt/lists/* \
     \
-    && curl https://bootstrap.pypa.io/get-pip.py | python${PY_VER}
+    && curl https://bootstrap.pypa.io/pip/3.6/get-pip.py | python${PY_VER}

 RUN set -ex \
     && mkdir -p /code \
dotmitsu commented 1 year ago

Fix a mistake please in django Readme.md change ./bin/run-example-djnaog.sh to ./bin/run-example-django.sh

dotmitsu commented 1 year ago

@Falldog

dotmitsu commented 1 year ago

@stitrace The patch fixed the problem, thanks