I am trying to run my Python code as Cython. I have successfully gotten the simple hello world examples working and imported.
When I try to import my new file, Traffic_Data2 I receive an error:
import Traffic_Data2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "cbTraffic/Traffic_Data2.pyx", line 1, in init cbTraffic.Traffic_Data2 (Traffic_Data2.c:4255)
import requests
SystemError: Parent module '' not loaded, cannot perform relative import
I was not sure if there is something I need to add to my setup.py file to have it import the requests module.
Any help will be appreciated.