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
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "moban.main", line 19, in <module>
File "moban.constants", line 1, in <module>
File "moban.externals.file_system", line 10, in <module>
File "fs.multifs", line 15, in <module>
File "fs.base", line 28, in <module>
File "fs.time", line 14, in <module>
File "pytz", line 172, in timezone
File "pytz", line 198, in _case_insensitive_zone_lookup
File "pytz.lazy", line 101, in _lazy
File "pytz", line 1104, in <genexpr>
File "pytz", line 114, in resource_exists
File "pytz", line 95, in open_resource
NameError: name '__file__' is not defined
error: cargo run failed
I have a more general fix for __file__ problems - should be published soon-ish.
I havent tried to apply my workaround for the lml__file__ problems, as it is more complicated here than in most packages.
PyOxidizer is quite different from PyInstaller - it is statically built only needing a single binary, all resources included, and it doesnt support __file__ because that is illogical for a static binary, and any use of __file__ which isnt guarded by an exception block is error prone, as __file__ is not a mandatory attribute for modules.
I am afraid PyOxidizer has a long to go before it reaches lml. I am not denying the fact that lml won't fit PyOxidizer. I am trying to say: PyOxidizer are not the right tool to the goal: single binary distribution, because it is not mature.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "moban.main", line 19, in <module>
File "moban.constants", line 1, in <module>
File "moban.externals.file_system", line 10, in <module>
File "fs.multifs", line 15, in <module>
File "fs.base", line 28, in <module>
File "fs.time", line 14, in <module>
File "pytz", line 181, in timezone
pytz.exceptions.UnknownTimeZoneError: 'GMT'
Activity
chfw commentedon Nov 14, 2019
I can give it a try.
chfw commentedon Dec 4, 2019
I see what you meant now
chfw commentedon Dec 4, 2019
@jayvdb , from above log, "pytz" is a blocker too, "lml" can be one.
pyexcel users has been using pyinstaller to make one executable, successfully. But of course, for windows only.
chfw commentedon Dec 4, 2019
here's the sample instructions for lml enabled modules:
http://docs.pyexcel.org/en/latest/pyinstaller.html
chfw commentedon Dec 4, 2019
I just read that you have already dis-approved pyinstaller in your post :/
jayvdb commentedon Dec 5, 2019
The pytz problem can be avoided using envvar
PYTZ_TZDATADIRI have a more general fix for
__file__problems - should be published soon-ish.I havent tried to apply my workaround for the
lml__file__problems, as it is more complicated here than in most packages.PyOxidizer is quite different from PyInstaller - it is statically built only needing a single binary, all resources included, and it doesnt support
__file__because that is illogical for a static binary, and any use of__file__which isnt guarded by an exception block is error prone, as__file__is not a mandatory attribute for modules.chfw commentedon Dec 7, 2019
I am afraid
PyOxidizerhas a long to go before it reacheslml. I am not denying the fact thatlmlwon't fitPyOxidizer. I am trying to say:PyOxidizerare not the right tool to the goal: single binary distribution, because it is not mature.jayvdb commentedon Dec 8, 2019
Ya, I havent looked at fs2 yet, but this is about lml, not moban.