Ankit404butfound / PyWhatKit

Send WhatsApp message at certain time and many other things.
MIT License
1.37k stars 298 forks source link

Vscode not linting sendwhatmsg_instantly() #118

Closed jramosss closed 3 years ago

jramosss commented 3 years ago

Describe the Bug Whenever i try to import the function as from pywhatkit import sendwhatmsg_instantly or import pywhatkit as kit kit.sendwhatmsg_instantly() it appears like the function does not exist, when i execute the program it works, but i don`t receive any autocompletion or info about the function.

i receive this error To Reproduce Steps to reproduce the behavior: 1 - create a venv and activate 2 - install the package with pip 3 - create a file, import the function as i said 4 - start to write

Expected Behavior A clear and concise description of what you expected to happen. Receive info and autocompletion just like the other functions of the library

Screenshots If applicable, add screenshots to help explain your problem. When Importing When Writing When writing, it appears like an atribute (any), not a function

Desktop (please complete the following information)

Python (please complete the following information)

aaryanrr commented 3 years ago

Hey @jramosss, Please make sure you are using the latest version of PyWhatKit (5.1)

jramosss commented 3 years ago

I do, i did pip freeze and got pywhatkit==5.1

aaryanrr commented 3 years ago

We have tested it on our end and it is working as expected. Can you open the __init__.py file to verify the presence of this line

from pywhatkit.main import sendwhatmsg_instantly, ...

It should be present under venv/lib/pywhatkit.

jramosss commented 3 years ago

It is present, linted as it wasnt a function a

jramosss commented 3 years ago

I found the solution, i wasnt using the venv enviroment in vscode.