-
I've tried a few times now, and the upgrade just keeps failing during the script on this item: ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/opt/netbox/venv/lib/python3.8/site-packages/markupsafe/init.py) Any assistance is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
The version of MarkupSafe that got installed is probably too new. Try installing an older version of it. Jinja2 2.11.3 requires MarkupSafe >= 0.23, so:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response. I tried that and it didn’t seem to help, same error. I’m going to roll back to the last good one all together and try again.
Christopher Fox
Chief Technology Officer
[cid:IdealIntegrations_ee791edc-fea4-4fa0-a108-e8f88152f341.png]
[cid:CRNSignaturePicture_38d03caa-4d80-481a-bddd-967f309f37f4.png]
Ideal Integrations, LLC | 800 Regis Avenue | Pittsburgh, PA 15236
E-Mail: ***@***.******@***.***> | Phone: 412-349-6680 x1111 | Direct: 412-349-6666
Web: http://www.idealintegrations.net<http://www.idealintegrations.net/> | Service Desk: 412-349-6678 | Fax: 412-349-6670
From: Jeremy Stretch ***@***.***>
Sent: Tuesday, March 29, 2022 12:16 PM
To: netbox-community/netbox ***@***.***>
Cc: Christopher Fox ***@***.***>; Author ***@***.***>
Subject: Re: [netbox-community/netbox] Error Trying To Update To Version 2.11 from 2.10.8 (Discussion #8990)
The version of MarkupSafe that got installed is probably too new. Try installing an older version of it. Jinja2 2.11.3 requires MarkupSafe >= 0.23, so:
pip install MarkupSafe==0.23
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_netbox-2Dcommunity_netbox_discussions_8990-23discussioncomment-2D2463063&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=PW4ibJPYfgYjNLfMBx4JFyBbMCpe3TkYKIpTx4a82j4&m=QNM9giwvSiP-9iReySUHVJudJZ_4i4IUzI7QFfF29fQ&s=frRXkhX0O12dfYkD7UOJmO_gq8CxtzYigo5n2mOtieA&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ACB6MDH7SXDKYCYQ6UVPP3TVCMUCVANCNFSM5R64F76A&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=PW4ibJPYfgYjNLfMBx4JFyBbMCpe3TkYKIpTx4a82j4&m=QNM9giwvSiP-9iReySUHVJudJZ_4i4IUzI7QFfF29fQ&s=JkRMdUieMjm6Ciddv65U16uKoLKa65_k4kxRF8Pioac&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
…________________________________
This email has been scanned for spam and viruses by Proofpoint Essentials. Click here<https://us1.proofpointessentials.com/index01.php?mod_id=11&mod_option=logitem&mail_id=1648570543-Fsfwdpi7zZf8&r_address=cfox%40idealintegrations.net&report=1> to report this email as spam.
________________________________
PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
|
Beta Was this translation helpful? Give feedback.
-
Yeah, I rolled back to the clean version we have been using for months (2.10.8) and the install fails with the same error on that one too.
Christopher Fox
Chief Technology Officer
[cid:IdealIntegrations_ee791edc-fea4-4fa0-a108-e8f88152f341.png]
[cid:CRNSignaturePicture_8c522958-4489-4c6c-adfa-6bfcddbddd19.png]
Ideal Integrations, LLC | 800 Regis Avenue | Pittsburgh, PA 15236
E-Mail: ***@***.******@***.***> | Phone: 412-349-6680 x1111 | Direct: 412-349-6666
Web: http://www.idealintegrations.net<http://www.idealintegrations.net/> | Service Desk: 412-349-6678 | Fax: 412-349-6670
From: Jeremy Stretch ***@***.***>
Sent: Tuesday, March 29, 2022 12:16 PM
To: netbox-community/netbox ***@***.***>
Cc: Christopher Fox ***@***.***>; Author ***@***.***>
Subject: Re: [netbox-community/netbox] Error Trying To Update To Version 2.11 from 2.10.8 (Discussion #8990)
The version of MarkupSafe that got installed is probably too new. Try installing an older version of it. Jinja2 2.11.3 requires MarkupSafe >= 0.23, so:
pip install MarkupSafe==0.23
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_netbox-2Dcommunity_netbox_discussions_8990-23discussioncomment-2D2463063&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=PW4ibJPYfgYjNLfMBx4JFyBbMCpe3TkYKIpTx4a82j4&m=QNM9giwvSiP-9iReySUHVJudJZ_4i4IUzI7QFfF29fQ&s=frRXkhX0O12dfYkD7UOJmO_gq8CxtzYigo5n2mOtieA&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ACB6MDH7SXDKYCYQ6UVPP3TVCMUCVANCNFSM5R64F76A&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=PW4ibJPYfgYjNLfMBx4JFyBbMCpe3TkYKIpTx4a82j4&m=QNM9giwvSiP-9iReySUHVJudJZ_4i4IUzI7QFfF29fQ&s=JkRMdUieMjm6Ciddv65U16uKoLKa65_k4kxRF8Pioac&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
…________________________________
This email has been scanned for spam and viruses by Proofpoint Essentials. Click here<https://us1.proofpointessentials.com/index01.php?mod_id=11&mod_option=logitem&mail_id=1648570543-Fsfwdpi7zZf8&r_address=cfox%40idealintegrations.net&report=1> to report this email as spam.
________________________________
PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
|
Beta Was this translation helpful? Give feedback.
-
Here’s the whole chunk of where it fails:
Applying database migrations (python3 netbox/manage.py migrate)...
Traceback (most recent call last):
File "netbox/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 377, in execute
django.setup()
File "/opt/netbox/venv/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/opt/netbox/venv/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/netbox/netbox/circuits/models.py", line 6, in <module>
from dcim.models import CableTermination, PathEndpoint
File "/opt/netbox/netbox/dcim/models/__init__.py", line 1, in <module>
from .cables import *
File "/opt/netbox/netbox/dcim/models/cables.py", line 15, in <module>
from extras.models import ChangeLoggedModel, CustomFieldModel, TaggedItem
File "/opt/netbox/netbox/extras/models/__init__.py", line 1, in <module>
from .change_logging import ChangeLoggedModel, ObjectChange
File "/opt/netbox/netbox/extras/models/change_logging.py", line 8, in <module>
from utilities.utils import serialize_object
File "/opt/netbox/netbox/utilities/utils.py", line 9, in <module>
from jinja2 import Environment
File "/opt/netbox/venv/lib/python3.8/site-packages/jinja2/__init__.py", line 12, in <module>
from .environment import Environment
File "/opt/netbox/venv/lib/python3.8/site-packages/jinja2/environment.py", line 25, in <module>
from .defaults import BLOCK_END_STRING
File "/opt/netbox/venv/lib/python3.8/site-packages/jinja2/defaults.py", line 3, in <module>
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "/opt/netbox/venv/lib/python3.8/site-packages/jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/opt/netbox/venv/lib/python3.8/site-packages/markupsafe/__init__.py)
Christopher Fox
Chief Technology Officer
[cid:IdealIntegrations_ee791edc-fea4-4fa0-a108-e8f88152f341.png]
[cid:CRNSignaturePicture_8c522958-4489-4c6c-adfa-6bfcddbddd19.png]
Ideal Integrations, LLC | 800 Regis Avenue | Pittsburgh, PA 15236
E-Mail: ***@***.******@***.***> | Phone: 412-349-6680 x1111 | Direct: 412-349-6666
Web: http://www.idealintegrations.net<http://www.idealintegrations.net/> | Service Desk: 412-349-6678 | Fax: 412-349-6670
From: Jeremy Stretch ***@***.***>
Sent: Tuesday, March 29, 2022 12:16 PM
To: netbox-community/netbox ***@***.***>
Cc: Christopher Fox ***@***.***>; Author ***@***.***>
Subject: Re: [netbox-community/netbox] Error Trying To Update To Version 2.11 from 2.10.8 (Discussion #8990)
The version of MarkupSafe that got installed is probably too new. Try installing an older version of it. Jinja2 2.11.3 requires MarkupSafe >= 0.23, so:
pip install MarkupSafe==0.23
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_netbox-2Dcommunity_netbox_discussions_8990-23discussioncomment-2D2463063&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=PW4ibJPYfgYjNLfMBx4JFyBbMCpe3TkYKIpTx4a82j4&m=QNM9giwvSiP-9iReySUHVJudJZ_4i4IUzI7QFfF29fQ&s=frRXkhX0O12dfYkD7UOJmO_gq8CxtzYigo5n2mOtieA&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ACB6MDH7SXDKYCYQ6UVPP3TVCMUCVANCNFSM5R64F76A&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=PW4ibJPYfgYjNLfMBx4JFyBbMCpe3TkYKIpTx4a82j4&m=QNM9giwvSiP-9iReySUHVJudJZ_4i4IUzI7QFfF29fQ&s=JkRMdUieMjm6Ciddv65U16uKoLKa65_k4kxRF8Pioac&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
…________________________________
This email has been scanned for spam and viruses by Proofpoint Essentials. Click here<https://us1.proofpointessentials.com/index01.php?mod_id=11&mod_option=logitem&mail_id=1648570543-Fsfwdpi7zZf8&r_address=cfox%40idealintegrations.net&report=1> to report this email as spam.
________________________________
PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
|
Beta Was this translation helpful? Give feedback.
-
You need to activate the virtual environment before installing the package.
|
Beta Was this translation helpful? Give feedback.
-
Seems we were able to upgrade right from the Git fork without any issues. I can consider this resolved now - thank you for the comments and feedback! |
Beta Was this translation helpful? Give feedback.
-
This is unfortunately still not working. Same error as before.
Christopher Fox
Chief Technology Officer
[cid:IdealIntegrations_ee791edc-fea4-4fa0-a108-e8f88152f341.png]
[cid:CRNSignaturePicture_38d03caa-4d80-481a-bddd-967f309f37f4.png]
Ideal Integrations, LLC | 800 Regis Avenue | Pittsburgh, PA 15236
E-Mail: ***@***.******@***.***> | Phone: 412-349-6680 x1111 | Direct: 412-349-6666
Web: http://www.idealintegrations.net<http://www.idealintegrations.net/> | Service Desk: 412-349-6678 | Fax: 412-349-6670
From: Jeremy Stretch ***@***.***>
Sent: Tuesday, March 29, 2022 1:04 PM
To: netbox-community/netbox ***@***.***>
Cc: Christopher Fox ***@***.***>; Author ***@***.***>
Subject: Re: [netbox-community/netbox] Error Trying To Update To Version 2.11 from 2.10.8 (Discussion #8990)
You need to activate the virtual environment before installing the package.
source /opt/netbox/venv/bin/activate
pip install MarkupSafe==0.23
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_netbox-2Dcommunity_netbox_discussions_8990-23discussioncomment-2D2463504&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=PW4ibJPYfgYjNLfMBx4JFyBbMCpe3TkYKIpTx4a82j4&m=H-kElYhBJj99vE9TYsUDrXGHjlXtjZSMdCFDghoO09M&s=Xyu1ml-lnMnSpKBgoSgzov79QjdneXMiLoS7RSVMcqQ&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ACB6MDB6LAMKZNLMPA2FEELVCMZWXANCNFSM5R64F76A&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=PW4ibJPYfgYjNLfMBx4JFyBbMCpe3TkYKIpTx4a82j4&m=H-kElYhBJj99vE9TYsUDrXGHjlXtjZSMdCFDghoO09M&s=hEn0jcWMeRudNAAy8ly4Q5KO9vzsSSNXqfi1XaPMmRM&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
…________________________________
This email has been scanned for spam and viruses by Proofpoint Essentials. Click here<https://us1.proofpointessentials.com/index01.php?mod_id=11&mod_option=logitem&mail_id=1648573420-H473LpFFbUAH&r_address=cfox%40idealintegrations.net&report=1> to report this email as spam.
________________________________
PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
|
Beta Was this translation helpful? Give feedback.
Seems we were able to upgrade right from the Git fork without any issues. I can consider this resolved now - thank you for the comments and feedback!