Support Abaqus 2021 Python 2.7 Windows compatibility#2
Open
hp283260133-bit wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR builds on the latest upstream structure and keeps the new setup flow, root package layout, automatic GUI plugin installation, and renamed MCP tools.
It adds compatibility fixes for Abaqus/CAE 2021 and other Abaqus versions that still run Python 2.7 inside the GUI/kernel process.
Changes
Queue,SocketServer,TimeoutError,basestring, AST key parsing, compiled-code execution, and stream redirection.ensure_ascii=True, reducing timeout symptoms from truncated response files.multiprocessing.cpu_count()fallback where Abaqus Python lacksos.cpu_count().job.setValues(...)beforejob.submit(...)for better Abaqus API compatibility.docs/upstream-v2-optimization-notes.mddocumenting the optimization rationale and validation target.Validation
Validated locally on Windows with Abaqus Python available:
The compatibility work is based on real usage with Abaqus/CAE 2021, including model creation, solving, post-processing, and report generation through the MCP bridge.
Note: this replaces the earlier PR opened from
abaqus-2021-python27-compat-v2; the branch was renamed to make its purpose clearer.