Recently installed PyDev for Eclipse Oxygen 3 on WIndows 10. As a new programmer I am writing basic programs as I work through a "learn to code" book. The example I am working on uses a module called "snaps", which is in "pygame". The program below works fine in the Python Shell IDE.
import snaps
temp = snaps.get_weather_temp(latitude=47.61, longitude=-122.33)
print('The temperature in Seattle is:', temp)
Output: The temperature in Seattle is: 60
But when I run this in PyDev I get:
Traceback (most recent call last):
File "C:\Users\mando\eclipse-
workspace\BeginToCodeWithPython\Chapter4\ActualTemp.py", line 9, in <module>
temp = snaps.get_weather_temp(latitude=47.61, longitude=-122.33)
AttributeError: module 'snaps' has no attribute 'get_weather_temp'
I've confirmed the Python Path is set correctly in windows and the PyDev Interpreter is set correctly as well. I've added every lib, script folder etc. I can under project and perspective preferences. I've even added the pygame folder to my workspace. But I still am getting the errors.
I've confirmed that "get_weather_temp" is in the snaps module via the help() function, and it works in the IDE, just not in PyDev.
Any assistance would be appreciated.