Skip to content

OSError: [WinError 126] The specified module could not be found #64

Description

@chrisnmills

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:

  1. I have created a fresh conda environment with python=3.6 and then activated it.
  2. Ran pip install eeweather.
  3. Started the python interpreter or created a new notebook in jupyter lab.
  4. import eeweather
  5. 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.
eeweather_conda_list

Desktop (please complete the following information):

  • OS: Windows 10 (one computer has Pro edition, Version 1909, and the other has Home edition, Version 1903)

Additional context
Is it simply that Windows isn't supported, so I'm better off using Linux?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions