importing hyrule #2301
-
I have been trying to import collections.assoc from hyrule, but I always get the same error. Even with (import hyrule). This is the error message:
|
Beta Was this translation helpful? Give feedback.
Answered by
gabriel-francischini
Jun 4, 2022
Replies: 1 comment 6 replies
-
Which versions of Hy and Hyrule are you using? This seems to work in a virtual env: (hy-dev) gabriel@linuxstudio:/tmp$ hy
Hy 1.0a4 using CPython(main) 3.10.4 on Linux
=> (require hyrule.collections [assoc])
=>
=> (do (setv collection {}) (assoc collection "Dog" "Bark") (print collection))
{'Dog': 'Bark'}
=> Here's the environment: (hy-dev) gabriel@linuxstudio:/tmp$ pip list
Package Version
---------------- -------
appdirs 1.4.4
colorama 0.4.4
funcparserlib 1.0.0
funcy 1.17
funcy-chain 0.2.0
hy 1.0a4 <---
hyrule 0.1 <---
multipledispatch 0.6.0
pip 22.1.2
pyrsistent 0.18.1
rply 0.7.8
setuptools 62.3.2
six 1.16.0
toolz 0.11.2
wheel 0.37.1
(hy-dev) gabriel@linuxstudio:/tmp$ conda list python
# packages in environment at /home/superwolf/miniconda3/envs/hy-dev:
#
# Name Version Build Channel
python 3.10.4 h2660328_0_cpython conda-forge
python_abi 3.10 2_cp310 conda-forge You can upgrade your versions of hy and hyrule with: pip install --upgrade --pre hy hyrule |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
esakilpi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which versions of Hy and Hyrule are you using?
This seems to work in a virtual env:
Here's the environment: