Page 1 of 1

Edupython 3

Published: November 9, 2020 - 2:47 PM
by gaelds
Hello,
I'm trying to create a package to deploy the portable version of Edupython 3. It works on some machines, but others display "Pyscripter couldn't load engine..."
Picture
On the machines where it works, I haven't installed Python, and on the machines where it doesn't, I tried sending the "tis-python27" or "tis-python3" package, but it doesn't change anything, even when manually adding the path in pyscripter. There's nothing special in my setup.py file, just a copytree to copy the Edupython folder to Program Files and the creation of shortcuts.
I tested installing Edupython using setup.exe, but it didn't add the Python engine either, if I'm not mistaken.

Re: Edupython 3

Published: November 9, 2020 - 6:13 PM
by Valentin Ficis
Hello,

what are the Windows versions/architectures on the machines where it doesn't work? And on those where it does work?

Re: Edupython 3

Published: November 11, 2020 - 10:01 AM
by gaelds
The error seems to occur on both my Windows 7 Pro 64-bit and Windows 10 Pro 64-bit machines, but there's no pattern; it seems random. I'm currently recreating the package using a freshly downloaded zip file from the edupython website, and I'll be sending it out to the affected PCs one by one. I launched the installation of this 2.3GB unzipped package on 316 machines simultaneously, which is enough to make the server struggle... Even just the wake-on-LAN command on those 316 PCs crashes the console (I have to restart nginx to get it working again). So, some machines might not have received the complete folder... The shortcuts were definitely there, though.

Re: Edupython 3

Published: November 12, 2020 - 8:23 AM
by gaelds
I'm managing to install the package little by little, running the update on a maximum of 10-20 machines at a time. And often the package throws an error with:

File "C:\wapt\common.py", line 3825, in install_wapt
logger.critical(u'Fatal error in install script: %s:\n%s' % (ensure_unicode(e),ensure_unicode(traceback.format_exc())))
File "C:\wapt\waptutils.py", line 435, in ensure_unicode
return u"%s : %s" % (data.args[0], data.args[1].decode('cp850'))
IndexError: tuple index out of range
IndexError: tuple index out of range.


After restarting the installation 2 or 3 times, it eventually works.