My app works locally, but when I deploy it in github codespace, it will return the following message (*I already add psycopg2 and pingouin in requirement.txt):
[{
“resource”: “/workspaces/ppm-automation-test/pages/Hello.py”,
“owner”: “generated_diagnostic_collection_name#0”,
“code”: {
“value”: “reportMissingModuleSource”,
“target”: {
“$mid”: 1,
“path”: “/microsoft/pyright/blob/main/docs/configuration.md”,
“scheme”: “https”,
“authority”: “github.com”,
“fragment”: “reportMissingModuleSource”
}
},
“severity”: 4,
“message”: “Import "psycopg2" could not be resolved from source”,
“source”: “Pylance”,
“startLineNumber”: 3,
“startColumn”: 8,
“endLineNumber”: 3,
“endColumn”: 16
}]
[{
“resource”: “/workspaces/ppm-automation-test/pages/Hello.py”,
“owner”: “generated_diagnostic_collection_name#0”,
“code”: {
“value”: “reportMissingImports”,
“target”: {
“$mid”: 1,
“path”: “/microsoft/pyright/blob/main/docs/configuration.md”,
“scheme”: “https”,
“authority”: “github.com”,
“fragment”: “reportMissingImports”
}
},
“severity”: 4,
“message”: “Import "pingouin" could not be resolved”,
“source”: “Pylance”,
“startLineNumber”: 6,
“startColumn”: 8,
“endLineNumber”: 6,
“endColumn”: 16
}]