Comments (6)
您好,
一般情况下,ChatPaper只依赖于Python环境,所有系统,包括WSL
都是支持的。鉴于您的错误,我们建议您可以这样做:
- 继续尝试多次运行相同服务;
- 换用篇幅内容较短的paper进行服务使用;
- 等待我们全新的ChatPaper上线,全新的ChatPaper将会以更高效、合理、简单的方式运行,并且具有更高的容错率。
谢谢您的支持和理解~
from chatpaper.
我听别人的反馈是,wsl和openai的通信有问题,建议直接用Windows
from chatpaper.
读取本地pdf这块儿,在windows自带的git bash(或者其他命令行)上能够跑出完整的结果,但是进入到WSL之后只能到下面读出三篇文章这里,GPT似乎就不返回结果了。
------------------paper_num: 3------------------ 0 ./pdf_files/ReadMore/2206.03687.pdf 1 ./pdf_files/ReadMore/4102_polyloss_a_polynomial_expansio.pdf 2 ./pdf_files/ReadMore/BenchmarkNLU4FewShotLearning.pdf
WSL到这里就不运行了...但同一台机器的windows上面可以完整跑出结果。
小白第一次尝试WSL...也许是WSL上linux没有配置好?
wsl没法直接连接windows代理
在wsl里部署一个代理后
添加Linux代理
临时添加环境变量
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
export no_proxy=127.0.0.1,localhost
永久添加环境变量得写进用户变量里
编辑 .bashrc 文件 vim ~/.bashrc
文件末尾添加
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
:wq保存退出
载入变量
source ~/.bashrc
检查环境变量是否添加
env | grep -E 'http_proxy|https_proxy
from chatpaper.
读取本地pdf这块儿,在windows自带的git bash(或者其他命令行)上能够跑出完整的结果,但是进入到WSL之后只能到下面读出三篇文章这里,GPT似乎就不返回结果了。
------------------paper_num: 3------------------ 0 ./pdf_files/ReadMore/2206.03687.pdf 1 ./pdf_files/ReadMore/4102_polyloss_a_polynomial_expansio.pdf 2 ./pdf_files/ReadMore/BenchmarkNLU4FewShotLearning.pdf
WSL到这里就不运行了...但同一台机器的windows上面可以完整跑出结果。
小白第一次尝试WSL...也许是WSL上linux没有配置好?wsl没法直接连接windows代理 在wsl里部署一个代理后 添加Linux代理 临时添加环境变量
export http_proxy=http://127.0.0.1:7890 export https_proxy=http://127.0.0.1:7890 export no_proxy=127.0.0.1,localhost
永久添加环境变量得写进用户变量里
编辑 .bashrc 文件 vim ~/.bashrc 文件末尾添加 export http_proxy=http://127.0.0.1:7890 export https_proxy=http://127.0.0.1:7890 :wq保存退出 载入变量 source ~/.bashrc
检查环境变量是否添加
env | grep -E 'http_proxy|https_proxy
是可以的,
export HTTP_PROXY="http://`grep -oP '(?<=nameserver ).+' /etc/resolv.conf`:7890"
export HTTPS_PROXY="http://`grep -oP '(?<=nameserver ).+' /etc/resolv.conf`:7890"
通过这个可以获取ip地址,去走windows本地的clash端口
from chatpaper.
另试了一下找在线论文,WSL也是卡在调用GPT那一步:
Key word: reinforcement learning
Query: chatgpt robot
Sort: SortCriterion.Relevance
all search:
0 A Human-Centered Safe Robot Reinforcement Learning Framework with Interactive Behaviors 2023-03-02 12:41:01+00:00
1 Can ChatGPT Understand Too? A Comparative Study on ChatGPT and Fine-tuned BERT 2023-03-02 14:33:12+00:00
2 Seeing ChatGPT Through Students' Eyes: An Analysis of TikTok Data 2023-03-09 15:46:54+00:00
filter_keys: chatgpt robot
筛选后剩下的论文数量:
filter_results: 1
filter_papers:
0 A Human-Centered Safe Robot Reinforcement Learning Framework with Interactive Behaviors 2023-03-02 12:41:01+00:00
All_paper: 1
paper_path: ./pdf_files/chatgpt robot-2023-03-19-23/A Human-Centered Safe Robot Reinforcement Learning Framework with Interactive Behaviors.pdf
section_page_dict {'Abstract': 0, 'Introduction': 0, 'Conclusion': 10, 'References': 11}
0 Abstract 0
1 Introduction 0
start_page, end_page: 0 10
2 Conclusion 10
start_page, end_page: 10 11
3 References 11
start_page, end_page: 11 20
就没下文了。有点奇怪哈,期待解答~~~
from chatpaper.
读取本地pdf这块儿,在windows自带的git bash(或者其他命令行)上能够跑出完整的结果,但是进入到WSL之后只能到下面读出三篇文章这里,GPT似乎就不返回结果了。
------------------paper_num: 3------------------ 0 ./pdf_files/ReadMore/2206.03687.pdf 1 ./pdf_files/ReadMore/4102_polyloss_a_polynomial_expansio.pdf 2 ./pdf_files/ReadMore/BenchmarkNLU4FewShotLearning.pdf
WSL到这里就不运行了...但同一台机器的windows上面可以完整跑出结果。
小白第一次尝试WSL...也许是WSL上linux没有配置好?wsl没法直接连接windows代理 在wsl里部署一个代理后 添加Linux代理 临时添加环境变量
export http_proxy=http://127.0.0.1:7890/ export https_proxy=http://127.0.0.1:7890 export no_proxy=127.0.0.1,localhost
永久添加环境变量得写进用户变量里
编辑 .bashrc 文件 vim ~/.bashrc 文件末尾添加:export PATH=" source ~/.bashrc
检查环境变量是否添加
env | grep -E 'http_proxy|https_proxy
虽然又出了别的错误,但是你这个提醒很好!
这个工具还是决定去原生环境用吧。
谢谢
from chatpaper.
Related Issues (20)
- chatpaper.py的内容是不是最新的呀
- 全文翻译配置链接丢失 HOT 1
- app.py HOT 3
- Where is the app.py file for Flask ? HOT 1
- 参数缺失,请问这个问题有什么解决办法吗 HOT 3
- [Feature Request] Support InternLM
- [建议]能否在生成的总结文档里边加上文章引用量
- json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 687651 (char 687650) HOT 1
- 增加一个请求地址选项 HOT 2
- SCIPDF不支持苹果芯片 HOT 1
- Flask服务运行,app.py这个文件在哪? HOT 7
- pdf HOT 2
- 想请教作团队作者们
- pdf解析方式疑问
- 缺失param HOT 1
- 总结论文,后半部分经常输出为英文,而非中文
- No module named 'scipdf'
- chat_summary.py HOT 1
- chat_paper.xy报错 HOT 1
- api error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatpaper.