question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proxy() raises exception when starting server in Rhino Mac 6

See original GitHub issue

Describe the bug

While launching a Proxy() server in rhino mac 6.0, a ValueError exception is raised by rhino’s subprocess.py stating: “Cannot redirect stderr to stdout yet.”.

Having a closer look at it, this issue arises when instantiating Popen()in proxy’s start_server() method as the system complains about the arguments being passed to the stdout and stderr parameters of the constructor. In its current state, it looks as follows:

self._process = Popen(args, stdout=PIPE, stderr=STDOUT, *args, **kwargs)

Went to check whether the issue would persist should an XFunc() would be called, and to discard if this was a shady rhino-for-mac-update-issue, but to my surprise this operated fine.

Therefore, after inspecting what is dissimilar between Proxy() and XFunc(), I have got around the problem by setting stderr equal to PIPE; looking in sum as follows:

self._process = Popen(args, stdout=PIPE, stderr=PIPE, *args, **kwargs)

Nevertheless, I am not sure if this modification would have any potential side effects down the road.

To Reproduce

from compas.rpc import Proxy
from compas.utilities import XFunc

my_xfunc = XFunc('myfavoriteexternalmethod')
print('xfunc worked like a charm')

my_proxy = Proxy()
print('proxy worked like a charm too')

Expected behavior Proxy() server should be started smoothly.

Desktop:

  • OS: OSX Mojave
  • Python version: IronPython 2.7.5 in Rhino Mac 6.0
  • Python package manager. Anaconda

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
yijianghcommented, Oct 24, 2019

Just for documentation purposes, this PR (“by coincident”) fixed the Exception: Fault error message when users are trying to use RPC and Proxy with VRay for Rhino installed on their computer. I tested it on my Windows 10 laptop, python 3.7, VRay for Rhino 4.00.02.

This bug was reported when using RPC and Proxy in compas 0.7.2 in a workshop with @stefanaparascho.

0reactions
arpastranacommented, Sep 12, 2019

Closed after PR was merged to master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RPC proxy not working with implicit start from Rhino/Grasshopper ...
Using compas_rpc.Proxy as a contextmanager raises an exception. This only happens if a RPC server is not already running. (Same/similar to #265).
Read more >
Rhino 6 clients can not connect to Zoo server - McNeel Forum
No, we are not using proxy server. ... Any ideas? ... I get no connection. This happens when running on the server and...
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
configure" status:RESOLVED resolution:FIXED severity:normal · Bug:188 - "environment variable GZIP cause pilot-link-0.9.6.ebuild (kde) to fail ?
Read more >
LAN Zoo License Manager - Rhino
The LAN Zoo keeps your licenses on your private LAN server and lets you share them among the Rhino users on your network....
Read more >
Change Firewall settings on Mac - Apple Support
Turn on the firewall on your Mac to prevent unwanted connections from the internet or other networks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found