Unhandled exception in RNS when using pyinstaller #332
Unanswered
ThomasFreedman
asked this question in
Help & Questions
Replies: 1 comment 4 replies
-
I haven't used pyinstaller, but this seems partly like a python path issue. LocalInterface and Interface are modules in the python tree and should always be found, so that does sound like an issue with pyinstaller (or some setup for it you had to do?) The below is probably not fatal, although if you don't see it launch an instance successfully then it will be:
Are you running an instance of Reticulum already on that machine when this occurs? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using an RNS daemon started at system startup with a systemd unit. It runs under a user account, named x for example. It uses the configuration in /etc/reticulum, which is owned by user x and the error occurs when I run the app as user x. The permissions on the /etc/reticulum directory (and all subfolders) are 755, and files are 644.
When I run the app normally with the python interpreter all is fine. I use a hard-coded config path string I pass to the RNS.Reticulum constructor of "/etc/reticulum". I have all of the Interfaces commented out in the config except a TCP Client Interface.
When I run the executable produced by pyinstaller the app produces this error:
I'm using pyInstaller for the first time and have been studying the docs and looking for info online about it but so far I'm unable to get a grip on this issue. I doubt it's an RNS problem, although there are plenty of "ToDo" comments in the Reticulum.py file tthat might impact on this. PyInstaller produces the following warnings related to RNS, but these may not be indicative of actual problems due to conditional imports.
I don't see anything in that list which looks like an issue, since I'm only using the TCP Client Interface. That it complains "Interface" is not defined seems very odd though.
Posting this hoping others here may have experience using PyInstaller and can offer suggestions on how to resolve this runtime error.
Beta Was this translation helpful? Give feedback.
All reactions