-
Notifications
You must be signed in to change notification settings - Fork 44
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
upload functionality busted in pip version of mapbox CLI? #75
Comments
Tried this with pip3; same story. Fixed the format of the access token env var as well, to no avail. Interesting error when running the command without any params: $ mapbox
Usage: mapbox [OPTIONS] COMMAND [ARGS]...
This is the command line interface to Mapbox web services.
Mapbox web services require an access token. Your token is shown on the
https://www.mapbox.com/studio/account/tokens/ page when you are logged in.
The token can be provided on the command line
$ mapbox --access-token MY_TOKEN ...
as an environment variable named MAPBOX_ACCESS_TOKEN (higher precedence)
or MapboxAccessToken (lower precedence).
$ export MAPBOX_ACCESS_TOKEN=MY_TOKEN
$ mapbox ...
or in a config file
; configuration file mapbox.ini
[mapbox]
access-token = MY_TOKEN
The OS-dependent default config file path is something like
~/Library/Application Support/mapbox/mapbox.ini
~/.config/mapbox/mapbox.ini
~/.mapbox/mapbox.ini
Options:
--version Show the version and exit.
-v, --verbose Increase verbosity.
-q, --quiet Decrease verbosity.
--access-token TEXT Your Mapbox access token.
-c, --config PATH Config file
--help Show this message and exit.
Commands:
config † Warning: could not load plugin. See `mapbox config --help`.
dataset † Warning: could not load plugin. See `mapbox dataset --help`.
directions † Warning: could not load plugin. See `mapbox directions
--help`.
distance † Warning: could not load plugin. See `mapbox distance --help`.
geocoding † Warning: could not load plugin. See `mapbox geocoding
--help`.
mapmatching † Warning: could not load plugin. See `mapbox mapmatching
--help`.
staticmap † Warning: could not load plugin. See `mapbox staticmap
--help`.
surface † Warning: could not load plugin. See `mapbox surface --help`.
upload † Warning: could not load plugin. See `mapbox upload --help`. Wondering if this is a pythonpath thing specific to ubuntu? I've had success using the tool via homebrew. |
We saw the same thing #48 . There's python apt packages in ubuntu that pin virtualenv is the right solution - isolate the python deps you need and you should be fine. |
makes sense! closing as dupe and/or ubuntu problem |
This should work on a vanilla ubuntu system Installation:
Then you can run it like this if the virtualenv is activated
Or by absolute path if you're in a different shell
|
on a vanilla morec2:
The text was updated successfully, but these errors were encountered: