yi-ji / NeteaseMusicAbroad

Unblock regional restrictions for NeteaseCloudMusic on macOS/Linux. 网易云音乐macOS/Linux解除歌曲锁区限制。
The Unlicense
398 stars 40 forks source link

No module named service_identity_Solved #41

Closed rmit-s3617315-Katrine-Ren closed 5 years ago

rmit-s3617315-Katrine-Ren commented 5 years ago

Hi yi-ji,

I ran the NeteaseMusicProxy.py and it returned the message as following:

:0: UserWarning: You do not have a working installation of the service_identity module: 'No module named service_identity'. Please install it from https://pypi.python.org/pypi/service_identity and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.

2019-07-31 17:29:07+1000 [-] Log opened. 2019-07-31 17:29:12+1000 [-] NeteaseMusicProxyFactory starting on 32794 2019-07-31 17:29:12+1000 [-] Starting factory <main.NeteaseMusicProxyFactory instance at 0x10c84e7e8> 2019-07-31 17:32:20+1000 [-] http://music.163.com/api/feedback/client/log?MUSIC_A=72d9020673feb01447ed48f7e0e8a781430ebca26d55f21723449d12b82d2f3dcb9352d2bb3cb879f1dc06d1aab65e3e850c61c4b018d14c853dc3117a0bd5d135c0f8303e3442ba5f4137cf0c987435a2942e412df393ea39cd2d04ccb8fc2744a96df7ffa646ab9e2c3c7640b5c6f80dbe115efc218ca4c3061cd18d77b7a0 2019-07-31 17:32:20+1000 [-] Starting factory <main.NeteaseMusicProxyClientFactory instance at 0x10c867bd8> 2019-07-31 17:32:21+1000 [-] "127.0.0.1" - - [31/Jul/2019:07:32:20 +0000] "POST http://music.163.com/api/feedback/client/log?MUSIC_A=72d9020673feb01447ed48f7e0e8a781430ebca26d55f21723449d12b82d2f3dcb9352d2bb3cb879f1dc06d1aab65e3e850c61c4b018d14c853dc3117a0bd5d135c0f8303e3442ba5f4137cf0c987435a2942e412df393ea39cd2d04ccb8fc2744a96df7ffa646ab9e2c3c7640b5c6f80dbe115efc218ca4c3061cd18d77b7a0 HTTP/1.1" 200 12 "-" "NeteaseMusic/790 CFNetwork/897.15 Darwin/17.5.0 (x86_64)" 2019-07-31 17:32:21+1000 [-] [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly. 2019-07-31 17:32:21+1000 [-] ] 2019-07-31 17:32:21+1000 [-] Stopping factory <main.NeteaseMusicProxyClientFactory instance at 0x10c867bd8> 2019-07-31 17:34:21+1000 [-] http://music.163.com/api/feedback/client/log?MUSIC_A=72d9020673feb01447ed48f7e0e8a781430ebca26d55f21723449d12b82d2f3dcb9352d2bb3cb879f1dc06d1aab65e3e850c61c4b018d14c853dc3117a0bd5d135c0f8303e3442ba5f4137cf0c987435a2942e412df393ea39cd2d04ccb8fc2744a96df7ffa646ab9e2c3c7640b5c6f80dbe115efc218ca4c3061cd18d77b7a0 2019-07-31 17:34:21+1000 [-] Starting factory <main.NeteaseMusicProxyClientFactory instance at 0x10c9aeb00> 2019-07-31 17:34:22+1000 [-] "127.0.0.1" - - [31/Jul/2019:07:34:22 +0000] "POST http://music.163.com/api/feedback/client/log?MUSIC_A=72d9020673feb01447ed48f7e0e8a781430ebca26d55f21723449d12b82d2f3dcb9352d2bb3cb879f1dc06d1aab65e3e850c61c4b018d14c853dc3117a0bd5d135c0f8303e3442ba5f4137cf0c987435a2942e412df393ea39cd2d04ccb8fc2744a96df7ffa646ab9e2c3c7640b5c6f80dbe115efc218ca4c3061cd18d77b7a0 HTTP/1.1" 200 12 "-" "NeteaseMusic/790 CFNetwork/897.15 Darwin/17.5.0 (x86_64)" 2019-07-31 17:34:22+1000 [-] [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly. 2019-07-31 17:34:22+1000 [-] ] 2019-07-31 17:34:22+1000 [-] Stopping factory <main.NeteaseMusicProxyClientFactory instance at 0x10c9aeb00>

Hope you can offer a quick solution. Thank you so much in advance~

Cheers, Katrine

rmit-s3617315-Katrine-Ren commented 5 years ago

FYI, the working environment was public Wi-Fi

rmit-s3617315-Katrine-Ren commented 5 years ago

Follow up: The package service_identity has been installed, given the warning message as above. However, it didn't solve the problem, as the Helper script is still not working. : (

Log: 2019-07-31 17:55:03+1000 [-] Log opened. 2019-07-31 17:55:08+1000 [-] NeteaseMusicProxyFactory starting on 32794 2019-07-31 17:55:08+1000 [-] Starting factory <main.NeteaseMusicProxyFactory instance at 0x110c224d0>

yi-ji commented 5 years ago

Please try pip install service_identity --force Also replace pip with pip3 if you're using python3

Could you report your macOS version, python version, NeteaseMusic version and check the network proxy setting as listed in FAQ?

rmit-s3617315-Katrine-Ren commented 5 years ago

Hi yi-ji,

Thanks for the reply.

I have installed the service_identity module with pip, after that there is no warning message coming out.

Log#2: 2019-08-01 01:58:34+1000 [-] http://music.163.com/api/feedback/client/log?MUSIC_A=72d9020673feb01447ed48f7e0e8a781430ebca26d55f21723449d12b82d2f3dcb9352d2bb3cb879f1dc06d1aab65e3e850c61c4b018d14c853dc3117a0bd5d135c0f8303e3442ba5f4137cf0c987435a2942e412df393ea39cd2d04ccb8fc2744a96df7ffa646ab9e2c3c7640b5c6f80dbe115efc218ca4c3061cd18d77b7a0 2019-08-01 01:58:34+1000 [-] Starting factory <main.NeteaseMusicProxyClientFactory instance at 0x108c0cbd8> 2019-08-01 01:58:36+1000 [-] "127.0.0.1" - - [31/Jul/2019:15:58:35 +0000] "POST http://music.163.com/api/feedback/client/log?MUSIC_A=72d9020673feb01447ed48f7e0e8a781430ebca26d55f21723449d12b82d2f3dcb9352d2bb3cb879f1dc06d1aab65e3e850c61c4b018d14c853dc3117a0bd5d135c0f8303e3442ba5f4137cf0c987435a2942e412df393ea39cd2d04ccb8fc2744a96df7ffa646ab9e2c3c7640b5c6f80dbe115efc218ca4c3061cd18d77b7a0 HTTP/1.1" 200 12 "-" "NeteaseMusic/790 CFNetwork/897.15 Darwin/17.5.0 (x86_64)" 2019-08-01 01:58:36+1000 [-] [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly. 2019-08-01 01:58:36+1000 [-] ] 2019-08-01 01:58:36+1000 [-] Stopping factory <main.NeteaseMusicProxyClientFactory instance at 0x108c0cbd8>

======================= python version: Python 2.7.14 MacOS version: 10.13.4 NeteaseMusic version: 2.1.1

The network proxy setting has been set as "Automatic Proxy Configuration" .

Cheers, Katrine

rmit-s3617315-Katrine-Ren commented 5 years ago

I just reinstalled NeteaseMusic in the version 1.5.10 and it works very well.

Problem solved! : ) Cheers mate~

yi-ji commented 5 years ago

I see. Sorry this tool does not support NeteaseMusic version 2.0.0 and above (#29) as of now. Please install NeteaseMusic with versions 1.x.x. Sorry for the inconvenience.

rmit-s3617315-Katrine-Ren commented 5 years ago

That's all right. A good tool overall. Thank you all the same!