microsoft / pyright

Static Type Checker for Python
Other
13.41k stars 1.47k forks source link

"message": "Import \"numpy\" could not be resolved", #8038

Closed Rakesh-656 closed 5 months ago

Rakesh-656 commented 5 months ago

[{ "resource": "/c:/Users/SOS/Downloads/5 EMA CALL BUYING-1.ipynb", "owner": "_generated_diagnostic_collectionname#2", "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 \"numpy\" could not be resolved", "source": "Pylance", "startLineNumber": 5, "startColumn": 8, "endLineNumber": 5, "endColumn": 13 }]

Rakesh-656 commented 5 months ago

Import "NorenRestApiPy.NorenApi" could not be resolved

Rakesh-656 commented 5 months ago

Import "pandas" could not be resolved from source

erictraut commented 5 months ago

You have not provided enough information to diagnose the issue. This is unlikely to be a problem in pyright but is instead a configuration issue or user misunderstanding, so I'm going to close the bug report. If you have questions about how to use pyright, please post questions in the discussion section of this project rather than filing bug reports.

Rakesh-656 commented 5 months ago

import concurrent.futures import time import re import numpy as np from datetime import datetime,timedelta from NorenRestApiPy.NorenApi import NorenApi import pandas as pd import pandas_ta as ta class ShoonyaApiPy(NorenApi): def init(self): NorenApi.init(self, host='https://api.shoonya.com/NorenWClientTP/', websocket='wss://api.shoonya.com/NorenWSTP/')
global api api = self