FYI - failed. Maybe I’ll succeed when I try again.
I want to have a local ReadTheDocs install. Well, eventually running on a server on AWS, but
for now on a local machine. Here’s my little diary of getting a loccal ReadTheDocs server running.
I’m on Windows 7, behind the times a bit (Windows 10 is nicer).
Following Installation from ReadTheDocs. Hmm,
never used virtualenv before.
Total time to this point, less than 5 minutes. Now we do some database stuff, apparently.
Hmm, no Windows support?
And, StackOverflow tells me that this actually means I don’t have django installed. Hmm, I thought that
the pip install -r requirements.txt line was meant to install Django.
Ah, it did, but I didn’t pay attention to errors in the pip install output
This is annoying.
Apparently, this is because you can’t just pip install lxml on Windows.
Although, I’m not sure that’s what it means, now that I think about it, that’s silly, I think that post is
just if you try to build from source. I was able to do this
and it got and installed the latest version. So maybe it’s just that there no longer is a 3.3.5 version
on PyPI. And that appears to be the case, the oldest version listed there is 3.4.4.
So what if I edit requirements/pip.txt? Can I get a working build?
Hmm, should I have uninstalled lxml 3.6.0? It seems to be downloading stuff. Also, it looks like there was a heck
of a lot more to install. Holy crap. Virtualenv may be cool and all, but it’s like Docker, a cool solution for
a problem that shouldn’t exist in the first place.
Wow, this is annoying. A nice, nasty error at maybe the end of install
It looks like it tried to uninstall a running program. And why the heck is it trying to run something from
a temp folder? Ugly.
I’m building up notes for a second try (because maybe I broke my virtualenv Python folder), but let’s continue.
Back to the database init.
Hmm, same error as before.
(rtd) C:\projects\python\rtd\checkouts\readthedocs.org>manage.py migrate
Traceback (most recent call last):
File “C:\projects\python\rtd\checkouts\readthedocs.org\manage.py”, line 9, in
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
Interestingly, I don’t see django installed in my virtualenv folder. Isn’t it supposed to be?
The progress from the pip install -r requirements.txt claimed that it download Django
but I see no evidence of it anywhere. I see a bunch of other *.whl files
in checkouts\readthedocs.org\deploy\wheels. I don’t know enough about Python, but it seems
like I should see a Django-1.8.3-py2.py3-none-any.whl file in there. Although, now I look at
things, I don’t see many of the .whl files in there.
Maybe they went somewhere else on the hard disk? Temp folder? There are Django wheels in there, but
not for Django itself.
Maybe I should go install it on a Mac instead? Or in a Linux VM? Or even just on a Linux box?