-
Notifications
You must be signed in to change notification settings - Fork 371
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
Support the Windows "embeddable zip file" releases of Python #1856
Comments
Which embedded Python version? |
Python 3.8.1 - Dec. 18, 2019
|
Huh, I didn't know that was a thing. In answer to your question, it's a valid feature request, but don't hold your breath, since generally we haven't put too much effort into Windows support. Personally, I do all my programming on Linux. |
Yeah I'm a Linux user too but I need to distribute to Windows machines and I can't expect all users to have Python installed. Anyway thanks for accepting the feature request and merry Christmas ;) |
I've escalated this issue from "feature" to "bug" because we officially support Windows now and this is an official release of CPython. |
I've just come across hylang a few days ago and am very much interested in it. Since I regularly develop on Windows, I thought maybe I can contribute some Windows-specific stuffs to make Hy 1.0 come earlier so I picked up this issue. However, after trying CPython 3.10.4 embedded zip on Windows 10, it works as expected. foo.hy: (print "1") main.py: import hy
import foo result:
Is this bug fixed (and forgot to close this issue)? BTW: Although people have succeeded installing pip with embedded python, I've copied hy's source codes along with its dependencies (currently only four: funcparserlib, colorama, rply and appdirs), directly in embedded python's directory because embedded python doesn't bundle pip. |
Nobody fixed this bug intentionally, but it might've been fixed as a side-effect of other changes. We should probably add a test before closing it. The test can be as simple as downloading the embedded release and getting |
Yes, no need to run the whole test suite, but since in the original post |
That's a good point. Yes, since the issue was importing a stub Hy module, let's test that. I would say, first, see if you can reproduce the bug with Hy 0.18.0, since I don't think anybody ever checked that. If you can reproduce it, write a failing test and then port it to Hy master and check that it passes. |
I tried Hy 0.18.0 with embedded Python. It doesn't work, but with a different error.
And I can confirm the latest Hy doesn't have this error. Unfortunately, I'm not familiar with changing github workflow files (you wanted me to change tests.yml?) |
Hy 0.18.0 is too old to support Python 3.10, embedded or not. As a sanity check, be sure that your test passed on the same version of Hy with the standard Python with the same version number.
No, it should be enough to add a test with a |
Now I'm using embedded Python 3.8.1, exactly the version used by OP. It works...
What should I do now? Is it possible that OP installed Hy and dependencies in a different way (e.g. with pip, which is not officially supported I think) or some other library conflicts with Hy? |
We conclude that we can't reproduce the bug, so we close the issue, and reopen it if it ever comes up again. Let this be a reminder to me to check that I can reproduce an issue before marking it as a bug. Thanks for looking into this. |
You're welcome :) |
Hy fails to find hy modules when used in an embedded Python version.
given two files main.py and foo.hy
ModuleNotFoundError: No module named foo
Any chance support for this or pyinstaller can be added so we can create stand-alone Hy programs?
The text was updated successfully, but these errors were encountered: