<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello,</div><div><br></div><div>I'm trying to switch an opensource project from setup(scripts=) to setup(entry_points=dict(console_scripts=)) to enable Windows support for its executable script.</div>


<div><br></div><div>If you are feeling generous, you can download my changes and attempt to run them from this branch:</div><div><a href="https://github.com/edbrannin/mkdocs/tree/windows-runnable" target="_blank">https://github.com/edbrannin/mkdocs/tree/windows-runnable</a><br>


</div><div>Zip version: <a href="https://github.com/edbrannin/mkdocs/archive/windows-runnable.zip" target="_blank">https://github.com/edbrannin/mkdocs/archive/windows-runnable.zip</a></div><div><br></div><div>When I run "python setup.py install", it installs the mkdocs module to lib/site-packages/mkdocs and I can import it from a Python shell, but when I run the "mkdocs" command I get this error:<br>


</div><div><br></div><div><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.804800033569336px;background-image:initial;background-repeat:initial">


<code style="margin:0px;padding:1px 5px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;white-space:pre-wrap;background:rgb(238,238,238)">C:\>mkdocs
Traceback (most recent call last):
  File "C:\Python27\Scripts\mkdocs-script.py", line 9, in <module>
    load_entry_point('mkdocs==0.9', 'console_scripts', 'mkdocs')()
  File "C:\Python27\lib\site-packages\distribute-0.6.34-py2.7.egg\pkg_resources.py", line 343, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\Python27\lib\site-packages\distribute-0.6.34-py2.7.egg\pkg_resources.py", line 2307, in load_entry_point
    return ep.load()
  File "C:\Python27\lib\site-packages\distribute-0.6.34-py2.7.egg\pkg_resources.py", line 2013, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named mkdocs</code></p></div><div>There are more details at this StackOverflow question:<br></div><div><a href="http://stackoverflow.com/q/24067318/25625" target="_blank">http://stackoverflow.com/q/24067318/25625</a><br>


</div><div><br></div><div>What am I doing wrong here?</div><div><br></div><div>Thank you for reading this far,</div><div>-Ed Brannin<span class="HOEnZb"><font color="#888888"><br><a href="mailto:edbrannin@gmail.com" target="_blank">edbrannin@gmail.com</a><br>

cell: <a href="tel:585-261-0279" value="+15852610279" target="_blank">585-261-0279</a></font></span></div>
<div><br></div><div>P.S. For the archives, the exact code revision I'm having trouble with is at <a href="https://github.com/edbrannin/mkdocs/tree/b924f2e09e511e8bda35465bc0e103a3401c3bf8" target="_blank">https://github.com/edbrannin/mkdocs/tree/b924f2e09e511e8bda35465bc0e103a3401c3bf8</a></div>



</div>
</div><br><div>P.P.S. I had tried to send this earlier, before I'd subscribed to the list.  Sorry if both copies of this email eventually get delivered.</div></div>