Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Cython compiled check in ipython #573

merged 4 commits into from Jun 4, 2019


None yet
2 participants
Copy link

commented Jun 3, 2019

Addresses the issue raised in #548 related to running non-compiled in IPython

Addresses the issue raised in #548 related to running non-compiled in IPython

@dmontagu dmontagu referenced this pull request Jun 3, 2019


cython #548

5 of 5 tasks complete

This comment has been minimized.

Copy link
Contributor Author

commented Jun 3, 2019

@samuelcolvin Not sure why the build is failing. It says

2:58:53 PM: Running Sphinx v2.0.1
2:58:54 PM: Configuration error:
2:58:54 PM: There is a programmable error in your configuration file:
2:58:54 PM: Traceback (most recent call last):
2:58:54 PM:   File "/opt/buildhome/python3.6/lib/python3.6/site-packages/sphinx/", line 361, in eval_config_file
2:58:54 PM:     execfile_(filename, namespace)
2:58:54 PM:   File "/opt/buildhome/python3.6/lib/python3.6/site-packages/sphinx/util/", line 86, in execfile_
2:58:54 PM:     exec(code, _globals)
2:58:54 PM:   File "/opt/build/repo/docs/", line 85, in <module>
2:58:54 PM:     from pydantic.version import VERSION
2:58:54 PM:   File "pydantic/", line 2, in init pydantic.__init__
2:58:54 PM:   File "pydantic/", line 8, in init pydantic.dataclasses
2:58:54 PM:   File "pydantic/", line 68, in init pydantic.main
2:58:54 PM: NameError: name 'cython' is not defined

in the build logs (, but I don't understand how the change I made could have introduced this error.

Also, the tests pass for me locally whether or not I have cython installed in the testing environment.

Copy link

left a comment

No idea why this fails, but it does. Both on travis and netlify.

wrap this in an AttributeError try/except and add pragma: no cover wherever required.

Please add an entry to history too.

@samuelcolvin samuelcolvin changed the title Update Fix Cython compiled check in ipython Jun 4, 2019


This comment has been minimized.

Copy link

commented Jun 4, 2019

Codecov Report

Merging #573 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #573   +/-   ##
  Coverage     100%   100%           
  Files          15     15           
  Lines        2508   2508           
  Branches      501    501           
  Hits         2508   2508

samuelcolvin added some commits Jun 4, 2019

@samuelcolvin samuelcolvin assigned samuelcolvin and unassigned dmontagu Jun 4, 2019

@samuelcolvin samuelcolvin merged commit 6d5c48e into samuelcolvin:master Jun 4, 2019

5 of 8 checks passed

Header rules No header rules processed
Pages changed 1 new file uploaded
Redirect rules No redirect rules processed
Mixed content No mixed content detected
codecov/project 100% remains the same compared to d73aa1b
continuous-integration/travis-ci/pr The Travis CI build passed
deploy/netlify Deploy preview ready!
samuelcolvin.pydantic Build #20190604.23 succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.