ubuntu-16.04

Issues with onnxruntime on Ubuntu 16.04

笑着哭i 提交于 2021-01-29 16:57:05
问题 I'm trying to run inference on an ONNX model on Ubuntu 16.04 using onnxruntime. But the import statement gives me this error: >>> import onnxruntime /opt/conda/lib/python3.6/site-packages/onnxruntime/capi/_pybind_state.py:13: UserWarning: Cannot load onnxruntime.capi. Error: '/opt/conda/lib/python3.6/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.cpython-36m-x86_64-linux-gnu.so: cannot enable executable stack as shared object requires: Permission denied' warnings.warn("Cannot load

Windows 10 can't connect to Ubuntu 16.04 samba

倾然丶 夕夏残阳落幕 提交于 2021-01-29 12:04:48
问题 I reinstall Ubuntu 16.04 Desktop 32bit on an old laptop and setup samba as https://tutorials.ubuntu.com/tutorial/install-and-configure-samba#0 mentions. When I try to connect from a Windows 10 or Windows 7 machine I get the following: Windows can't communicate with the device or resource(192.168.1.50) The resource is available but is not responding to connection attempts. any suggestion? 回答1: Samba (SMBv1 protocol) is no longer supported on Windows 10. To temporarily re-enable the SMBv1

Kivy - Unable to open device “/dev/input/event7” on Ubuntu, no permission

我怕爱的太早我们不能终老 提交于 2021-01-29 07:19:18
问题 I'm using Ubuntu 16.04 and every time I run any Kivy App (I'm new to both Ubuntu and Kivy), I get the message: [WARNING] [MTD] Unable to open device "/dev/input/event7". Please ensure you have the appropriate permissions. It works normally, I would just like to know why the message appears and if I can get rid of it. It doesn't matter if I run the app from PyCharm or Terminal. When I run it in Windows, everything is fine without this message. 回答1: This message appears because Kivy queries

Issue installing mysql server on ubuntu 16.04

情到浓时终转凉″ 提交于 2021-01-29 06:02:09
问题 I trying to install mysql server on ubuntu 16.04, but when I tried to execute the command: sudo mysql_secure_installation. I am getting the error message: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2). Just tried: sudo apt install mysql-server mysql-client This is my sql version installed: ( mysql --version ): mysql Ver 14.14 Distrib 5.7.12, for Linux (x86_64) using EditLine wrapper It looks like the mysql was installed on my machine.

Use ImageMagick to Generate Image from Text?

◇◆丶佛笑我妖孽 提交于 2021-01-29 05:30:37
问题 I'm trying to use ImageMagick to create thumbnail images that are 3840 x 2160. I need the image to have a black background and white text. The text should be centered vertically and horizontally. I want to be able to set a font size, but if the text would extend off the image, automatically decrease the font size so it fits with some amount of padding on the left and right. I will be doing this in bulk with several hundred thousand images. From what I've been able to find, it looks like you

How to decrease frame rate of USB webcam 2.0 using openCV python

别来无恙 提交于 2021-01-27 13:20:51
问题 I am working on ubuntu 16.04 and using a USB 2.0 webcam. I want to decrease the frame rate somehow since the project I'm working on requires face detection which really lags the video hence want to decrease the frame rate. I've tried implementing the following code import cv2 cap = cv2.VideoCapture(0) cap.set(cv2.CAP_PROP_FPS, 15) fps = int(cap.get(5)) print("fps:", fps) while(cap.isOpened()): ret,frame = cap.read() if not ret: break cv2.imshow('frame', frame) k = cv2.waitKey(1) if k == 27:

pip for python3.7 (Ubuntu 16.04)

十年热恋 提交于 2021-01-21 04:26:06
问题 I am not able to install pip for python 3.7. When I tried to search online, one solution I found was to install pip using get-pip.py. However, it's failing for me: sudo python3.7 get-pip.py Traceback (most recent call last): File "get-pip.py", line 21373, in <module> main() File "get-pip.py", line 197, in main bootstrap(tmpdir=tmpdir) File "get-pip.py", line 82, in bootstrap import pip._internal File "/tmp/tmp3273u8va/pip.zip/pip/_internal/__init__.py", line 40, in <module> File "/tmp

pip for python3.7 (Ubuntu 16.04)

醉酒当歌 提交于 2021-01-21 04:25:07
问题 I am not able to install pip for python 3.7. When I tried to search online, one solution I found was to install pip using get-pip.py. However, it's failing for me: sudo python3.7 get-pip.py Traceback (most recent call last): File "get-pip.py", line 21373, in <module> main() File "get-pip.py", line 197, in main bootstrap(tmpdir=tmpdir) File "get-pip.py", line 82, in bootstrap import pip._internal File "/tmp/tmp3273u8va/pip.zip/pip/_internal/__init__.py", line 40, in <module> File "/tmp

apt-get install in Ubuntu 16.04 docker image: '/etc/resolv.conf': Device or resource busy

巧了我就是萌 提交于 2021-01-02 06:52:06
问题 I'm getting the error message below when running apt-get install from within a rather vanilla Ubuntu 16.04 image: ln: cannot remove '/etc/resolv.conf': Device or resource busy dpkg: error processing package resolvconf (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: resolvconf The packages seem to be installed correctly, though. How to fix it? My Dockerfile looks like this: FROM ubuntu:16.04 MAINTAINER Me

apt-get install in Ubuntu 16.04 docker image: '/etc/resolv.conf': Device or resource busy

非 Y 不嫁゛ 提交于 2021-01-02 06:50:57
问题 I'm getting the error message below when running apt-get install from within a rather vanilla Ubuntu 16.04 image: ln: cannot remove '/etc/resolv.conf': Device or resource busy dpkg: error processing package resolvconf (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: resolvconf The packages seem to be installed correctly, though. How to fix it? My Dockerfile looks like this: FROM ubuntu:16.04 MAINTAINER Me