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

想放在小钢炮里,但发现不支持python2.x,能否支持一下py2? #29

Closed
Crazymmp opened this issue May 4, 2019 · 4 comments

Comments

@Crazymmp
Copy link

Crazymmp commented May 4, 2019

在小钢炮里试了下,前面安装报错:TypeError: 'encoding' is an invalid keyword argument for this function
可以解决,
但是测试运行状态的时候会报错:ImportError: No module named parse
大佬请帮忙解决,谢谢!

@jerrymakesjelly
Copy link
Owner

可以

@Crazymmp
Copy link
Author

大佬,今天用新版V1.4.2重新装了下,发现安装可以成功,最后输出如下:
Using /opt/lib/python2.7/site-packages
Finished processing dependencies for autoremove-torrents==1.4.2
然后测试AMT是否运行时,还是会有以下报错:
[root@phicomm-n1:~/autoremove-torrents]# /opt/bin/autoremove-torrents --view
Traceback (most recent call last):
File "/opt/bin/autoremove-torrents", line 11, in
load_entry_point('autoremove-torrents==1.4.2', 'console_scripts', 'autoremove-torrents')()
File "/opt/lib/python2.7/site-packages/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/opt/lib/python2.7/site-packages/pkg_resources/init.py", line 2843, in load_entry_point
return ep.load()
File "/opt/lib/python2.7/site-packages/pkg_resources/init.py", line 2434, in load
return self.resolve()
File "/opt/lib/python2.7/site-packages/pkg_resources/init.py", line 2440, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/opt/lib/python2.7/site-packages/autoremove_torrents-1.4.2-py2.7.egg/autoremovetorrents/main.py", line 8, in
File "/opt/lib/python2.7/site-packages/autoremove_torrents-1.4.2-py2.7.egg/autoremovetorrents/task.py", line 12, in
File "/opt/lib/python2.7/site-packages/autoremove_torrents-1.4.2-py2.7.egg/autoremovetorrents/strategy.py", line 5, in
File "/opt/lib/python2.7/site-packages/autoremove_torrents-1.4.2-py2.7.egg/autoremovetorrents/filter/tracker.py", line 3, in
ImportError: No module named parse

这个报错可以解决不?

@Crazymmp Crazymmp reopened this May 19, 2019
@jerrymakesjelly
Copy link
Owner

这个报错可以解决不?

1.4.2不是解决Python 2.7的兼容性问题哦

有关兼容py2.7的代码我会提交到这个issue下面的

jerrymakesjelly added a commit that referenced this issue May 19, 2019
jerrymakesjelly added a commit that referenced this issue May 19, 2019
@jerrymakesjelly
Copy link
Owner

1.4.3已更新,感谢支持

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