安装完依赖库之后运行出问题OSChina For PC

隔壁王叔 发布于 2013/12/17 22:23
阅读 480
收藏 0

@铂金小鸟 你好,想跟你请教个问题:

我在另一台机器上面没有问题,另一台是64位 win7操作系统,有问题的这台是32位 win7系统

错误信息是

C:\Python27\python.exe E:/oschina-for-pc/OSChina-client-pc/src/Services.py
Traceback (most recent call last):
  File "E:/oschina-for-pc/OSChina-client-pc/src/Services.py", line 12, in <module>
    from Window import Window
  File "E:\oschina-for-pc\OSChina-client-pc\src\Window.py", line 17, in <module>
    from TweetWindow import TweetWindow
  File "E:\oschina-for-pc\OSChina-client-pc\src\TweetWindow.py", line 3, in <module>
    import AppProperty,Utils
  File "E:\oschina-for-pc\OSChina-client-pc\src\Utils.py", line 5, in <module>
    from bs4 import BeautifulSoup,Comment
  File "C:\Python27\lib\site-packages\bs4\__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "C:\Python27\lib\site-packages\bs4\builder\__init__.py", line 308, in <module>
    from . import _htmlparser
  File "C:\Python27\lib\site-packages\bs4\builder\_htmlparser.py", line 7, in <module>
    from HTMLParser import (
  File "C:\Python27\lib\HTMLParser.py", line 47, in <module>
    """, re.VERBOSE)
  File "C:\Python27\lib\re.py", line 190, in compile
    return _compile(pattern, flags)
  File "C:\Python27\lib\re.py", line 242, in _compile
    raise error, v # invalid expression
sre_constants.error: nothing to repeat


Process finished with exit code 1

加载中
0
铂金小鸟
铂金小鸟
1:httplib2 2:BeautifulSoup (bs4) 3:xmltodict 4:pyqt v4.9.2
@疯狂的小莫 检查下这几个库是否都安装了,再不行的话,就把 BeautifulSoup 换成 4.2.1的。

http://www.crummy.com/software/BeautifulSoup/bs4/download/4.2/beautifulsoup4-4.2.1.tar.gz

这个错误就是bs里面报的。

0
铂金小鸟
铂金小鸟
BeautifulSoup 装的什么版本的?
隔壁王叔
隔壁王叔
beautifulsoup4-4.3.2
返回顶部
顶部