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

poetry add python-i18n[YAML] #2992

Closed
1 task done
CarolHsu opened this issue Sep 28, 2020 · 3 comments
Closed
1 task done

poetry add python-i18n[YAML] #2992

CarolHsu opened this issue Sep 28, 2020 · 3 comments
Labels
area/docs Documentation issues/improvements

Comments

@CarolHsu
Copy link

Issue

So I encounter a weird issue with python-i18n, I noticed that it installs with extras(require_extras) pyyaml, but it doesn't really load i18n.loaders.yaml_loader on my end.

you can probably re-present this issue by

$ poetry add python-i18n[YAML]
$ poetry run python3

import i18n
i18n.loaders.yaml_loader 
> #AttributeError: module 'i18n.loaders' has no attribute 'yaml_loader'

---
$ pip3 install python-i18n[YAML]
$ python3

import i18n
i18n.loaders.yaml_loader 

Please do advice, appreciate!

@CarolHsu CarolHsu added area/docs Documentation issues/improvements status/triage This issue needs to be triaged labels Sep 28, 2020
@abn
Copy link
Member

abn commented Sep 28, 2020

@CarolHsu can you try with the latest preview?

$ docker run --rm -i --entrypoint bash python:3.8 <<EOF
> set -e
> python -m pip install -q poetry==1.1.0rc1
> python -m poetry new foobar
> pushd foobar
> sed -i /pytest/d pyproject.toml
> python -m poetry add python-i18n[yaml]
> python -m poetry run python -c "import i18n; print(i18n.loaders.yaml_loader)"
> EOF
Created package foobar in foobar
/foobar /
Creating virtualenv foobar-lWDpn5M1-py3.8 in /root/.cache/pypoetry/virtualenvs
Using version ^0.3.9 for python-i18n

Updating dependencies
Resolving dependencies...

Writing lock file

Package operations: 2 installs, 0 updates, 0 removals

  • Installing pyyaml (5.3.1)
  • Installing python-i18n (0.3.9)
<module 'i18n.loaders.yaml_loader' from '/root/.cache/pypoetry/virtualenvs/foobar-lWDpn5M1-py3.8/lib/python3.8/site-packages/i18n/loaders/yaml_loader.py'>

Also note that uppercase YAML might cause issues at the moment. We should consider normalising this.

@CarolHsu
Copy link
Author

CarolHsu commented May 6, 2021

yes, that works!

Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/docs Documentation issues/improvements
Projects
None yet
Development

No branches or pull requests

2 participants