几天前我更新了El Capitan,从那以后,Pelican一直没有工作过。我问了一个关于SO的问题,关于禁用SIP(无根)认为这是问题的原因;但是这个问题的答案说他们并不认为SIP是罪魁祸首。
鹈鹕社区有什么想法吗? make devserver
会产生以下结果:
Last login: Wed Dec 23 22:30:30 on ttys003
Mischas-MacBook-Pro:~ mischa$ pwd
/Volumes/Macintosh HD/Home
Mischas-MacBook-Pro:~ mischa$ cd /Volumes/SSD/users/mischa/Dropbox/website
Mischas-MacBook-Pro:website mischa$ ls
Makefile pelican.pid srv.pid
content pelicanconf.py subdirectory.txt
develop_server.sh pelicanconf.pyc themes
fabfile.py publishconf.py
output publishconf.pyc
Mischas-MacBook-Pro:website mischa$ make devserver
/Users/mischa/Dropbox/website/develop_server.sh restart
Stale PID, deleting
Stale PID, deleting
Starting up Pelican and HTTP server
/usr/bin/python: No module named html_parser
Traceback (most recent call last):
File "/usr/local/bin/pelican", line 7, in <module>
from pelican import main
File "/Library/Python/2.7/site-packages/pelican/__init__.py", line 20, in <module>
from pelican.generators import (ArticlesGenerator, PagesGenerator,
File "/Library/Python/2.7/site-packages/pelican/generators.py", line 22, in <module>
from pelican.readers import Readers
File "/Library/Python/2.7/site-packages/pelican/readers.py", line 24, in <module>
from six.moves.html_parser import HTMLParser
ImportError: No module named html_parser
Pelican didn't start. Is the Pelican package installed?
make: *** [devserver] Error 1
Mischas-MacBook-Pro:website mischa$
我正在运行 Mac OSX 10.11.2,Python 2.7.10,Pelican 3.6.3
我尝试了这里建议的所有三个解决方案:Error using pelican-quickstart "No module named html_parser"到目前为止没有运气。
思想?
答案 0 :(得分:0)
我遇到了同样的问题,@ jonrsharpe的提示帮助解决了这个问题。我必须从virtualenv -p /usr/bin/python3 XXX
开始。