Skip to content

Docker instructions do not work #472

@behrisch

Description

@behrisch

The docker instructions in https://github.com/huawei-noah/SMARTS#using-docker have several issues:

  1. docker run --rm -it -v $(PWD):/src -p 8081:8081 huaweinoah/smarts:v0.4.3-pre gives PWD: command not found
  2. using docker run --rm -it -v $PWD:/src -p 8081:8081 huaweinoah/smarts:v0.4.3-pre (no brackets around PWD) and scl envision start -s ./scenarios -p 8081 & gives bash: scl: command not found
  3. using docker run --rm -it -v $PWD:/src -p 8081:8081 huaweinoah/smarts:v0.4.9 and scl envision start -s ./scenarios -p 8081 & gives
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py", line 567, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py", line 884, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py", line 775, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (grpcio 1.32.0 (/usr/local/lib/python3.7/dist-packages), Requirement.parse('grpcio==1.30.0'), {'smarts'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/scl", line 33, in <module>
    sys.exit(load_entry_point('smarts', 'console_scripts', 'scl')())
...
  File "/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py", line 770, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'grpcio==1.30.0' distribution was not found and is required by smarts

Metadata

Metadata

Labels

Urgenturgent issue needs to be fixed asapbugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions