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

moved tokenize.py file to fix installation issues (via pip from github) #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

apacuk
Copy link

@apacuk apacuk commented Jun 23, 2022

  • fixed tests

Version available in pip (https://pypi.org/project/rouge-score/) is outdated.

Installation from master:

pip install -e "git+https://github.com/google-research/google-research.git#egg=rouge_score&subdirectory=rouge

failed with:

File "/home/jupyter-apacuk/.conda/envs/encoder_decoder/lib/python3.8/linecache.py", line 136, in updatecache
    with tokenize.open(fullname) as fp:
AttributeError: module 'tokenize' has no attribute 'open'

due to file tokenize.py that hide standard library module tokenize.

Andrzej Pacuk added 3 commits June 23, 2022 08:45
+ fixed tests

Version available in pip (https://pypi.org/project/rouge-score/) is outdated.

Installation from master:
```
pip install -e "git+https://github.com/google-research/google-research.git#egg=rouge_score&subdirectory=rouge
```
failed with:
```
File "/home/jupyter-apacuk/.conda/envs/encoder_decoder/lib/python3.8/linecache.py", line 136, in updatecache
    with tokenize.open(fullname) as fp:
AttributeError: module 'tokenize' has no attribute 'open'
```
due to file `tokenize.py` that hide standard library module `tokenize`.
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

Successfully merging this pull request may close these issues.

1 participant