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

Import "chinese_calendar" could not be resolved #2033

Closed
illidan-liu opened this issue Nov 4, 2021 · 2 comments
Closed

Import "chinese_calendar" could not be resolved #2033

illidan-liu opened this issue Nov 4, 2021 · 2 comments

Comments

@illidan-liu
Copy link

the code

import chinese_calendar

the error message

Import "chinese_calendar" could not be resolved

environment

VScode 1.61.2
Pylance v2021.11.0
Python 3.8.8
pip 21.0.1
chinesecalendar 1.6.0

details

{
	"resource": "/d:/xxx/Code/backtester/backtest.py",
	"owner": "_generated_diagnostic_collection_name_#0",
	"code": {
		"value": "reportMissingImports",
		"target": {
			"$mid": 1,
			"external": "https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md#diagnostic-severity-rules",
			"path": "/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md",
			"scheme": "https",
			"authority": "github.com",
			"fragment": "diagnostic-severity-rules"
		}
	},
	"severity": 4,
	"message": "Import \"chinese_calendar\" could not be resolved",
	"source": "Pylance",
	"startLineNumber": 2,
	"startColumn": 8,
	"endLineNumber": 2,
	"endColumn": 24
}
@github-actions github-actions bot added the triage label Nov 4, 2021
@illidan-liu
Copy link
Author

After restarting VSCode, there is no error message...

@jakebailey
Copy link
Member

If you installed the package in a virtual environment outside of your workspace, it's likely #923.

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