-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: [WinError 126] The specified module could not be found #64
Comments
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. import eeweather error: OSError Traceback (most recent call last) ~\Anaconda3\lib\site-packages\eeweather\ranking.py in rank_stations(site_latitude, site_longitude, site_state, site_elevation, match_iecc_climate_zone, match_iecc_moisture_regime, match_ba_climate_zone, match_ca_climate_zone, match_state, minimum_quality, minimum_tmy3_class, max_distance_meters, max_difference_elevation_meters, is_tmy3, is_cz2010) ~\Anaconda3\lib\site-packages\eeweather\geo.py in get_lat_long_climate_zones(latitude, longitude) ~\Anaconda3\lib\site-packages\shapely\geometry_init_.py in ~\Anaconda3\lib\site-packages\shapely\geometry\base.py in ~\Anaconda3\lib\site-packages\shapely\coords.py in ~\Anaconda3\lib\site-packages\shapely\geos.py in ~\Anaconda3\lib\ctypes_init_.py in init(self, name, mode, handle, use_errno, use_last_error) OSError: [WinError 126] The specified module could not be found |
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?
The text was updated successfully, but these errors were encountered: