Open ley901017 opened 6 months ago
Hi @ley901017
git checkout v0.1.1
velocitas.json:
{
"packages": [
{
"name": "devenv-runtimes",
"version": "v2.2.6"
},
{
"name": "devenv-github-workflows",
"version": "v4.1.3"
},
{
"name": "devenv-github-templates",
"version": "v1.0.3"
},
{
"name": "devenv-devcontainer-setup",
"version": "v1.4.7"
}
],
"variables": {
"language": "python",
"repoType": "app",
"appManifestPath": "app/AppManifest.json",
"githubRepoId": "eclipse-velocitas/vehicle-app-python-template",
"generatedModelPath": "./gen/vehicle_model"
},
"cliVersion": "v0.6.3"
}
velocitas --version
velocitas-cli/0.6.3 linux-arm64 node-v18.5.0
Steps:
start dev container -> wait for installation / setup
export SDV_MIDDLEWARE_TYPE=native
export SDV_MQTT_ADDRESS=mqtt://localhost:1883
export SDV_VEHICLEDATABROKER_ADDRESS=grpc://localhost:55555
Change app/requirements-velocitas.txt content to (We fixed the bug there where your problem originates from https://github.com/eclipse-velocitas/vehicle-app-python-sdk/pull/119 fixed with https://github.com/eclipse-velocitas/vehicle-app-python-sdk/releases/tag/v0.13.1):
velocitas-sdk==0.13.1
velocitas exec sdk-installer install-deps
velocitas exec sdk-installer run
Press F1 and run Task: Local Runtime - Up
Afterwards:
python3 /workspaces/vehicle-app-python-template/app/src/main.py
git checkout main
velocitas.json:
{
"packages": [
{
"name": "devenv-runtimes",
"version": "v2.2.6"
},
{
"name": "devenv-github-workflows",
"version": "v4.1.4"
},
{
"name": "devenv-github-templates",
"version": "v1.0.3"
},
{
"name": "devenv-devcontainer-setup",
"version": "v1.5.1"
}
],
"variables": {
"language": "python",
"repoType": "app",
"appManifestPath": "app/AppManifest.json",
"githubRepoId": "eclipse-velocitas/vehicle-app-python-template",
"generatedModelPath": "./gen/vehicle_model"
},
"cliVersion": "v0.7.0"
}
velocitas --version
velocitas-cli/0.7.0 linux-arm64 node-v18.5.0
start dev container -> wait for installation / setup
export SDV_MIDDLEWARE_TYPE=native
export SDV_MQTT_ADDRESS=mqtt://localhost:1883
export SDV_VEHICLEDATABROKER_ADDRESS=grpc://localhost:55555
Press F1 and run Task: Local Runtime - Up
Afterwards:
python3 /workspaces/vehicle-app-python-template/app/src/main.py
Severity
Critical
What release version, tag or commit-hash did you use?
v0.1.1
Current Behavior
When I run velocita app directly without dapr, the below error message has been appeared.
Steps to Reproduce
Local Runtime - Up
python3 /workspaces/vehicle-app-python-template/app/src/main.py
in terminalExpected Behavior
The app can run normally without dapr.
Possible Solution
No response
Additional Information
In velocitas_sdk, the below code may have some bugs, the path is
velocitas_sdk/native/mqtt.py
the function init of MqttClient, I cannot see any parameters on line 42 when callmqtt,Client()
Code of Conduct