dwave-examples / mvrp

Capacitated Vehicle Routing Problem example on D-Wave's hybrid solvers.
Apache License 2.0
4 stars 3 forks source link

Dev Container Failed #20

Open gzquse opened 1 month ago

gzquse commented 1 month ago

Hi team,

I was trying to set up the app in the container. We currently encountered the error of "fiona>=1.8.21 package"

The demo was proceeded after authorized successfully.

here is the output:

Collecting fiona>=1.8.21 (from geopandas<0.15,>=0.12->osmnx>=1.9.1->-r requirements.txt (line 4))
  Using cached fiona-1.10.1.tar.gz (444 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [2 lines of output]
      WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config'
      CRITICAL:root:A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
ocean-dev /workspaces/mvrp $ 
gzquse commented 1 month ago

lower bound set to latest known working version

may (likely) works with older versions as well

dwave-ocean-sdk>=7.1.0 osmnx>=1.9.1 matplotlib~=3.0 mapclassify>=2.6.0 folium==0.15.1 scipy>=1.10.1,<2 dash[diskcache]==2.15.0

thisac commented 1 month ago

Hello @gzquse. Did you set up the container using the included .devcontainer config? Could you otherwise provide some details on which OS you're using as well as Python version and installation/container-setup?

The demo was proceeded after authorized successfully.

Could you clarify what you mean by this? Are you able to run the demo fine?

gzquse commented 1 month ago

Hi, this is my steps:

  1. start a dev container in VsCode default settings:

    // For format details, see https://aka.ms/devcontainer.json. For config options, see the
    // README at: https://github.com/devcontainers/templates/tree/main/src/debian
    {
    "name": "Ocean Development Environment",
    
    // python 3.11 on debian, with latest Ocean and optional packages
    // source repo: https://github.com/dwavesystems/ocean-dev-docker
    "image": "docker.io/dwavesys/ocean-dev:latest",
    
    // install repo pip requirements (only if present) on content update
    "updateContentCommand": "[ ! -r requirements.txt ] || pip install -r requirements.txt",
    
    // forward/expose container services (relevant only when run locally)
    "forwardPorts": [
        // dwave-inspector web app
        18000, 18001, 18002, 18003, 18004,
        // OAuth connect redirect URIs
        36000, 36001, 36002, 36003, 36004
    ],
    
    "portsAttributes": {
        "18000-18004": {
            "label": "D-Wave Problem Inspector",
            "requireLocalPort": true
        },
        "36000-36004": {
            "label": "OAuth 2.0 authorization code redirect URI",
            "requireLocalPort": true
        }
    },
    
    // Configure tool-specific properties.
    "customizations": {
        // Configure properties specific to VS Code.
        "vscode": {
            // Set *default* container specific settings.json values on container create.
            "settings": {
                "workbench": {
                    "editorAssociations": {
                        "*.md": "vscode.markdown.preview.editor"
                    },
                    "startupEditor": "readme"
                }
            },
            "extensions": [
                "ms-python.python",
                "ms-toolsai.jupyter"
            ]
        }
    }
    }
  2. dwave config create --auto-token

  3. pip install -r requirements.txt

The environment is default cloud latest : docker.io/dwavesys/ocean-dev:latest