explodinglabs/jsonrpcserver

FileNotFoundError request-schema.json

programClown opened this issue · 4 comments

After I pyinstaller my python scripts, run the exe file report can't find 'C:\\Users\\XXX\\AppData\\Local\\Temp\\_MEI83882\\jsonrpcserver\\request-schema.json'

bcb commented

This was asked in jsonrpcclient also, does it help you? explodinglabs/jsonrpcclient#155

Sorry, i meet the same error after change my spec file as follow

a = Analysis( ...
             datas=[('Lib\\site-packages\\jsonrpcserver\\request-schema.json','.')],
              ...)

Thanks @bcb ,i have solved it.

The spec file write as follow:

a = Analysis( ...
             datas=[('Lib\\site-packages\\jsonrpcserver\\request-schema.json','jsonrpcserver')],
              ...)

reference: #using-data-files-from-a-module

bcb commented

Great 👍