DEV Community

Russ Hammett
Russ Hammett

Posted on • Originally published at kritner.blogspot.com on

xml2rfc oh my jeez

Ugh. Been having crazy trouble with getting started with Python for windows, all the way through getting xml2rfc installed. Background is I'm trying to regenerate some RFC documents based on JSON edits in the appropriate XML files for a project.

SO, here's the steps I (think) were taken in the end to get it working - in case I ever need to do it again.

  1. Install Python 3.5

    1. URL
    2. https://www.python.org/downloads/release/python-352/
    3. Exact link I used:
    4. https://www.python.org/ftp/python/3.5.2/python-3.5.2-amd64-webinstall.exe
  2. (Fails) pip install xml2rfc

    1. Error related to lxml, for some reason exception being thrown from a VS14 directory?
  3. (Fails) pip install lxml

    1. Ok... so here's what not to do I guess
  4. pip install wheel

    1. After trolling through threads, found that "wheel" can be used to install lxml
  5. python -m pip install lxml-3.6.4-cp35-cp35m-win_amd64.whl

    1. From http://stackoverflow.com/a/30494745/2312877
    2. Grab .whl for lxml (not sure why pip install lxml does not work)
    3. Put in a directory
    4. run command from base
  6. pip install xml2rfc

Hooray! That took forever... apparently stuff just needs to be done in a weird order, and not one that (at least I would) expect. Oh how I miss npm compared to this package manager...

Top comments (0)