windows packaging is broken

Bug #1685441 reported by Marten de Vries
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenTeacher
Fix Committed
Medium
Marten de Vries

Bug Description

- There is no binary installer for PyQt5 on Python 2 on Windows. So manual compilation (in the openteacher-ci branch on Github) is required. http://python.6.x6.nabble.com/Windows-installers-for-PyQt5-and-Python2-td5036304.html Note that there is a community maintained package (out-of-date, but still acceptable), but I haven't been able to get it to install on AppVeyor: https://github.com/pyqt/python-qt5
- The path for the WiX toolset (for building a .msi file) is currently hardcoded. As it's hardcoded to an old version, it's broken. Preferably, this should be fixed by discovering the correct path somehow. Note that WiX should be preinstalled in AppVeyor, but if required it is available on chocolatey: https://www.appveyor.com/docs/build-environment/ , https://chocolatey.org/packages/wixtoolset
- To support OCR functionality, a version of tesseract-ocr is required. Historically, we just copied in some portable version I found of it. It seems there are no recent Windows builds, but if we can find that old portable version re-enabling that functionality (it's currently commented out) would probably be an OK fix. Note that it would be nice if the msi packager took the portable directory location from a CLI argument (and perhaps only optionally), instead of just assuming it is in the current working directory.

Revision history for this message
Marten de Vries (marten-de-vries) wrote :

Perhaps the most efficient way to fix the PyQt5 issue is to finish the port of OpenTeacher to Python 3.

Revision history for this message
Marten de Vries (marten-de-vries) wrote :

OT is now ported to Python 3. It **seems** like there are no major obstacles anymore to getting a working Windows build.

Changed in openteacher:
status: Confirmed → In Progress
assignee: nobody → Marten de Vries (marten-de-vries)
milestone: none → 3.4
Revision history for this message
Marten de Vries (marten-de-vries) wrote :

Status update:

- PyInstaller runs, but the result does not run (no error messages, but it seems like PyQt is not included?)
- WiX does generate a valid and good package.
- OCR: no progress. But leaving it out is good enough at first.

Revision history for this message
Marten de Vries (marten-de-vries) wrote :

Mostly works now.

Changed in openteacher:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.