protonscr

Steam Runtime creates import error for OpenCV in Python

steamvrclosed
ValveSoftware/SteamVR-for-Linux#62 · opened 2017-06-29 by naveenT1010 · updated 2017-06-29 · 1 comments · github
NnaveenT1010 2017-06-29 github

Your system information

  • Steam client version: Jun 16 2017
  • Distribution: Ubuntu 16.04
  • Graphics driver version: 381.22
  • Gist for SteamVR System Information: System Report
  • Opted into Steam client beta?:Yes
  • Opted into SteamVR beta?: Yes
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

When I try to run Unreal Engine with steamVR runtime, and I import OpenCV with Python in there, I get import error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib/x86_64-linux-gnu/libhogweed.so.4: undefined symbol: __gmpn_cnd_sub_n

I dont get this error if I am not using steam runtime.

Steps for reproducing this issue:

The simplest way to reproduce this error without Unreal Engine is

  1. run python with steamVR runtime:
$ .steam/steam/ubuntu12_32/steam-runtime/run.sh python
  1. And then try to import cv2 (OpenCV library)
import cv2
Kkisak-valve maintainer 2017-06-29 github