MQT predictor installation #135
-
Facing the issue in ML notebook run cannot import name '_TEMP_BIT_NAME' from 'pytket._tket.circuit |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hey 👋🏻 That's an underlying TKET error that came up in one of the recent versions. Should be resolved by updating your TKET version via
|
Beta Was this translation helpful? Give feedback.
-
Finding difficulty in running ML notebook predictor.plot_eval_histogram(res, filename="RandomForestClassifier", color=color1) Predictor.plot_eval_histogram() got an unexpected keyword argument 'color' any reasons? |
Beta Was this translation helpful? Give feedback.
I can reproduce your error with the following steps
I traced back the issue to the following package version issue:
The above command install
pytket-qiskit 0.39.0
.That package declares a dependency on
pytket~=0.15
.Due to the way dependencies work in Python, this installs
pytket-1.20.1
, when in reality the TKET developers most likely intended to writepytket~=0.15.0
, which would have led topytket-1.15.0
being installed.To resolve the problems you are seeing, you can simply downgrade to a compatible
pytket
version via