fastHan icon indicating copy to clipboard operation
fastHan copied to clipboard

您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\\fasthan_large\\all_tasks.json'

Open sxj7473710 opened this issue 1 year ago • 9 comments

您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json',不知道什么原因?

sxj7473710 avatar Nov 21 '23 02:11 sxj7473710

你用的是fasthan2.0吗?切到1.8试试

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: sxj7473710 @.> 发送时间: 2023年11月21日 10:58 收件人: fastnlp/fastHan @.> 抄送: Subscribed @.***> 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json',不知道什么原因?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

fdugzc avatar Nov 21 '23 03:11 fdugzc

感谢您的回复,就是不知道怎么切换到1.8?

sxj @.***

 

------------------ 原始邮件 ------------------ 发件人: "fastnlp/fastHan" @.>; 发送时间: 2023年11月21日(星期二) 中午11:59 @.>; @.@.>; 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

你用的是fasthan2.0吗?切到1.8试试

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: sxj7473710 @.> 发送时间: 2023年11月21日 10:58 收件人: fastnlp/fastHan @.> 抄送: Subscribed @.***> 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json',不知道什么原因?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

sxj7473710 avatar Nov 22 '23 01:11 sxj7473710

感谢您的回复,知道怎么找了,谢谢

sxj @.***

 

------------------ 原始邮件 ------------------ 发件人: "fastnlp/fastHan" @.>; 发送时间: 2023年11月21日(星期二) 中午11:59 @.>; @.@.>; 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

你用的是fasthan2.0吗?切到1.8试试

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: sxj7473710 @.> 发送时间: 2023年11月21日 10:58 收件人: fastnlp/fastHan @.> 抄送: Subscribed @.***> 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json',不知道什么原因?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

sxj7473710 avatar Nov 22 '23 01:11 sxj7473710

您好,我如果在代码中联网下载模型的时候报错: ConnectTimeout: HTTPConnectionPool(host='download.fastnlp.top', port=80): Max retries exceeded with url: /fasthan/fasthan.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B3764F43D0>, 'Connection to download.fastnlp.top timed out. (connect timeout=None)')) 如果我把模型参数下载到本地运行的话,目录如下图

,报错又是这个:

FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_base\all_tasks.json' ConnectTimeout: HTTPConnectionPool(host='download.fastnlp.top', port=80): Max retries exceeded with url: /fasthan/fasthan.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B3764F43D0>, 'Connection to download.fastnlp.top timed out. (connect timeout=None)'))ConnectTimeout: HTTPConnectionPool(host='download.fastnlp.top', port=80): Max retries exceeded with url: /fasthan/fasthan.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B3764F43D0>, 'Connection to download.fastnlp.top timed out. (connect timeout=None)'))

sxj @.***

 

------------------ 原始邮件 ------------------ 发件人: "fastnlp/fastHan" @.>; 发送时间: 2023年11月21日(星期二) 中午11:59 @.>; @.@.>; 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

你用的是fasthan2.0吗?切到1.8试试

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: sxj7473710 @.&gt; 发送时间: 2023年11月21日 10:58 收件人: fastnlp/fastHan @.&gt; 抄送: Subscribed @.***&gt; 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json',不知道什么原因?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.&gt; — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

sxj7473710 avatar Nov 22 '23 01:11 sxj7473710

这个看起来版本还是没换啊,要不你先uninstall现在的fasthan,再install 1.8的。2.0的fasthan不是我做的,现在没人维护的

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: sxj7473710 @.> 发送时间: 2023年11月22日 09:39 收件人: fastnlp/fastHan @.> 抄送: Zhichao Geng @.>, Comment @.> 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

您好,我如果在代码中联网下载模型的时候报错: ConnectTimeout: HTTPConnectionPool(host='download.fastnlp.top', port=80): Max retries exceeded with url: /fasthan/fasthan.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B3764F43D0&gt;, 'Connection to download.fastnlp.top timed out. (connect timeout=None)')) 如果我把模型参数下载到本地运行的话,目录如下图

,报错又是这个:

FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_base\all_tasks.json' ConnectTimeout: HTTPConnectionPool(host='download.fastnlp.top', port=80): Max retries exceeded with url: /fasthan/fasthan.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B3764F43D0&gt;, 'Connection to download.fastnlp.top timed out. (connect timeout=None)'))ConnectTimeout: HTTPConnectionPool(host='download.fastnlp.top', port=80): Max retries exceeded with url: /fasthan/fasthan.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B3764F43D0&gt;, 'Connection to download.fastnlp.top timed out. (connect timeout=None)'))

sxj @.***

&nbsp;

------------------&nbsp;原始邮件&nbsp;------------------ 发件人: "fastnlp/fastHan" @.&gt;; 发送时间:&nbsp;2023年11月21日(星期二) 中午11:59 @.&gt;; @.@.&gt;; 主题:&nbsp;Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

你用的是fasthan2.0吗?切到1.8试试

发自我的iPhone

------------------ 原始邮件 ------------------
发件人: sxj7473710 @.&amp;gt;
发送时间: 2023年11月21日 10:58
收件人: fastnlp/fastHan @.
&amp;gt;
抄送: Subscribed @.***&amp;gt;
主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json',不知道什么原因?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.&amp;gt;
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.
&gt; — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

fdugzc avatar Nov 22 '23 01:11 fdugzc

您好,切换了,

运行代码联网依然是这个, ConnectTimeout: HTTPConnectionPool(host='download.fastnlp.top', port=80): Max retries exceeded with url: /fasthan/fasthan.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B3764EDC90>, 'Connection to download.fastnlp.top timed out. (connect timeout=None)')) 使用网上下载的模型参数在本地运行,报错 FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_base\all_tasks.json' FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_base\all_tasks.json'

sxj @.***

 

------------------ 原始邮件 ------------------ 发件人: "fastnlp/fastHan" @.>; 发送时间: 2023年11月21日(星期二) 中午11:59 @.>; @.@.>; 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

你用的是fasthan2.0吗?切到1.8试试

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: sxj7473710 @.&gt; 发送时间: 2023年11月21日 10:58 收件人: fastnlp/fastHan @.&gt; 抄送: Subscribed @.***&gt; 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53)

您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json',不知道什么原因?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.&gt; — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

sxj7473710 avatar Nov 22 '23 02:11 sxj7473710

请问你解决这个问题了吗

Nancis1130 avatar Jan 12 '24 07:01 Nancis1130

您好,切换了, 运行代码联网依然是这个, ConnectTimeout: HTTPConnectionPool(host='download.fastnlp.top', port=80): Max retries exceeded with url: /fasthan/fasthan.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001B3764EDC90>, 'Connection to download.fastnlp.top timed out. (connect timeout=None)')) 使用网上下载的模型参数在本地运行,报错 FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_base\all_tasks.json' FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_base\all_tasks.json' sxj @.***   ------------------ 原始邮件 ------------------ 发件人: "fastnlp/fastHan" @.>; 发送时间: 2023年11月21日(星期二) 中午11:59 @.>; @.@.>; 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53) 你用的是fasthan2.0吗?切到1.8试试 发自我的iPhone ------------------ 原始邮件 ------------------ 发件人: sxj7473710 @.&gt; 发送时间: 2023年11月21日 10:58 收件人: fastnlp/fastHan @.&gt; 抄送: Subscribed @.&gt; 主题: Re: [fastnlp/fastHan] 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json' (Issue #53) 您好,本地使用模型时总是报错FileNotFoundError: [Errno 2] No such file or directory: 'E:\fasthan_large\all_tasks.json',不知道什么原因? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.&gt; — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

重新下载anaconda,然后直接安装fastHan: pip install fastHan==1.8。这样就可以了

finch-f avatar Jun 08 '24 07:06 finch-f

请问你解决这个问题了吗

重新下载anaconda,然后直接安装fastHan:pip install fastHan==1.8。这之前不要安装其它包。另外我的anaconda是2022年的版本,基于python3.9的。

finch-f avatar Jun 08 '24 07:06 finch-f