Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
quintijn opened this issue Aug 13, 2024 · 10 comments
Assignees

Comments

@quintijn
Copy link
Collaborator

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?

@quintijn
Copy link
Collaborator Author

quintijn commented Aug 15, 2024

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

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

@drmfinlay
Copy link
Member

drmfinlay commented Aug 16, 2024 via email

@quintijn
Copy link
Collaborator Author

Thank you, Dane. So stupid!

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

@quintijn
Copy link
Collaborator Author

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

@drmfinlay
Copy link
Member

drmfinlay commented Aug 17, 2024 via email

@quintijn
Copy link
Collaborator Author

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.

@dougransom
Copy link
Member

dougransom commented Aug 26, 2024

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.  

@drmfinlay
Copy link
Member

drmfinlay commented Aug 27, 2024 via email

@quintijn
Copy link
Collaborator Author

quintijn commented Aug 27, 2024 via email

@drmfinlay
Copy link
Member

drmfinlay commented Nov 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants