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

AssertionError in traitlets-5.2.2 #740

Closed
cgranade opened this issue May 31, 2022 · 2 comments
Closed

AssertionError in traitlets-5.2.2 #740

cgranade opened this issue May 31, 2022 · 2 comments

Comments

@cgranade
Copy link

As of traitlets-5.2.2, packages that depend on traitlets (e.g.: the jupyter CLI tool) raise assertion errors when importing the traitlets package:

Traceback (most recent call last):
  File "C:\Miniconda\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Miniconda\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Miniconda\Scripts\jupyter-kernelspec.EXE\__main__.py", line 4, in <module>
  File "C:\Miniconda\lib\site-packages\jupyter_client\__init__.py", line 4, in <module>
    from .connect import *
  File "C:\Miniconda\lib\site-packages\jupyter_client\connect.py", line 23, in <module>
    from traitlets.config import LoggingConfigurable
  File "C:\Miniconda\lib\site-packages\traitlets\__init__.py", line 5, in <module>
    from ._version import __version__, version_info
  File "C:\Miniconda\lib\site-packages\traitlets\_version.py", line 7, in <module>
    assert __version__ == (
AssertionError
@FlipperPA
Copy link

FlipperPA commented May 31, 2022

This is because the version in the package includes a .final appended so it doesn't match the string of the version number. Is this assertion check of the version being too clever by half?

EDIT: fix has already been PR'd: https://github.com/ipython/traitlets/pull/739/files

cgranade added a commit to microsoft/iqsharp that referenced this issue May 31, 2022
@JanB1
Copy link

JanB1 commented May 31, 2022

Related Pull Request: #739

cgranade pushed a commit to microsoft/iqsharp that referenced this issue Jun 4, 2022
…ontinuous angle rotations. (#664)

* Update S.T.Json to 6.0.3.

* Use ImmutableList.

* Begin moving experimental noise simulation functionality into main client.

* Continue removing experimental.

* Minor code cleanup.

* Remove more usage of "experimental."

* Fix noise model imports.

* Add IsExternalInit compat file.

* Updated to use alpha from PR, fix warnings.

* More work on noise model serialization.

* Improve noise model API and display.

* Remove "experimental."

* Adapt for a06ac9ca34f77c345e24a4685b66570597cbbdb3 in qsharp-runtime.

* Minor fix to namespace usings.

* Fix one more namespace usage.

* One more using.

* Workaround for ipython/traitlets#740.

* Adapt one test.

* Update to 0.24.213228-beta.

* Update to 0.24.213639-beta.

* Update to 0.24.213639-beta.

* Undo project reference change.

* Update to 0.24.213729-beta.
@azjps azjps closed this as completed Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants