mongoengine will not run on (now released) Python 3.7

Created on 28 Jun 2018  路  19Comments  路  Source: MongoEngine/mongoengine

I know the error has been discussed before:

generator raised StopIteration

But now that Python 3.7 is out, mongoengine will literally not work on the current version of Python 3. Here's how one of my sites looks on it today. Any fixes / releases coming?

screen shot 2018-06-27 at 5 39 12 pm
screen shot 2018-06-27 at 5 39 39 pm

Most helpful comment

Hey @erdenezul @wojcikstefan and everyone else, I know the current master branch already fixes this problem. Is there any way to just release it as 0.15.1 so we can use MongoEngine & Python 3.7?

All 19 comments

Hey @erdenezul @wojcikstefan and everyone else, I know the current master branch already fixes this problem. Is there any way to just release it as 0.15.1 so we can use MongoEngine & Python 3.7?

@mikeckennedy I drafted 0.15.1 that you could see in releases tab. Unfortunately and somehow, pip didn't trigger that version

Thanks @erdenezul So is it just a matter of time before it's picked up by PyPI?

@mikeckennedy I don't know much about when PyPi trigger version from github.com, it happened in the past(pip didn't trigger version).

OK, I don't know much about it myself either. Fingers crossed. :)

And thank you!

@touilleMan could you please help to trigger pip version?

Thanks for the quick fix guys!

@erdenezul Appologies, the trouble comes from me: 12b846586c4e72d712920d32e595146911c4f9e2
Travis's Pypi release hook only trigger if PYMONGO env var is 3.0 (see https://github.com/MongoEngine/mongoengine/blob/2121387aa2373491449c2c207e94c76ff82ed7a4/.travis.yml#L106) but my commit replace this value by 3.X...
I'm committing a fix right away ;-)

b070e7de0765f5d364474c832fb28d91e04a884e should make the trick, @erdenezul I let you do the release

could you also bump version here, because pip shows version name 0.15 when I install 0.15.2. Maybe it also will trigger pipy to update the version

@erdenezul you're going to have to update the file @SandeR2012 is pointing to, I was going to create a PR, but I don't know what you want to call it 0.15.1, 0.15.2 or 0.15.3

you may also want to update the changelog while you're at it

@erdenezul nudge... ;)

@mikeckennedy I drafted release with changed version=0.15.3 but travis failed because of #1815 which didn't trigger pypi (https://jira.mongodb.org/browse/PYTHON-1609).
@touilleMan any help?

@erdenezul you should tweak the pymongo requirements in tox.ini:
https://github.com/MongoEngine/mongoengine/blob/1241a902e3a0d5b1fac919d77dc191fd47a4d966/tox.ini#L10

Typically something like mg3x: PyMongo>=3.0,<3.7

@touilleMan then draft release again or delete existing release and create again?

@mikeckennedy 0.15.3 is released :)

Fantastic news, thank you all for the hard work!

Was this page helpful?
0 / 5 - 0 ratings