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

Error #3

Open
vbanait opened this issue Oct 9, 2020 · 3 comments
Open

Error #3

vbanait opened this issue Oct 9, 2020 · 3 comments

Comments

@vbanait
Copy link

vbanait commented Oct 9, 2020

Windows 10
Python 3.8 properly in path

Issue
issue

@FelipeLema
Copy link

It would help the dev if you could provide more info.

  • Does ngram_test.py run ok?
  • Do you get any error?
  • Can you run ngram.py on terminal?

@vbanait
Copy link
Author

vbanait commented Oct 30, 2020

When running ngram_test.py from console,
SyntaxError: unexpected character after line continuation character
File"" line 1

@FelipeLema
Copy link

I just ran ngram_test.py with python 3.7 on windows and got another error:

Traceback (most recent call last):
  File "ngram_test.py", line 7, in <module>
    import ngram as ng
  File "C:\Users\felipel\Downloads\company-ngram-master\ngram.py", line 17, in <module>
    cache_dir = os.path.join(os.environ['HOME'], '.cache', 'company-ngram')
  File "C:\Users\felipel\AppData\Local\Continuum\anaconda3\lib\os.py", line 678, in __getitem__
    raise KeyError(key) from None
KeyError: 'HOME'

It seems that the code is incompatible with Windows and it's not a config error on user side. I don't know if @kshramt is currently maintaining this, so best shot right now is to fork and maintain a windows-compatible branch oneself

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

2 participants