whosonfirst / py-mapzen-whosonfirst-utils

Shared utilities for working with Who's On First documents
BSD 3-Clause "New" or "Revised" License
2 stars 7 forks source link

pkg_resources.ResolutionError - metadata not found in .egg-info #26

Open jmasselink opened 5 years ago

jmasselink commented 5 years ago

I followed the setup instructions for this repo to set up a virtual environment but adapted to Windows.

My goal is to follow the downloading_wof_records how-to Everything seemed to install ok (I'm a bit new to this).

I ran a this script to mimic the script example for Bundles of Placetypes by ParentID (extract NYC Boroughs to GeoJSON):

python wof-csv-to-feature-collection
-p "\inputs\data"
-c "\inputs\meta\whosonfirst-data-borough-latest.csv"
-o "\output\nyc_boroughs.geojson"
-a "\inputs\property_aliases\property_aliases.json"
--slim
-f 85977539

The command does not run and I got the following error: pkg_resources.ResolutionError: Script 'scripts/wof-csv-to-feature-collection' not found in metadata at 'c:\\venv\\py-mapzen-whosonfirst-utils\\mapzen.whosonfirst.utils.egg-info'

If you could point me toward a solution, I'd greatly appreciate it. Thanks!

nvkelso commented 5 years ago

I suspect this is a Python config issue?

There are some tips in here:

jmasselink commented 5 years ago

Thanks. You're right that this is a Python config issue. I tried solutions such as adding my Python install to my system variables and running a script to regenerate the Egg. Not quite able to crack this just yet.