-
Notifications
You must be signed in to change notification settings - Fork 162
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: from_id() missing 1 required positional argument: 'service'
in Session.from_id
with 0.15.0
#1228
Comments
In this usage:
|
From the release notes I see this:
How is that a bug fix and not something that goes through a deprecation period first since it's an interface change? |
There seems to be a related regression with this. It used to be that calling I have a very simple test like this: def test_using_arbitrary_session_id_should_fail(service, device):
session_id = 'test_using_arbitrary_session_id_should_fail'
session = Session.from_id(session_id, service, backend=device)
with pytest.raises(Exception) as ex:
run_job(session=session)
# https://internal-docs.quantum-computing.ibm.com/system-architecture/errors.html#c4318
assert '4318' in str(ex) After passing |
It's another regression in 0.15.0, it works fine in 0.14.0:
|
I'll revert the change and do a patch release |
Describe the bug
This code started failing with version 0.15.0:
Steps to reproduce
Call
Session.from_id
without aservice
kwarg.Expected behavior
What worked before should continue to work unless it's a major version breaking change.
Suggested solutions
Support the old interface.
Additional Information
The text was updated successfully, but these errors were encountered: