python-freshdesk
python-freshdesk copied to clipboard
ModuleNotFoundError: No module named 'freshdesk.api'; 'freshdesk' is not a package
I just pip installed python-freshdesk and tried to import the module, but am getting this error.
ModuleNotFoundError: No module named 'freshdesk.api'; 'freshdesk' is not a package
Python Code that recieved the above error:
from freshdesk.api import API a = API('XXXXXXX.freshdesk.com', 'XXXXXXXXXXXXXXX') tickets = a.tickets.list_tickets() print(tickets)
I just realized that I had named my file "freshdesk.py" which was causing an issue with the import module. After renaming the file, it is working correctly.
Glad you got it working!