Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Example doesn't work, and minor installation issue #9

Closed
PallHaraldsson opened this issue Mar 28, 2022 · 1 comment
Closed

Example doesn't work, and minor installation issue #9

PallHaraldsson opened this issue Mar 28, 2022 · 1 comment

Comments

@PallHaraldsson
Copy link

PallHaraldsson commented Mar 28, 2022

I had to do manually (also to "fix" ToQUBO.jl):

(@v1.9) pkg> conda add dwave-neal

Then:

julia> model = Model(SimulatedAnnealing.Optimizer)
ERROR: UndefVarError: SimulatedAnnealing not defined

However the full "Simple Example" at ToQUBO did work including:

julia> model = Model(() -> ToQUBO.Optimizer(Anneal.SimulatedAnnealer.Optimizer))

I have no need for these packages, just checking how far I get with packages depending on PythonCall.jl.

@pedromxavier
Copy link
Contributor

Thanks @PallHaraldsson for trying it out! There was a typo in the example. The installation issue is under investigation in #7 and JuliaPy/PythonCall.jl#136 has a brief discussion about it, including some workaround methods.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants