电子商人崩溃

时间:2019-05-31 22:57:23

标签: python aiohttp

我正试图让电子商人运行,并且它不断崩溃。我尝试使用几种不同版本的python3; (python3.6.0、3.6.8和3.7),但是在尝试运行该错误时,我总是遇到相同的错误:

python3.6 -m electrum-merchant
[2019-06-01 02:34:15,120] [INFO] Downloading and installing files into request directory
[2019-06-01 02:34:15,121] [INFO] copying index.html from flavour simple
[2019-06-01 02:34:15,123] [INFO] Downloading jquery
[2019-06-01 02:34:15,125] [DEBUG] GET https://registry.npmjs.org/jquery/latest
[2019-06-01 02:34:16,221] [INFO] Downloaded jquery@3.4.1
/usr/local/lib/python3.6/site-packages/npmdownloader/npmclient.py:19: RuntimeWarning: coroutine 'ClientSession.close' was never awaited # 
  self._session.close()
E | asyncio | Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fee5ec82048>
E | asyncio | Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7fee5e95f108>, 91761.087309849)]']
connector: <aiohttp.connector.TCPConnector object at 0x7fee5ec820b8>
[2019-06-01 02:34:16,260] [INFO] Downloading qrcodejs
[2019-06-01 02:34:16,260] [DEBUG] GET https://registry.npmjs.org/qrcodejs/latest
[2019-06-01 02:34:17,201] [INFO] Downloaded qrcodejs@1.0.0
[2019-06-01 02:34:18,351] [INFO] Processing: /var/www/html/payment/static/jquery/jquery-3.4.1.tgz into /var/www/html/payment/static/jquery
[2019-06-01 02:34:18,472] [INFO] Deleting /var/www/html/payment/static/jquery/jquery-3.4.1.tgz
[2019-06-01 02:34:25,008] [INFO] Processing: /var/www/html/payment/static/qrcodejs/qrcodejs-1.0.0.tgz into /var/www/html/payment/static/qrcodejs
[2019-06-01 02:34:25,021] [INFO] Deleting /var/www/html/payment/static/qrcodejs/qrcodejs-1.0.0.tgz
[2019-06-01 02:34:33,232] [INFO] Downloaded Jquery-UI.
[2019-06-01 02:34:33,459] [INFO] Downloaded Jquery-UI 3.x fix.
[2019-06-01 02:34:35,413] [INFO] Downloaded Jquery-UI themes.
[2019-06-01 02:34:35,413] [INFO] Finished.
E | asyncio | Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fee5e9b5e80>
E | asyncio | Unclosed connector

我认为问题出在npmdownloader,至少我知道该警告:

/usr/local/lib/python3.6/site-packages/npmdownloader/npmclient.py:19: RuntimeWarning: coroutine 'ClientSession.close' was never awaited # 

但是我不确定,因为似乎可以很好地下载那些软件包。 (请参见this thread

我也尝试过手动安装     $ python3.6 setup.py构建     $ python3.6 setup.py install

但是仍然有这个问题。有人知道如何解决此问题吗?我已经按照instructions正确配置了所有内容:

1 个答案:

答案 0 :(得分:0)

事实证明,这些错误无关紧要。电子商户只需配置电子商,以便您可以使用npm version major命令来创建付款请求:

major

可以安全地忽略这些错误。