You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think you installed an old version of chalk. Can you make sure you install the one from my branch (command is in the notebook).
Actually after run command pip install -qqq git+https://github.com/danoneata/chalk@srush-patch-1, nothing happened.
So I open the repo danoneata/chalk, then follow the guidence, run the command conda install -c conda-forge chalk-diagrams
My chalk version:
$ conda list | grep chalk
chalk-diagrams 0.1.2 pyhd8ed1ab_0 conda-forge
I try to run command pip install git+https://github.com/danoneata/chalk@srush-patch-1, But an error occurred:
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
Traceback (most recent call last):
File "/tmp/pip-install-ofq9w8yg/planar_3384c07b07cb49e694e3d9f59655d633/setup.py", line 11, in <module>
from distutils.command.build_py import build_py_2to3 as build_py
ImportError: cannot import name 'build_py_2to3' from 'distutils.command.build_py' (/home/steve/.conda/envs/py37/lib/python3.7/site-packages/setuptools/_distutils/command/build_py.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-ofq9w8yg/planar_3384c07b07cb49e694e3d9f59655d633/setup.py", line 14, in <module>
raise ImportError("build_py_2to3 not found in distutils - it is required for Python 3.x")
ImportError: build_py_2to3 not found in distutils - it is required for Python 3.x
[end of output]
And my python version is totally the same with Colab.
>>> sys.version
'3.7.13 (default, Mar 29 2022, 02:18:16) \n[GCC 7.5.0]'
I'm running into this too fwiw. Using the git patch didn't resolve it outof the box - haven't tried limiting the python version per @ch1y0q yet. Would be good if we could get this working with the latest official version of chalk.
Activity
srush commentedon Jul 15, 2022
I think you installed an old version of
chalk. Can you make sure you install the one from my branch (command is in the notebook).renhaofan commentedon Jul 17, 2022
Actually after run command
pip install -qqq git+https://github.com/danoneata/chalk@srush-patch-1, nothing happened.So I open the repo
danoneata/chalk, then follow the guidence, run the commandconda install -c conda-forge chalk-diagramsMy chalk version:
renhaofan commentedon Jul 17, 2022
I try to run command
pip install git+https://github.com/danoneata/chalk@srush-patch-1, But an error occurred:And my python version is totally the same with Colab.
srush commentedon Jul 17, 2022
Ah thanks. This is a bug with one of the chalk dependencies. I will fix it there.
Sorry about that.
srush commentedon Jul 17, 2022
Okay, this issue should be fixed now. Could you try it again?
renhaofan commentedon Jul 18, 2022
Thanks in advance.
I create a new py37 virtual environment. Then tried again, but not work due to the same error mentioned above.
GdMacmillan commentedon Jul 20, 2022
I also get the same error. unit_y is not defined. Where would this come from?
srush commentedon Jul 20, 2022
@GdMacmillan can you confirm that you installed Chalk from GitHub, as in the first notebook cell?
ch1y0q commentedon Jan 16, 2023
I met this problem before, but solved by:
build_py_2to3was removed fromdistutilsfor higher versions)pip install git+https://github.com/danoneata/chalk@srush-patch-1btw, I did above with
requirements.txtwhich would make setting up environment easieraustinvhuang commentedon Mar 13, 2023
I'm running into this too fwiw. Using the git patch didn't resolve it outof the box - haven't tried limiting the python version per @ch1y0q yet. Would be good if we could get this working with the latest official version of chalk.
srush commentedon Mar 13, 2023
Oh, I'll fix this up and make sure they are compatible.