You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I understand correctly, when the library is pip-installed, the current setup.py file copies the executable search_tweets.py into the bin/ dir of the relevant python environment. In my experience, this is so the user can run e.g. (env)$ search_tweets.py from any location and the stand-alone script will still be on the $PATH. However the current search_tweets.py doesn't have the #! line so it leads to some unexpected errors - in both my case and this SO post, the resulting output comes from ImageMagik (of all places...).
In the README, the user is instructed to run the local, repo file as (env)$ python search_tweets.py from the tools/ directory. This requires the user to have the repo cloned locally.
I think it would be helpful to be more clear about which is the recommended way for the user to run the main search_tweets.py script (not when imported as a library).
My preference would be to enable the file to run by keeping it in the setup.py script and adding the appropriate shebang. Then, we could remove the language about using the repo version, thus removing the expectation that the user has downloaded or cloned the repo. But I'm happy to hear more about the relative trade-offs of the approaches here.
The text was updated successfully, but these errors were encountered:
If I understand correctly, when the library is
pip
-installed, the current setup.py file copies the executablesearch_tweets.py
into thebin/
dir of the relevant python environment. In my experience, this is so the user can run e.g.(env)$ search_tweets.py
from any location and the stand-alone script will still be on the$PATH
. However the currentsearch_tweets.py
doesn't have the#!
line so it leads to some unexpected errors - in both my case and this SO post, the resulting output comes from ImageMagik (of all places...).In the README, the user is instructed to run the local, repo file as
(env)$ python search_tweets.py
from thetools/
directory. This requires the user to have the repo cloned locally.I think it would be helpful to be more clear about which is the recommended way for the user to run the main
search_tweets.py
script (not when imported as a library).My preference would be to enable the file to run by keeping it in the setup.py script and adding the appropriate shebang. Then, we could remove the language about using the repo version, thus removing the expectation that the user has downloaded or cloned the repo. But I'm happy to hear more about the relative trade-offs of the approaches here.
The text was updated successfully, but these errors were encountered: