-
Notifications
You must be signed in to change notification settings - Fork 47
import error on Windows, no "HOME" environment variable #148
Comments
@bnn00023 I think it's because you are using Windows and we don't have any testings for Windows platform. Honestly, this is a side project and none of developers of this project using zdict on Windows. See these two lines in But, we will be glad to see zdict work on Windows, so I will try to fix this bug. Yet, I don't think zdict will work on Windows just after I solve this bug. (If it does, it would be great. Just let you know first.) It would be great if you can help us test zdict on Windows platform. =) |
Use `os.path.expanduser` instead of using `os.path.join` directly, since the formmer is better handled for Windows. ref: <https://docs.python.org/3/library/os.path.html#os.path.expanduser>
Thank your answer,and my platform is windows 7. If need my test on W7 or W10,it is my pleasure. |
@bnn00023 I'm wondering if you can use |
Yes I can. But... I never use docker. I will learn it. Give me some time. |
this is on Windows 7
I try search "readline" want know what's happen , but I lost it... I don't know my operating is right or wrong. if it's wrong .Please tell me. |
I don't think CPython has builtin readline support on Windows. There is a pure Python implementation called pyreadline for Windows, but it isn't updated for 2 years. The pyreadline was developed by IPython community as gnureadline replacement for Windows, but they removed both pyreadline and gnureadline dependencies in favor of prompt-toolkit now. |
Actually, I have a opening issue for prompt-toolkit support, but I've never spent time on it :P |
We probably are able to run on the Windows Subsystem for Linux though, but I don't have any enviroment to test. |
@wdv4758h
In Python Prompt Toolkit\README.rst. Should I use Python 3.5? |
I think But the problem is Let me summarize them:
|
@bnn00023 You did it wrong when you typed You can use |
Use `os.path.expanduser` instead of using `os.path.join` directly, since the formmer is better handled for Windows. ref: <https://docs.python.org/3/library/os.path.html#os.path.expanduser>
+ Remove Python 2. + Added install part.
Install gnureadline for OSX with Python version <= 3.5. Install pyreadline for Windows.
No need to use patch for linux, darwin and windows because we will run test on all these platforms.
Use `os.path.expanduser` instead of using `os.path.join` directly, since the formmer is better handled for Windows. ref: <https://docs.python.org/3/library/os.path.html#os.path.expanduser>
Uh oh!
There was an error while loading. Please reload this page.
Hi zdict:
I feel this is good stuff,I want use it.First I install it.And I use my Python3.6 import zdict,that issue error.
My operating is wrong? Sorry my English is not well.
The text was updated successfully, but these errors were encountered: