For those who do development in Mystic Python, I have updated the prealpha today with a fully functional new Python 2.x engine (menu command GZ I thi for now) so please test your existing scripts with it if you can. It will
I tested this version: v1.12 A47 Linux/64 Compiled 2021/01/21 16:56:30
... with the following scripts: VirtualBase, xMsgArea (my custom message area), Voteliner, MysticBB and some other code snippets... and all was fine! I also tested it with Opicrons RJAM script and it was working
fine.
Just those mods, are using various python2 modules (configparser,
pickle, os, sys, struct, binascii, smtplib, ftplib, base64 and more) and Mystics internal functions (file access, msg access etc.)
I also tested a Python3 script with the new python3 support and although the script was not a 100% mystic compatible (my code i mean), it run
with out errors.
The only thing is, that both Python2 and 3 on my system are compiled
with the --shared option, as were the instructions until now. If there isn't a need to compile them now, it would be better. :)
The Python 3.x engine is there too but I have no tested it with the
latest round of changes. I am focusing on the new Python 2 engine first and them moving on to debugging 3.x but YMMV with Py3 (menu command G@
for now).
This is great to hear, thank you for testing! If there are Python features you'd like to see please let me know!
The only thing I did was a "sudu apt install libpython2.7" because 2.7 wasn't installed in Ubuntu 20.04. Everything worked after that for both versions without any recompile!
We are making good progress in Python support finally! :)
-cfg, or env variables? My 'Python3 Library' setting in config points
to /usr/lib/python3.8 -- is that correct for a fresh install?
Also, Wiki shows PYTHONHOME and PYTHONPATH may need to be set. For a
fresh ubuntu 20.04 install, are there a known working settings for these that you or someone can share?
hmmm... a save/restore screen feature, although with the getchar() function is easy to make one :) native support for the message/text
editor and full access to all .dat files, within the MPY environment.
For example, i need to access users signature and i can only do it, if i read the users.dat file :) For a start, i think are enough :) hahaha
And for both versions, which is very good! Did you use the python4delphi code after all?
-cfg, or env variables? My 'Python3 Library' setting in config point to /usr/lib/python3.8 -- is that correct for a fresh install?
No for a fresh install of Ubuntu 20.04 you should do nothing ie try it with a blank value.
I am only asking, because i don't know what to do. If i write something
in P2, i may have to rewrite it in P3 very shortly and if i write something on P3, it may not be released soon, as long the new engine is not ready.
If it were me, I'd write it in P3. P2 is potentially a security concern atsome point in the near term, so I'd use what's modern and supported, especially as g00r00 has already implemented it for testing purposes.
I am only asking, because i don't know what to do. If i write something
in P2, i may have to rewrite it in P3 very shortly and if i write something on P3, it ma y not be released soon, as long the new engine is not ready.
Sysop: | altere |
---|---|
Location: | Houston, TX |
Users: | 69 |
Nodes: | 4 (0 / 4) |
Uptime: | 09:12:04 |
Calls: | 1,062 |
Calls today: | 2 |
Files: | 8,069 |
Messages: | 298,944 |