dictation-toolbox/natlinkcore

documentation with sphinx does not seem to run with 32 bit version of python

quintijn opened this issue · 9 comments

I tried to start (again) the documentation of natlinkcore, by following the instructions on natlinkcore.readthedocs.io.

However, after pip install -r requirements.txt, The script make.bat html does not seem to run.

I tried to install sphinx on a 64 bit python, but then I run into the complication that natlink is not recognised.

What to do?

I thought of mocking 'natlink' in mock_modules, but that gave another error (sorry for the terrible layout):

((...))
text deleted, problem solved. More below...

Thank you, Dane. So stupid!

Do you think sphinx indeed only runs on 64bit python? (I could try again on my 32bit python)

OK then, there I go. It now runs on a 64bit python. But presenting problems still.

Dane, could you connect to the fork I am running on and see what result you get? When you have some time. I will give you the details via Telegram. Thanks already.

Greetings, Quintijn

Dane, I do it with a 64 bit python, succeeded a bit, with natlinkutils.py (documentation from Joel Gould, 24 or 25 years ago!).

Please have a look (in master of natlinkcore), for example at the bottom of the playString documentation. I don't know exactly what I was doing.

Will proceed later.

I too had trouble in 32 bit:

Running Sphinx v8.0.2
['C:\\Users\\doug\\code\\dt\\unimacro\\src', 'C:\\Users\\doug\\AppData\\Local\\Programs\\Python\\Python310-32\\Scripts\\sphinx-build.exe', 'C:\\Users\\doug\\AppData\\Local\\Programs\\Python\\Python310-32\\python310.zip', 'C:\\Program Files (x86)\\Natlink\\site-packages', 'C:\\Users\\doug\\AppData\\Local\\Programs\\Python\\Python310-32\\DLLs', 'C:\\Users\\doug\\AppData\\Local\\Programs\\Python\\Python310-32\\lib', 'C:\\Users\\doug\\AppData\\Local\\Programs\\Python\\Python310-32', 'C:\\Users\\doug\\AppData\\Local\\Programs\\Python\\Python310-32\\lib\\site-packages', 'C:\\Users\\doug\\code\\ft\\src', 'C:\\Users\\doug\\code\\dt\\pydebugstring\\src', 'C:\\Users\\doug\\AppData\\Local\\Programs\\Python\\Python310-32\\lib\\site-packages\\win32', 'C:\\Users\\doug\\AppData\\Local\\Programs\\Python\\Python310-32\\lib\\site-packages\\win32\\lib', 'C:\\Users\\doug\\AppData\\Local\\Programs\\Python\\Python310-32\\lib\\site-packages\\Pythonwin', 'C:\\Users\\doug\\code\\dt\\unimacro\\src', 'C:\\Users\\doug\\code\\dt\\Vocola2\\src']
====================
unimacro, version: "4.1", release: "4.1.6"
loading translations [en]... done

Extension error:
Could not import extension sphinxcontrib.applehelp (exception: cannot import name 'SkipProgressMessage' from 'sphinx.util' (C:\Users\doug\AppData\Local\Programs\Python\Python310-32\lib\site-packages\sphinx\util\__init__.py))

C:\Users\doug\code\dt\unimacro\documentation>


Is there something else I might need to install?```

I have not tried 64 bit yet as I have to set up the environment.