aaPanel_Kern
For me, I tried this also, this does not help me at all (Error Permissions or Directory Not Found). python_manager
does not allow me to install python module into the project's directory itself.
When initialize the python modules through requirements.txt
, the module will install into default site-packages folder at /www/server/python_manager/versions/3.12.0/lib/python3.12/site-packages/
.
However, the binary file also not initialized into the /bin/
folder of the same directory. I also created the binary file using the module file using this code
#!/www/server/python_manager/versions/3.12.0/bin/python3.12
# -*- coding: utf-8 -*-
import re
import sys
from MODULE_NAME.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
Then, I copied the module folder and its binary file from the above directory. After, Paste them into my Django Project Directory at:
/www/wwwroot/mydomain.tld/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_venv/lib/python3.12/site-packages/
for the module folders.
/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/bin/
for the module binary files.
When starting project, I got some permission issues at startup file too. After click Fix on folder permission at /www/wwwroot/mydomain.tld/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_venv/
, My Django Project started.
I figured this out as so much headache for around 3 days the first time. This issue happens since my aapanel v6.8.x to current version now. I hope aaPanel could fix this.