hy icon indicating copy to clipboard operation
hy copied to clipboard

PyInstaller support

Open muqiuhan opened this issue 4 years ago • 8 comments

Error Message : ModuleNotFoundError: No module named 'main main is Hy source file, before importing Hy'

muqiuhan avatar Jun 20 '20 04:06 muqiuhan

PyInstaller is not supported (yet?).

Kodiologist avatar Jun 20 '20 15:06 Kodiologist

Hello, I've installed it, but the problem is still there. Perhaps Hylang does n'etre doesn't support PyInstaller.Thank you for your answer.


From: Kodi Arfer [email protected] Sent: Saturday, June 20, 2020 11:14:13 PM To: hylang/hy [email protected] Cc: 韩暮秋 [email protected]; Author [email protected] Subject: Re: [hylang/hy] PyInstaller support (#1901)

PyInstaller is not supported (yet?).

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/hylang/hy/issues/1901#issuecomment-647008145, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP37YREDNOZT4DWMY7VFW33RXTG4LANCNFSM4ODG3BRQ.

muqiuhan avatar Jun 20 '20 23:06 muqiuhan

Yes, that's what I just said.

Kodiologist avatar Jun 20 '20 23:06 Kodiologist

Can I try to translate Hylang's document into Chinese and publish it?

X档案研究所[X-FI]发送


From: Han Muqiu [email protected] Sent: Sunday, June 21, 2020 7:24:36 AM To: hylang/hy [email protected] Subject: Re: [hylang/hy] PyInstaller support (#1901)

I was doing C++ - work before, Hylang is not very familiar with, recently want to use Hylang call PyQt to write a Hylang integrated development environment, do not understand can not ask you?

X档案研究所[X-FI]发送

muqiuhan avatar Jun 21 '20 04:06 muqiuhan

(This comment was a reply to a deleted comment.)

Sure, but it's a lot of work, and it may quickly go out of date unless you retranslate all the changes we make to the English version.

Kodiologist avatar Jun 21 '20 12:06 Kodiologist

I'd just thought I'd add that there is way to make pyinstaller work with hy. I've detalied the steps here. It's not the prettiest solution but it works for the simple cases I've tried.

jloow avatar Mar 15 '21 10:03 jloow

This is a feasible solution, thank you very much for your help

muqiuhan avatar Mar 16 '21 01:03 muqiuhan

I've detalied the steps here.

This seems very useful, thank you jloow. I'll experiment with it some myself and make sure there's mention of it in the docs when I do the overhaul.

allison-casey avatar Mar 16 '21 01:03 allison-casey

Happy to comment that hy works fine with Nuitka

danieltanfh95 avatar Jan 31 '23 09:01 danieltanfh95

Glad to hear it. This Nuitka thing looks pretty cool. It seems like a promising approach for deploying a program with all its dependencies.

Kodiologist avatar Jan 31 '23 12:01 Kodiologist

Everything is getting better, thank you guys

muqiuhan avatar Feb 06 '23 10:02 muqiuhan

Happy to comment that hy works fine with Nuitka

@danieltanfh95 Is there anything special that needs to be done to build a hy script with Nuitka?

thinker5555 avatar Feb 20 '24 16:02 thinker5555