Skip to content
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

Dev Container Failed #20

Open
gzquse opened this issue Oct 21, 2024 · 3 comments
Open

Dev Container Failed #20

gzquse opened this issue Oct 21, 2024 · 3 comments

Comments

@gzquse
Copy link

gzquse commented Oct 21, 2024

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
Copy link
Author

gzquse commented Oct 21, 2024

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
Copy link
Contributor

thisac commented Oct 21, 2024

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
Copy link
Author

gzquse commented Oct 22, 2024

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"
			]
		}
	}
}

dwave config create --auto-token

pip install -r requirements.txt

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

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

No branches or pull requests

2 participants