-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
import opennre 出错 #217
Comments
Please provide more details (e.g., system version, detailed error message) |
|
Just now, l also meet the same error when import opennre. My platform is windows10,my package is as follows: boto3 1.10.2 |
Sorry that for now we only support the Linux platform. Maybe you can try to use the ubuntu command line in Windows 10, or you can change the path format (the error is mainly due to the different formats of path between Linux and windows). |
yes, you are right.import opennre is ok on ubuntu platform,thank you.@gaotianyu1350 |
修改opennre下的pretrain.py line11 改为default_root_path = os.path.join(os.getcwd(), '.opennre'),windows下没有HOME环境变量,然后wget的部分改成window右斜杠的目录命名方法,并下载window下的wget.exe并设置环境变量,既可以在windows下运行easy start |
Change C:\Users......\OpenNRE\opennre -> pretrain.py line no 11 as below. |
it works on macOS too |
感谢解答!
…---原始邮件---
发件人: ***@***.***>
发送时间: 2022年4月14日(周四) 下午4:30
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [thunlp/OpenNRE] import opennre 出错 (#217)
修改opennre下的pretrain.py line11 改为default_root_path = os.path.join(os.getcwd(), '.opennre'),windows下没有HOME环境变量,然后wget的部分改成window右斜杠的目录命名方法,并下载window下的wget.exe并设置环境变量,既可以在windows下运行easy start
it works on macOS too
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
请问如何下载window下的wget.exe并设置环境变量呢,有没有大哥具体说一下 |
安装后import opennre 出错:TypeError: expected str, bytes or os.PathLike object, not NoneType,请问有遇到同样问题的吗?
The text was updated successfully, but these errors were encountered: