Skip to content
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

Hy repl doesn't open on clean install python 3.7 #1690

Closed
vshesh opened this issue Oct 28, 2018 · 5 comments
Closed

Hy repl doesn't open on clean install python 3.7 #1690

vshesh opened this issue Oct 28, 2018 · 5 comments
Labels

Comments

@vshesh
Copy link

vshesh commented Oct 28, 2018

Did the following on a mac:

$ brew install python
$ python3
Python 3.7.0 ....
$ pip3 install hy
...
$ hy
-bash: /usr/local/bin/hy: /usr/local/opt/python3/bin/python3.5: bad interpreter: No such file or directory

When I ``cat `which hy``` I get:

#!/usr/local/opt/python3/bin/python3.5

# -*- coding: utf-8 -*-
import re
import sys

from hy.cmdline import hy_main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(hy_main())

Why is there a shebang line pointing to python 3.5? I can run ``python3 `which hy``` and everything (so far as I can tell) works just fine.

Tried with latest git (pip install git+...) and same issue.

@vshesh vshesh changed the title Just installed Hy repl doesn't open on clean install python 3.7 Oct 28, 2018
@Kodiologist
Copy link
Member

Pretty mysterious, but it sounds like your Python might be misconfigured somehow. I know that Mac OS X has a default Python that can sometimes compete with user-installed Pythons. Which version of the OS are you running? Can you (or anybody else) replicate this issue on another system?

@vshesh
Copy link
Author

vshesh commented Oct 28, 2018

Mac OS 10.13.2 (high sierra)
I don't have access to another mac to test it on...

@vshesh
Copy link
Author

vshesh commented Oct 28, 2018

how is that shebang line made? /usr/local/opt/python3/bin/python3.7 exists, and there's no python3.5 anywhere on my machine, so I'm not sure where the pip install picked that up from.

@Kodiologist
Copy link
Member

I don't know; you'd probably have to look into the innards of setuptools or fastentrypoints.

@Kodiologist
Copy link
Member

Nobody's been able to (or tried to) replicate this issue after 3 years, and I still suspect a misconfiguration, so I'm closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants