rubik / xenon

Monitoring tool based on radon

Home Page:http://xenon.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest version of radon causes weird warnings with xenon 0.5.2

spmaniato opened this issue · comments

Running xenon (version 0.5.1 or 0.5.2 with mando-0.3.3 and radon-1.4.2) on our code base (Python 2.7) works as expected. But as of very recently, the latest dependencies (mando-0.6.4 and radon-2.0.3) are causing weird warnings of this form:

WARNING:xenon:cannot parse path/to/source.py: invalid syntax (<unknown>, line 1)

There is nothing wrong with those (dozens of) files. Downgrading to radon-1.4.2 gets rid of the warnings.

Not a critical issue, but figured worth opening a ticket for 🙂 Thanks!

PS1. I just confirmed that radon-2.0.2 works. The issue was introduced in radon-2.0.3 ℹ️
PS2. Oops, looks like there was already a ticket in radon's issue tracker: rubik/radon#133

Exactly, that's a regression introduced in the last relase, sorry ;) The issue is the same, but I'll close this one when the other one is fixed.

I verified and it should work now, with radon 2.1.1. Don't hesitate to open another issue if the problem persists.
This required the release of a new version, xenon 0.5.3, since the requirements on radon were too strict and didn't allow the newest version.