Forum
Python Errors when compiling - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15)
+---- Thread: Python Errors when compiling (/showthread.php?tid=944)



Python Errors when compiling - mauvedeity - 05-24-2020

I'm using Boriel 1.9.8 (I think) on MacOS 10.15.4 with Python3 (version 3.7.7, installed via HomeBrew). I'm invoking Boriel thusly:
Code:
python3 ~/bin/zxbasic/zxb.py bugreport1.bas --tzx --BASIC --autorun
However, each time I try to compile, I get a bunch of Python diagnostics:
Quote:/Users/mauvedeity/bin/zxbasic/ply/lex.py:760: FutureWarning: Possible nested set at position 10
  c = re.compile('(?P<%s>%s)' % (fname, _get_regex(f)), self.reflags)
/Users/mauvedeity/bin/zxbasic/ply/lex.py:498: FutureWarning: Possible nested set at position 274
  lexre = re.compile(regex, reflags)

I still get the TZX file I asked for, but I'm wondering what I'm doing wrong here.
I've since found that I get these errors even if I invoke Boriel without any arguments.
Any suggestions? Any more information I can provide?


RE: Python Errors when compiling - boriel - 05-29-2020

Hi, that's not an error, but a Warning. You can keep using the compiler safely.
This warning will be fixed in the upcoming 1.10.1.
You can download a beta preview here:
http://www.boriel.com/files/zxb/zxbasic-1.10.1-beta5-win32.zip
http://www.boriel.com/files/zxb/zxbasic-1.10.1-beta5.tar.gz
http://www.boriel.com/files/zxb/zxbasic-1.10.1-beta5.zip


RE: Python Errors when compiling - boriel - 05-30-2020

ZX Basic 1.10.1 has been finally released (and fixes that warning):
https://zxbasic.readthedocs.io/en/latest/archive/  Cool


RE: Python Errors when compiling - mauvedeity - 06-03-2020

(05-30-2020, 10:30 AM)boriel Wrote: ZX Basic 1.10.1 has been finally released (and fixes that warning):
https://zxbasic.readthedocs.io/en/latest/archive/  Cool

Hi, thanks for the update! I’ll download and update when I get a chance.