Closed mayank145678 closed 11 months ago
@KilianPoirier, can you take a look at this?
Hello @mayank145678 ! Thanks for trying out OpenQAOA and raising this issue.
Your error comes from conflicting versions of the package available locally and on PyPI. The version of openqaoa-core
that you installed is in fact outdated.
When you use pip install .
from /openqaoa
, you install the local openqaoa package. Since we separated the package into different plugins, the openqaoa package only specifies the requirements for the installer that will use the plugins versions available on PyPI.
To prevent that from happening, we recommend installing the plugins locally using the Makefile with the command make local-install
. More details are available in README.md
in the section "Install via git clone".
I tested your code using a local install with the Makefile and it works, you should be able to use OpenQAOA from there. Let us know if you face any other problems.
Thank you for the reply. Finally, the issue got resolved. @vishal-ph @KilianPoirier
Description
I've been exploring the
openqaoa
package for solving vehicle routing problems (VRP) and encountered an issue when trying to use thefrom_distance_matrix
method with theVRP
class. I have run the code using colab.Steps to Reproduce
Clone the repository and checkout the
dev
branch:Run the following Python code:
Expected Behavior
I expected to create a
VRP
instance using thefrom_distance_matrix
method.Actual Behavior
I encountered the following error:
Additional Information
I noticed a couple of warnings regarding missing modules (azure and qiskit), but I'm not sure if they are related to this issue.
Any assistance or guidance would be greatly appreciated. Thanks!