raw python script to work just fine. But when I convert it to MPY for
use in Mystic, it throws an error. I can't see why one works and one fails.
On 10/30/18, Gryphon pondered and said...
raw python script to work just fine. But when I convert it to MPY fo use in Mystic, it throws an error. I can't see why one works and one fails.
I'm not ofait with python and how much is implemented in Mystic Gryphon but could it be the functions you're trying to use are not implemented
yet by g00r00?
I'm not ofait with python and how much is implemented in Mystic Gryph but could it be the functions you're trying to use are not implemente yet by g00r00?
I'm of the thought that MPY is different than MPL in that it uses an outside interpreter and its modules. So I don't think it's something
that needs to be 'included' into mystic. The fact is that many other modules do work. But these particular ones don't seem to work, and I don't know why.
On 11/01/18, Gryphon pondered and said...
I'm not ofait with python and how much is implemented in Mystic but could it be the functions you're trying to use are not imple yet by g00r00?
I'm of the thought that MPY is different than MPL in that it uses an outside interpreter and its modules. So I don't think it's something that needs to be 'included' into mystic. The fact is that many other modules do work. But these particular ones don't seem to work, and I don't know why.
OK, sure. I don't really have a lot of knowledge in this area but I'm aware there were only so many bbs functions enabled for Mystic in the module g00r00 has created for Python. I hope you can solve your problem.
So I'm trying to write a mystic python MPY app that will run a google search and return the list of links that are hits. I'm able to get a
raw python script to work just fine. But when I convert it to MPY for
use in Mystic, it throws an error. I can't see why one works and one fails.
On 10/30/18, Gryphon said the following...
So I'm trying to write a mystic python MPY app that will run a google search and return the list of links that are hits. I'm able to get a raw python script to work just fine. But when I convert it to MPY fo use in Mystic, it throws an error. I can't see why one works and one fails.
Try the script under mystic's DD so your running the Python script
without going through Mystic. It's more likely to work, I run a number
of scripts (bash) like that which work fine.
Oh, yes. I just realized what you meant. Yes, g00r00 only incorporated
a few BBS functions; not nearly as many as in MPL. But it is not the BBS functions that are failing, but rather a module in python.
Because my app involves a lot of light-bar user interaction, the only
real option I have in python is to use the ncurses library to do that. But as we have all seen, native apps that use ncurses just will not display correctly in Mystic. Since I'm coding a game, there needs to be
a proper user interface, so running python as a door is out.
So my alternative is to write an MPL to do the UX work, and use a python script to run the backend functions to do the web scraping. It's
kludgy, but so far, it works.
Sysop: | echicken |
---|---|
Location: | Toronto, Ontario |
Users: | 2,224 |
Nodes: | 6 (0 / 6) |
Uptime: | 207:52:31 |
Calls: | 14,142 |
Files: | 295 |
Messages: | 551,084 |