I compiled python3.8 with the --shared option enabled and tried to use
it with MPY scripts, but no lack. I get mixed results.
- For sure the -y parameter of mystic, uses only the 2.7 version, cause when i use it, it doesn't find functions from the mystic_bbs module
Also i am not sure what value i have to enter in the configuration > general settings > python2/3 Library input box.
Some enlightenment on the subject would be much appreciated :)
Same, it really only seems to work under Windows for me and I haven't been to find the solution yet.
By default the new engine looks for "libpython2.7.so.1.0" and "libpython3.8.so.1.0" in Linux. If you want it to attempt to load some ot library, you would put the location/name of the library in those settings. This is for new engine only and its just for experimentation.
Which unit/library you use for incorporating python into FPC? Is it Python4Delphi or this: https://wiki.freepascal.org/Using_Python_in_Lazarus_on_Windows/Linux
Same, it really only seems to work under Windows for me and I haven't to find the solution yet.
Which unit/library you use for incorporating python into FPC? Is it Python4Delphi or this:
I was able to get it to run a test script that loads SQLITE3 without any environment changes. This means that I could potentially switch to using Python4Delphi wrappers instead of my own, but they did already remove supp for Python 2 so doing this would probably break every existing Python mod Mystic. As a Python modder what are your thoughts on this? You would be forced to upgrade your code to Python 3.
It also means that I can stop messing around with environment settings and at my own code to figure out what I did wrong, so I could also potentially the Python 2 and Python 3 engine that I built on my own.
My mods would be easy to convert, even for a sysop, as the most common difference between python2 and 3, that i had to use, is
clearing/deleting alist. So with just a search/replace it could be easy
to fix. At least, i don'tmind.
Sysop: | altere |
---|---|
Location: | Houston, TX |
Users: | 66 |
Nodes: | 4 (0 / 4) |
Uptime: | 08:40:10 |
Calls: | 624 |
Calls today: | 4 |
Files: | 7,638 |
Messages: | 293,812 |