Compiling on windows

31 views
Skip to first unread message

Bithov Vinu

unread,
Aug 18, 2020, 8:16:43 AM8/18/20
to mnemosyne-proj-users

I've cloned the mnemosyne repo, and added a stylesheet (for dark mode). However, I am unable to compile it (I'm on windows 10). I opened a admin cmd and tried running setup.py, to no avail. The development instructions linked on the README are out of date (not my claim, it says on the site). How would I compile my modified source?

Student Account
Calday Grange Grammar School is a charitable company limited by guarantee and registered in England and Wales with company number 8332696.
The Registered Office is at Grammar School Lane, West Kirby, Wirral, CH48 8GG

Peter Bienstman

unread,
Aug 18, 2020, 8:20:35 AM8/18/20
to mnemosyne-...@googlegroups.com
Updated now, thanks!

Peter
> --
> You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/d3ef2f9a-48c3-4ca9-8025-3d2056f92f40n%40googlegroups.com.

Bithov Vinu

unread,
Aug 18, 2020, 9:48:43 AM8/18/20
to mnemosyne-proj-users
I ran
> make windows-installer

from cygwin, but I got the error

Traceback (most recent call last):
  File "./pyuic5", line 15, in <module>
    from PyQt5 import QtCore
ModuleNotFoundError: No module named 'PyQt5'
make[2]: *** [makefile:28: ui_main_wdgt.py] Error 1
make[2]: Leaving directory '/home/wingit/mnemosyne/mnemosyne/pyqt_ui'
make[1]: *** [makefile:43: build-all-deps] Error 2
make[1]: Leaving directory '/home/wingit/mnemosyne'
make: *** [makefile:93: windows-installer] Error 2

Inspecting the file in question, ui_main_wdgt.py, it is empty and doesn't show in the github repo. PyQt5 is most definitely installed, so is QtWebEngine.

Peter Bienstman

unread,
Aug 18, 2020, 9:50:44 AM8/18/20
to mnemosyne-...@googlegroups.com
You might want to edit the PYTHON3 environment variable in the
makefile to make sure that the python that is being picked up by the
makefile is the same python as where you installed these packages to.
I personally install everything in the Windows python version (not
Cygwin's python).

Peter
> To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/fe9f3bd5-3766-47f3-9057-ead845654523n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages