Skip to content

Unable to connect in packaged electron app #95

@lzkelley

Description

@lzkelley

When my electron application in a development environment, zerorpc works perfectly and my javascript code communicated well with a background python process. When I package the application as a mac app, however, zerorpc is unable to connect and I eventually get a Lost remote error.

This problem is at the interface of zerorpc and electron, but I'm wondering if anyone on this side has any suggestions, or even ideas on where to start debugging... Unfortunately I'm new to Node and js as a whole.

Could it be some sort of (permissions?) issue with access to tcp or the local port when running as an app? Thanks!

  • node 6.11.5

  • electron 1.8.1

  • zerorpc 0.9.7

  • zmq 2.15.3

  • MacOS 10.12.6


Edits:

    1. The python process is initially launched (based on logging the result of require('child_process').spawn('python', [pyPath, port]);)
    1. If I manually run my python backend from the command line, then the electron front-end is able to communicate with it properly.

So I guess this suggestions that either A) the python process is terminating immediately (or soon) after launching; or B) for some reason the communication is failing specifically with the internally launched python process...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions