ubuntu-14.04

vagrant and ubunutu: pip install jupyter error: Storing debug log for failure in /home/vagrant/.pip/pip.log

↘锁芯ラ 提交于 2019-12-06 03:37:37
I want to install jupyter on ubuntu 14.04(vagrant) with the command: sudo pip install jupyter, but there is error, could you tell me how to solve it. vagrant@vagrant-ubuntu-trusty-64:~$ pip install jupyter Downloading/unpacking jupyter Downloading jupyter-1.0.0-py2.py3-none-any.whl Downloading/unpacking ipywidgets (from jupyter) Downloading ipywidgets-6.0.0-py2.py3-none-any.whl (46kB): 46kB downloaded Cleaning up... Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python2

Unknown url type error in urllib2

无人久伴 提交于 2019-12-06 03:28:45
I have searched a lot of similar question on SO, but did not find an exact match to my case. I am trying to download a video using python 2.7 Here is my code for downloading the video import urllib2 from bs4 import BeautifulSoup as bs with open('video.txt','r') as f: last_downloaded_video = f.read() webpage = urllib2.urlopen('http://*.net/watch/**-'+last_downloaded_video) soup = bs(webpage) a = [] for link in soup.find_all('a'): if link.has_attr('data-video-id'): a.append(link) #try just with first data-video-id id = a[0]['data-video-id'] webpage2 = urllib2.urlopen('http://*/video/play/'+id)

Jenkins.log location on Ubuntu 14.04 desktop

断了今生、忘了曾经 提交于 2019-12-06 02:02:36
问题 Setup I am currently running a Jenkins instance on an Ubuntu 14.04 desktop machine. I have installed Jenkins via WAR distribution and am running Jenkins as a service on the host machine. Issue I am trying to access the jenkins.log file described here in the logging documentation on the Jenkins wiki. The purpose of accessing this file is to be sure we have a log to use in the event that Jenkins web UI is unavailable and there is an issue with Jenkins. I've taken a look in /var/log/jenkins/ as

error: XDG_RUNTIME_DIR not set in the environment. Gtk-WARNING **: cannot open display:

我怕爱的太早我们不能终老 提交于 2019-12-06 01:27:51
I used to open text files with sublime, and for Read-only files, I used to do : sudo sublime . But now just suddenly the sudo sublime command gives the following error : (sublime:3931): Gtk-WARNING **: cannot open display: while sublime command is working fine. I tried the same with gedit , and the same thing happened, with the error with gedit being shown : error: XDG_RUNTIME_DIR not set in the environment. (gedit:3933): Gtk-WARNING **: cannot open display: I installed gtk , and tried gksudo , still got the same error! I searched the web and found these ways : xhost +localhost : https:/

ckan local installation, 500 error on solr JSP support not configured

穿精又带淫゛_ 提交于 2019-12-05 20:22:40
问题 I am trying to install CKAN on my local computer using Ubuntu 14.04 LTS. I followed the instructions for installing from source found here and I try to check if solr is running by visiting http://localhost:8983/solr/. I can see that Jetty is running because when I visit http://localhost:8983 I see that it is up. I added the jdk as follows: JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-amd64 I am getting a 500 error when i try to open the solr page: HTTP ERROR 500 Problem accessing /solr/index.jsp

How can I make NumPy use OpenBlas in Ubuntu?

痴心易碎 提交于 2019-12-05 18:53:40
I have both BLAS and OpenBLAS installed: $ dpkg -l \*blas\* | grep ^i ii libblas-dev 1.2.20110419-7 amd64 Basic Linear Algebra Subroutines 3, static library ii libblas3 1.2.20110419-7 amd64 Basic Linear Algebra Reference implementations, shared library ii libopenblas-base 0.2.8-6ubuntu1 amd64 Optimized BLAS (linear algebra) library based on GotoBLAS2 ii libopenblas-dev 0.2.8-6ubuntu1 amd64 Optimized BLAS (linear algebra) library based on GotoBLAS2 However, NumPy still says that OpenBLAS is not available: >> np.__config__.show() blas_info: libraries = ['blas'] library_dirs = ['/usr/lib']

mysqladmin: connect to server at 'localhost' failed

醉酒当歌 提交于 2019-12-05 17:45:23
问题 Today (2015-05-02) I upgraded my Linux system via apt-get update and apt-get upgrade whereas mysql, mysqladmin and a lot more packages have been updated. The mysql-server-5.5 runs and I can login and do all the typical database operations but when I type: user@ubuntu:~# mysqladmin proc I get the following error: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' Formerly I could solve this issue by simple setting the

nodejs application - mongodb connection fails with error “ECONNREFUSED”

99封情书 提交于 2019-12-05 16:02:40
问题 Background Information I'm playing around with my first nodejs test app that is attempting to connect to a remote mongodb. Problem: The connection is failing with the following message: admin@testdev:~/Documents/nodejs_tests$ sudo nodejs index.js Server has started. Request for / received About to route a request for: / inside db connect method Request for /favicon.ico received About to route a request for: /favicon.ico inside db connect method MongoError: connect ECONNREFUSED null MongoError

Swift on Linux: Make very first step work

旧时模样 提交于 2019-12-05 14:02:41
问题 I am totally new to swift. It has just been released as open source for linux and I wanted to try it. This is on ubuntu 14.04. clang is installed as per prerequisites. <Edit> : requirements here request clang version 3.6 also on ubuntu 14.04. I had first tried these first steps with clang 3.4, but have since updated to 3.6 following the instructions in the link and retried. Same result. </Edit> I have downloaded https://swift.org/builds/ubuntu1404/swift-2.2-SNAPSHOT-2015-12-01-b/swift-2.2

Installing composer using vagrant, hhvm, and Ubuntu 14.04

自作多情 提交于 2019-12-05 13:37:30
At the end of my vagrant provisioning script I attempt to install composer using the following : sudo curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer However when this is executed I get the following errors : SlowTimer [5612ms] at curl: https://getcomposer.org/composer.phar Download failed: Failed to open https://getcomposer.org/composer.phar (Resolving timed out after 5613 milliseconds) The download failed repeatedly, aborting. If I have php installed rather than hhvm and run the same commands on my vagrant vm the install is successful which