-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Cannot install requirements with python 3.8 #29925
Comments
python 3.8 too? I thought this was only a problem in 3.10. We have been using 3.8 and 3.9 for quite some time now, even CI runs on 3.8
ref: #29236 Looks like the fix is already there in upstream development branch, they just need to release it 😐 dimagi/jsonobject#183 |
@ankush interesting, maybe it has to do with differences in the OS or migrating from an earlier python? I installed python3.8 via apt on Ubuntu 18.04, then ran |
I didn't read the full error message before. I am guessing you need devel version of python from Ubuntu repos. Default ones only provide an interpreter, devel package comes with libs necessary to compile packages that have C code. IIRC official docs do mention this somewhere. This issue isn't related to that dependency being unsupported (which is only a problem on 3.10) Closing this for now. |
Thanks @ankush, I was able to fix it. These were roughly the commands I ran: sudo apt install python3.8 python3.8-dev
cd /home/frappe/frappe-bench
# move env to env-old so you can restore it just in case
mv env env-old
# create new env
virtualenv --python python3.8 env
# upgrade pip
env/bin/pip install -U pip
# install apps and requirements
env/bin/pip install -e apps/frappe -e apps/erpnext
# delete env-old (optional)
rm -rf env-old You can add any custom apps to the last line: |
Information about bug
When trying to install erpnext's requirements with python 3.8, I get an error. ERPNext requires
taxjar
, which in turn requiresjsonobject
, which causes the error.Module
other
Version
Frappe: develop
ERPNext: develop (4738367)
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
The text was updated successfully, but these errors were encountered: