-
Notifications
You must be signed in to change notification settings - Fork 44
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
Strange import failure on RHEL 7 #887
Comments
thanks for the report @capn-freako . ref enable/enable/savage/svg/pathdata.py Lines 36 to 43 in 78d2e49
|
Can I ask whether this behaviour persists if you downgrade |
I don't see anything in version 3 of |
Okay, thanks!
I’ve asked the engineer I’m working with to fall back to v2.4.7 of pyparsing and report back.
In the meantime, is it possible that `name` became a read-only property of pyparsing with the release of version 3?
Thanks,
-db
… On Nov 8, 2021, at 10:32 AM, Poruri Sai Rahul ***@***.***> wrote:
RHEL: 3.0.4
I don't see anything in version 3 of pyparsing which might be causing this issue - https://pyparsing-docs.readthedocs.io/en/latest/whats_new_in_3_0_0.html <https://pyparsing-docs.readthedocs.io/en/latest/whats_new_in_3_0_0.html>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#887 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAH7XGT2B56RFM6MBPY6WPTUK6KMPANCNFSM5HOOZBUQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Spot on.
|
fixes #887 This PR fixes an issue because of an upstream change with the pyparsing CaselessLiteral class, where the name attribute became a read-only property in version >= 3. We now use the new public set_name method instead of directly setting the attribute.
@capn-freako #888 should fix the issue. Will you be able to test the fix? |
* FIX : Fix issue with pyparsing version >= 3 fixes #887 This PR fixes an issue because of an upstream change with the pyparsing CaselessLiteral class, where the name attribute became a read-only property in version >= 3. We now use the new public set_name method instead of directly setting the attribute. * FIX : Handle pyparsing versions 2 and 3 accordingly the new set_name API is only available on pyparsing version >= 3 so we use packaging to handle the behavior according to the version this commit makes packaging a dependency of the svg backend and this commit adds a regression test modified: enable/__init__.py modified: enable/savage/svg/pathdata.py modified: enable/savage/svg/tests/test_pathdata.py * REF : Go with a simpler solution of checking for the method name instead of manually parsing and checking the pyparsing version and calling the relevant method depending on the version, we simply check for the existence of the set_name method now and use it if it exists. If it doesnt, we fall back to the old setName method The dependence of packaging has now been removed because we dont need to parse the version anymore modified: enable/__init__.py modified: enable/savage/svg/pathdata.py
* FIX : Fix issue with pyparsing version >= 3 fixes #887 This PR fixes an issue because of an upstream change with the pyparsing CaselessLiteral class, where the name attribute became a read-only property in version >= 3. We now use the new public set_name method instead of directly setting the attribute. * FIX : Handle pyparsing versions 2 and 3 accordingly the new set_name API is only available on pyparsing version >= 3 so we use packaging to handle the behavior according to the version this commit makes packaging a dependency of the svg backend and this commit adds a regression test modified: enable/__init__.py modified: enable/savage/svg/pathdata.py modified: enable/savage/svg/tests/test_pathdata.py * REF : Go with a simpler solution of checking for the method name instead of manually parsing and checking the pyparsing version and calling the relevant method depending on the version, we simply check for the existence of the set_name method now and use it if it exists. If it doesnt, we fall back to the old setName method The dependence of packaging has now been removed because we dont need to parse the version anymore modified: enable/__init__.py modified: enable/savage/svg/pathdata.py
* Fix svg backend issue with pyparsing version >= 3 (#888) * FIX : Fix issue with pyparsing version >= 3 fixes #887 This PR fixes an issue because of an upstream change with the pyparsing CaselessLiteral class, where the name attribute became a read-only property in version >= 3. We now use the new public set_name method instead of directly setting the attribute. * FIX : Handle pyparsing versions 2 and 3 accordingly the new set_name API is only available on pyparsing version >= 3 so we use packaging to handle the behavior according to the version this commit makes packaging a dependency of the svg backend and this commit adds a regression test modified: enable/__init__.py modified: enable/savage/svg/pathdata.py modified: enable/savage/svg/tests/test_pathdata.py * REF : Go with a simpler solution of checking for the method name instead of manually parsing and checking the pyparsing version and calling the relevant method depending on the version, we simply check for the existence of the set_name method now and use it if it exists. If it doesnt, we fall back to the old setName method The dependence of packaging has now been removed because we dont need to parse the version anymore modified: enable/__init__.py modified: enable/savage/svg/pathdata.py * Test on ubuntu-18.04, not 16.04 (#889) * FIX : Test on ubuntu-18.04, not 16.04 ubuntu-16.04 is no longer available on GitHub Actions CI * FIX : Use ubuntu-latest instead of ubuntu-18.04 * FIX : Use ubuntu-18.04 with the right package repository modified: .github/workflows/test-with-edm.yml modified: ci/edmtool.py * FIX : Install libsdl2-dev using the ubuntu package manager modified: .github/workflows/test-with-edm.yml * FIX : Use libsdl1.2, not libsdl2 modified: .github/workflows/test-with-edm.yml
Hi @rahulporuri , Sorry for the delay. Thanks! |
Since updating my
enable
installation to5.2.1
, via building from source, I'm getting the following strange import error, only on RHEL 7. I don't get this error when running under MacOS.The text was updated successfully, but these errors were encountered: