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

Need to restrict colored to <2.0.0 #1

Open
jamespreed opened this issue Nov 1, 2023 · 0 comments
Open

Need to restrict colored to <2.0.0 #1

jamespreed opened this issue Nov 1, 2023 · 0 comments

Comments

@jamespreed
Copy link

The colored dependency had a 2.0.0 release in June of 2023 which breaks some of the previous v1 API.

>>> import colored
>>> colored.__version__
'2.2.3'
>>> import ps1api
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[2], line 1
----> 1 import ps1api

File ~\miniconda3\envs\main\Lib\site-packages\ps1api\__init__.py:4
      1 #!/usr/bin/env python3
      2 # -*- coding: utf-8 -*-
      3 """PS1 Prompt module."""
----> 4 from colored import fg, bg, attr, names
      5 from pathlib import Path
      6 import itertools

ImportError: cannot import name 'names' from 'colored' (C:\Users\me\py\envs\main\Lib\site-packages\colored\__init__.py)
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

1 participant