I've been hunting around trying to figure out why Onion-Py is throwing this error. I had a fresh install and running python 2.7

onion_py.manager.MajorVersionMismatchError: Received OnionOO document with version 3, this library only supports up to version 2.

Anyone else encounter this?

enter image description here

  • 1
    Which version of the OnionPy package are you running? (And are you certain you're on Python version 2.7?) Commented Feb 22, 2016 at 21:50
  • v 0.3.2. and I am 100% positive I'm on 2.7 (2.7.3 to be exact).
    – T.J.
    Commented Feb 23, 2016 at 14:49

1 Answer 1


You need to figure out a way to ensure you are running Python 2.7 and try again.

Most likely you aren't using python 2.7 like you think you are.

Check python from command line by typing python --version.

Then to make sure login to Python command line by typing python and see what version it spits out in the welcome message and type exit() to exit.

Once you confirm you are running 2.7x then install onionpy via pip: pip install onionpy. Also make sure you have Tor running, or onionpy will malfunction.

Do a test (should return summary of current relays)

from onion_py.manager import Manager
from onion_py.caching import OnionSimpleCache
manager = Manager(OnionSimpleCache())
s = manager.query('summary', limit=4)
print s.relays[0].fingerprint
print s.relays[0].nickname
  • I'm running 2.7.3, I've never install anything other than 2.7 on this machine. I'll edit the OP with a screengrab
    – T.J.
    Commented Feb 23, 2016 at 14:29
  • @T.J. Hmm strange. I'm looking into it. What OS you running?
    – james-see
    Commented Feb 23, 2016 at 14:32
  • 1
    Win8.1 (don't judge, work pc =/ )
    – T.J.
    Commented Feb 23, 2016 at 14:33
  • @T.J. Np lol closest I got is a virtualbox of XP that I will check it out on.
    – james-see
    Commented Feb 23, 2016 at 14:52
  • 1
    Thanks for the help, I've exhausted all the options I can think of. I have no idea why it's throwing that error. And it doesn't seem like anyone else (at least that I can find) is encountering it.
    – T.J.
    Commented Feb 23, 2016 at 14:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .