Open chrisnmills opened 4 years ago
I just loaded up a Ubuntu VM in VirtualBox and followed the same steps there. This time I got the expected behavior rather than an error, so I guess I'm going to be working in Linux for the time being.
@philngo even I am also getting the same issue on my windows 10 machine in Jupyter notebook. python3.7.4
import eeweather ranked_stations = eeweather.rank_stations(35, -95)
error:
OSError Traceback (most recent call last)
but the same working fine in ubuntu
Describe the bug Trying to follow the basic example, I execute
import eeweather
ranked_stations = eeweather.rank_stations(35, -95)
What results is this traceback and OSError:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\chris.mills\Miniconda3\envs\openee\lib\site-packages\eeweather\ranking.py", line 231, in rank_stations
site_climate_zones = get_lat_long_climate_zones(site_latitude, site_longitude)
File "C:\Users\chris.mills\Miniconda3\envs\openee\lib\site-packages\eeweather\geo.py", line 120, in get_lat_long_climate_zones
from shapely.geometry import Point
File "C:\Users\chris.mills\Miniconda3\envs\openee\lib\site-packages\shapely\geometry\__init__.py", line 4, in <module>
from .base import CAP_STYLE, JOIN_STYLE
File "C:\Users\chris.mills\Miniconda3\envs\openee\lib\site-packages\shapely\geometry\base.py", line 18, in <module>
from shapely.coords import CoordinateSequence
File "C:\Users\chris.mills\Miniconda3\envs\openee\lib\site-packages\shapely\coords.py", line 8, in <module>
from shapely.geos import lgeos
File "C:\Users\chris.mills\Miniconda3\envs\openee\lib\site-packages\shapely\geos.py", line 145, in <module>
_lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll'))
File "C:\Users\chris.mills\Miniconda3\envs\openee\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
I get this in both the python interpreter and in jupyter lab, and on two different computers using the steps that follow.
To Reproduce Steps to reproduce the behavior:
python=3.6
and then activated it.pip install eeweather
.import eeweather
ranked_stations = eeweather.rank_stations(35, -95)
Expected behavior As discussed in the documentation: https://eeweather.readthedocs.io/en/latest/basics.html
Screenshots If applicable, add screenshots to help explain your problem. Here's what's installed in my environment.
Desktop (please complete the following information):
Additional context Is it simply that Windows isn't supported, so I'm better off using Linux?