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.

Windows Subsystem for Linux error-- cannot communicate with local orca server process even though server process seems to be running

See original GitHub issue

Hello all,

I am trying to write an image to .svg format using a jupyterlab setup on Windows Subsystem for Linux (WSL). After installing gtk library, installing Xming, configuring env variable DISPLAY=:0, and disabling chrome sandbox, I am still running into issues. Right now, I’m getting the following error output in my python terminal:

For some reason plotly.py was unable to communicate with the
local orca server process, even though the server process seems to be running.

Please review the process and connection information below:

orca status
-----------
    state: running
    executable: /usr/bin/xvfb-run --auto-servernum --server-args -screen 0 640x480x24 +extension RANDR +extension GLX /usr/bin/orca
    version: 1.2.1
    port: 60427
    pid: 29156
    command: ['/usr/bin/xvfb-run', '--auto-servernum', '--server-args', '-screen 0 640x480x24 +extension RANDR +extension GLX', '/usr/bin/orca', 'serve', '-p', '60427', '--plotly', '/home/tyler/.local/share/virtualenvs/thesis-WAlznkOk/lib/python3.7/site-packages/plotly/package_data/plotly.min.js', '--graph-only', '--mathjax', 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js']

Any pieces of advice? Other than examining the server connection, which i’m not entirely sure what is meant by that, I’m wondering if there are any other WSL-compatibility shortcuts i might be able to take. It would be great if this library could include additional documentation/support for WSL

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

2reactions
badaincommented, Apr 9, 2020

Just tried here and can confirm your procedure works @raulf2012!

Some aditional missing shared libraries had to be installed: sudo apt-get install libgtk2.0-0 sudo apt-get install libnss3-dev

Thanks for sharing!

1reaction
raulf2012commented, Dec 23, 2019

Wow I can’t believe it, I got it to work

My steps:

  1. Install conda/anaconda (instructions available elsewhere)
  2. Install nodejs (npm) through conda
  • conda install -c conda-forge nodejs
  1. Install orca through npm via instructions on orca’s README
  • npm install -g electron@1.8.4 orca
  1. Finally, I needed to install a library because of the missing shared libgconf-2.so.4 library
  • sudo apt-get install libgconf-2-4

After these steps, attempting to perform a fig.write_image("figure.pdf") worked properly!

@schlich I’m a bit puzzled by your initial comments on this thread:

After installing gtk library, installing Xming, configuring env variable DISPLAY=:0, and disabling chrome sandbox, I am still running into issues

I didn’t really have to mess around with any of this, I do already have Xming setup properly but the gtk library and chrome sandbox bits are unfamiliar to me

If anybody else can try to confirm the procedure I outlined above and let everybody know if it works that would be great

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Windows Subsystem for Linux | Microsoft Learn
Provides detailed information about common errors and issues people run into while running Linux on the Windows Subsystem for Linux.
Read more >
Solving common issues — ORCA tutorials 5.0 documentation
A quite common initial source of error when trying to run ORCA is that your PATH variables are not set. The PATH and...
Read more >
Cannot communicate with server - snapd - snapcraft.io
I'm running Ubuntu on Windows 10. Yes, I'm using WSL. Ok, I uderstood what is the problem (I think).
Read more >
Cisco AnyConnect Secure Mobility Client Administrator Guide ...
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT. LIMITATION, LOST PROFITS ......
Read more >
Cylance Endpoint Security Setup Guide - BlackBerry Docs
CylancePROTECT Desktop cannot process files secured by user data ... The CylanceOPTICS agent will try to communicate first as the Local System, then...
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