Skip to content
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

TypeError: AbqpyCLI.cae() got an unexpected keyword argument 'startup' #5579

Closed
haiiliin opened this issue Mar 22, 2024 · 1 comment · Fixed by #5575
Closed

TypeError: AbqpyCLI.cae() got an unexpected keyword argument 'startup' #5579

haiiliin opened this issue Mar 22, 2024 · 1 comment · Fixed by #5575
Labels
2020 bug Something isn't working Python 3.10 Python 3.10 test typing Typing version

Comments

@haiiliin
Copy link
Owner

Hello everyone, I'm new to Github (first time).
I'm writting this beacause i think i encontered a bug so i'd like to report it.
I explain.

I installed abqpy-2020.7.1 (with abaqus2020 and python 3.10.11).

when i want to launch my code (code below) i have the following error :
"""
The script will be submitted to Abaqus next and the current Python session will be closed.
Traceback (most recent call last):
File "worspace_path\test.py", line 1, in
from abaqus import mdb
File "C:\Users\user_name\AppData\Local\Programs\Python\Python310\lib\site-packages\abaqus_init_.py", line 7, in
run(cae=True)
File "C:\Users\user_name\AppData\Local\Programs\Python\Python310\lib\site-packages\abqpy\run.py", line 48, in run
abaqus.cae(filePath, *sys.argv[1:], **config.cae.model_dump())
TypeError: AbqpyCLI.cae() got an unexpected keyword argument 'startup'
"""

I also tried with another version of abqpy-2020 (6.2) and it worked perfectly.

The cae function (from abqpy>cli.py>class AbqpyCLI) has not 'startup' in its keywords (in both versions). So the problem could come from one of the inputs of "abaqus.cae(filePath, *sys.argv[1:], **config.cae.model_dump())" but my knowledge stops here.

I hope it helps.
Have a great day,
Théo

all is executed on an offline windows 10

Python code : test.py

from abaqus import mdb

job = mdb.JobFromInputFile('job_name', 'job_name.inp')
job.submit()
job.waitForCompletion()

More Things related

py file executed in vscode
results from pip list :
abqpy 2020.7.1
auto-all 1.4.1
fire 0.6.0
pip 23.0.1
pydantic 1.10.14
setuptools 65.6.3
six 1.16.0
termcolor 2.4.0
typeguard 4.1.5
typing_extensions 4.10.0

Originally posted by @thelongip in #146 (comment)

@issuelabeler issuelabeler bot added 2020 bug Something isn't working Python 3.10 Python 3.10 test typing Typing version labels Mar 22, 2024
@haiiliin
Copy link
Owner Author

haiiliin commented Mar 22, 2024

The bug is introduced in abqpy version 20**.7.1 (#5492) and will be fixed in 20**.7.2 (#5575)

@haiiliin haiiliin linked a pull request Mar 22, 2024 that will close this issue
@haiiliin haiiliin pinned this issue Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2020 bug Something isn't working Python 3.10 Python 3.10 test typing Typing version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant