Page 1 of 1

FYI: python 3

Posted: Wed Sep 12, 2018 1:16 am
by mwieder
In case anyone else is tempted...

setting python3 as the default won't even start to compile the source code. If you've got both python 2.x and python 3.x installed, as I have, ensure that python 2.x is the default for python. I ended up spinning my wheels for the longest time with a weird error from about 'endswith' not accepting strings, only bytes and tuples. Reconfiguring so that python 2.7 was the default instead of 3.6 got things working again.

Re: FYI: python 3

Posted: Wed Sep 12, 2018 1:15 pm
by bogs
Just out of curiosity, what exactly does the 'engine' consist of? I had assumed initially that it referred to the standalone executable that powers the IDE or is attached to the project your developing, but now I am wondering if that is correct.

Re: FYI: python 3

Posted: Wed Sep 12, 2018 4:41 pm
by mwieder
Here ya go. In very general terms, the 'engine' is the non-script part of LiveCode. Lotsa lines of C code all put together by gyp and makefiles in a highwire balancing act. Abandon all hope ye who enter...

Code: Select all

Re: FYI: python 3

Posted: Wed Sep 12, 2018 8:05 pm
by bogs
Thanks for that, I did search (a lot) before posting, but all I could find were references to what *changed* in the engine, not specifically what the *engine* was :roll:

I sure wish this had popped up as an answer, which would have cleared it up completely ~
Engine flavours

The engine — which loads, saves, manages and runs LiveCode stack files — can be built in several different specialized modes, which are adapted for various specific purposes. They are exposed as separate targets in the build system.

IDE engine (development target)— Used to run the IDE. It contains extra support for things like syntax handling and building LiveCode "standalone" programs.

Installer engine (installer target) — Used to create the LiveCode installer. It contains extra support for things like handling zip archives and comparing binary files.

Server engine (server target) — This is the engine used in a server context, when no graphical user interface is needed. It contains server-specific functions such as CGI support. It also has a much fewer system library dependencies (and requires only non-desktop APIs where possible).

Standalone engine (standalone target) — The engine that is embedded in "standalone apps" created with LiveCode.