ImageMarkup / isic-cli

The official command line tool for interacting with the ISIC Archive.
https://isic-archive.com
Apache License 2.0
31 stars 0 forks source link

isic: command not found #41

Closed nina-weng closed 1 year ago

nina-weng commented 1 year ago

Does anybody meet this problem? I successfully installed this package and I could also see it in the pip list. But somehow when I try to download the dataset using the command begin with isic, it failed and told me that command not found. Anybody could help?

danlamanna commented 1 year ago

If you can specify the full location to it it should work.

Assuming you’re on Windows, if you run pip show isic-cli it should show the location it was installed in e.g. c:\users\foo\python\site-packages. Replacing site-packages with scripts should work, so in this example the final path would be c:\users\foo\python\scripts\isic.

So instead of running isic user login you would run c:\users\foo\python\scripts\isic user login.

We have something planned in the future that should hopefully make this much easier, but for now this is the workaround.

nina-weng commented 1 year ago

I am using the server which in linux. I tried the above one but it didn't work for me

nina-weng commented 1 year ago

it is actually interesting, because I checked the python/site-packages, the package is there

danlamanna commented 1 year ago

And isic isn't present in the bin directory for python? You may want to resort to using find / -name "isic" 2> /dev/null to search for the executable directly.

danlamanna commented 1 year ago

Actually, you might be able to run pip show --files isic-cli to get the path.

nina-weng commented 1 year ago

I guess i found it. I think the problem comes from the serve itself. though it is downloaded , it does not add into environmental variables (as this is a school server)

nina-weng commented 1 year ago

i dont know why I could not do it this way c:\users\foo\python\scripts\isic user login (replace the path to the path in my end) TAT

danlamanna commented 1 year ago

So are you all set now?

nina-weng commented 1 year ago

hiii sorry to the late reply. yes the problem is solved now. Thanks

nina-weng commented 1 year ago

(by the way, do you by any chance know where can I find the description of each column in the matadata?

danlamanna commented 1 year ago

An unofficial/incomplete list of items is documented here but there's nothing published with descriptions of each field, though that is on our roadmap for the future. Were there specific fields you were curious about?