Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import Error on installed package (wikitools)

Tags:

python

I have installed wikitools using pip, but when I write:

from wikitools import wiki, api

in Python I get the following message:

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    from wikitools import wiki, api
  File "C:\Python35\lib\site-packages\wikitools\__init__.py", line 19, in <module>
    from wiki import *
ImportError: No module named 'wiki'

What's the problem here? I'm using Python 3.5.

like image 693
Knokkelgeddon Avatar asked Dec 06 '25 14:12

Knokkelgeddon


1 Answers

According to this page, wikitools is not compatible with Python 3:

Requirements

  1. Python 2.5+. Not compatible with Python 3; not tested on older versions
  2. Bob Ippolito's simplejson module, if using Python < 2.6 http://pypi.python.org/pypi/simplejson
  3. To upload files or import XML, you need Chris AtLee's poster package http://pypi.python.org/pypi/poster
  4. The wiki this is used for should be running at least MediaWiki version 1.13 and have the API enabled.
like image 191
Dataman Avatar answered Dec 08 '25 06:12

Dataman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!