Skip to content

Commit

Permalink
[BUGFIX] install shapely and requests via conda instead of pip. For p…
Browse files Browse the repository at this point in the history
…rocessing geofabrik.json with shapely on Windows (#193)

install shapely and requests via conda instead of pip. For geofabrik

without that, geofabrik processing, namely shapely does not work in Windows
  • Loading branch information
treee111 authored Apr 2, 2023
1 parent badef50 commit c84c3e0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,23 @@
"-md",
"100"
]
},
{
"name": "co: france",
"type": "python",
"request": "launch",
"module": "wahoomc",
"console": "integratedTerminal",
"args": [
"cli",
"-co",
"france",
"--bordercountries",
"--maxdays",
"30",
"--verbose"
],
"justMyCode": false
}
]
}
2 changes: 1 addition & 1 deletion docs/QUICKSTART_ANACONDA.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ brew install osmosis
1. Open terminal (macOS/Linux) or **Anaconda Prompt** (Windows, via Startmenu)
2. Create a new Anaconda environment with needed packages
```
conda create -n gdal-user python=3.10 geojson=2.5 gdal=3.4 pip --channel conda-forge --override-channels
conda create -n gdal-user python=3.10 geojson=2.5 gdal=3.4 requests=2.28 shapely=1.8 pip --channel conda-forge --override-channels
```
3. activate Anaconda environment with the command printed out (this needs to be done each time you want to use wahooMapsCreator maps)
```
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ classifiers =
[options]
packages = wahoomc, wahoomc.init
python_requires = >=3.10
install_requires =
requests==2.28.*
shapely==1.8.*

[options.package_data]
wahoomc = resources/*.*, resources/*/*.*, resources/*/*/*.*, resources/*/*/*/*.*, tooling_win/*.*, tooling_win/*/*.*, tooling_win/*/*/*.*, tooling_win/*/*/*/*.*

0 comments on commit c84c3e0

Please sign in to comment.