Closed vincent-dm closed 4 years ago
The #!
isn't awsume-specific. When installing python via brew, pip install
ing packages with console entry points will create a file that has a version-specific #!
line. This seems like a homebrew issue, I don't know how much guidance I can provide with that.
FWIW, I strongly recommend installing python command-line tools with pipx, that would help prevent issues like this since each package is installed into a separate virtualenv
Thank you for the explanation. And also for making the awesome awsume!
What was the fix for this in the end?
I'm not sure what exactly their solution was, but I do highly recommend the use of pipx for installing awsume. It should prevent these kinds of issues with brew since it installs everything into an isolated virtualenv (assuming you didn't try to pip install awsume
globally)
For me I had a similiar issue and a simple
pipx uninstall awsume
and then
pipx install awsume
fixed the issue.
I assume trying a pip uninstall awsume
and pip install awsume
might fix it.
After Homebrew upgraded Python from
3.7
to3.8
,awsume
stopped working:Presumably because the
awsumepy
script contains a hashbang#!/usr/local/opt/python/bin/python3.7
, which effectively ties it to Python 3.7.When I create a symlink to Python 3.8, it also fails:
Presumably, awsume is not compatible with Python 3.8. Ideally it can be made compatible, so it can rely on a less specific version (e.g.
#!/usr/bin/env python3
).