ubuntu-18.04

How to fix: cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library - Python

谁说胖子不能爱 提交于 2020-06-22 13:47:30
问题 I am establishing a connection to oracle 11g which is in a remote server using cx_oracle 7 with python 3.6.7. my OS in Ubuntu 18.04 I have installed oracle instant client library with libclntsh.so but I am not getting the expected output. here is the code which i am using to connect to the oracle db connection = cx_Oracle.connect("username/password@host/port") print (connection.version) connection.close() when the script runs i expect to get the connection version instead i am getting the

Default permission and ownership in WSL

北战南征 提交于 2020-06-17 09:31:11
问题 I'm currently in the process of switching from an Ubuntu 18.04 VirtualBox to the WSL. Everything is up and running to have a complete web dev environment. Unfortunately, the file permission and ownership is kind of a problem for me right now. --- Disclaimer--- I know that in a server environment this would be pretty bad and wouldn't be done. This is just for my local development process and this requirement will stay there. What I want to achieve is, to have a consistent set of permissions

Implementing Postgres Sql in Apache Airflow

心已入冬 提交于 2020-06-12 08:48:23
问题 I have Apache-Airflow implemented on an Ubuntu version 18.04.3 server. When I set it up, I used the sql lite generic database, and this uses the sequential executor. I did this just to play around and get used to the system. Now I'm trying to use the Local Executor, and will need to transition my database from sqlite to the recommended postgres sql. Does anybody know how to make this transition? All of the tutorials I've found entail setting up Airflow with postgres sql from the beginning. I

Chrome is not stable on my jenkins and ubuntu 18.04

落爺英雄遲暮 提交于 2020-05-27 04:59:09
问题 Chrome is not stable on my Jenkins. When I run build 5 times, it runs 1 - 2-time success, and the other 3 times I have the above error. Code for Chrome : ChromeOptions options = new ChromeOptions(); System.setProperty("webdriver.chrome.driver","/usr/local/bin/chromedriver"); options.addArguments("--headless"); options.addArguments("--no-sandbox"); options.addArguments("--disable-dev-shm-usage"); driver = new ChromeDriver(options); driver.get("https://mywebsite.com"); Some steps I have already

Atom: Cannot load the system dictionary for en_IN. Checked the following paths for dictionary files:

99封情书 提交于 2020-05-26 15:37:48
问题 When I open Atom editor it shows the following error message. How to resolve the same? 回答1: I have resolved this problem using language update in editor following way: 1) Atom → Edit → Preferences → Packages 2) search for "spell check" and deselect Use Locales button and mention en-US (editor support language) in custom bar. 3) After restart the editor. 回答2: You might be missing the system dictionaries. Go to settings with ctrl-, and look in Packages for the package spell-check . Enter its

Missing `secret_key_base` for 'production' environment on Ubuntu 18.04 server (Rails 6.0), multiple topics tried

时光毁灭记忆、已成空白 提交于 2020-05-18 04:24:58
问题 This topic has a SOLUTION embeded at the end. PROBLEM I'm deploying for the first time a Rails app on a VPS on Ubuntu 18.04. with Nginx. I followed the good tutorial of Gorails "Deploy Ruby on Rails To Production in 2019". Everything worked, until I had the "Incomplete response received from application" page. I checked the nginx logs on /var/log/nginx/error.log and saw the typical message "Missing secret_key_base for 'production' environment, set this string with rails credentials:edit " As

Linking issue after installation of Nvidia Cuda 10.2 + CuDNN 7.5 +OpenCV 4.2.0 on ubuntu 18.04

 ̄綄美尐妖づ 提交于 2020-04-30 07:01:46
问题 I installed NVIDIA drivers, CUDA 10.2, CuDNN 7.5, openCV 4.2.0 on Ubuntu 18.04. I tested each installation independently by running some example codes, it works fine. but when I run OpenCV+CUDA program like below #include <iostream> #include <ctime> #include <cmath> #include "bits/time.h" #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/core/cuda.hpp> #include <opencv2/cudaarithm.hpp> #include <opencv2

Docker on Ubuntu unable to connect to localhost but works connecting to its ip

喜夏-厌秋 提交于 2020-04-30 06:31:30
问题 I am running Ubuntu 18.04 $ uname -r 5.3.0-46-generic I have docker installed $ docker --version Docker version 19.03.8, build afacb8b7f0 I have a simple docker image that exposes port 80. The Dockerfile that generated it was FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 COPY publish . EXPOSE 80 ENTRYPOINT ["dotnet", "SampleWebApp.dll"] When I run a container for this image I can see the following: $ docker run myimage:latest -p 8080:80 info: Microsoft.Hosting.Lifetime[0] Now listening on:

Docker on Ubuntu unable to connect to localhost but works connecting to its ip

吃可爱长大的小学妹 提交于 2020-04-30 06:31:00
问题 I am running Ubuntu 18.04 $ uname -r 5.3.0-46-generic I have docker installed $ docker --version Docker version 19.03.8, build afacb8b7f0 I have a simple docker image that exposes port 80. The Dockerfile that generated it was FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 COPY publish . EXPOSE 80 ENTRYPOINT ["dotnet", "SampleWebApp.dll"] When I run a container for this image I can see the following: $ docker run myimage:latest -p 8080:80 info: Microsoft.Hosting.Lifetime[0] Now listening on:

Compile opencv-python for pypy3

大城市里の小女人 提交于 2020-04-18 12:32:50
问题 I want to use pypy for better Python performance. I installed pypy via snap on Ubuntu 18.04. I am now able to use pypy in virtualenv (Actually pipenv is what I'm using) Trying to compile opencv-python for pypy3 in a virtualenv from git repo by: git clone https://github.com/skvark/opencv-python.git python setup.py install and getting: Exception: Not found: 'python/cv2[^/]*\.pypy36\-pp73\-x86_64\-linux\-gnu\.so' I found this post which suggests: pyenv virtualenv pypy3.7.2.0 cv_env mkdir cv_env