ubuntu-14.04

Django 301 and 403 forbidden errors on my static files in production

Django 301 and 403 forbidden errors on my static files in production Question: I’m trying to deploy a django website on a ubuntu 14.04 vps using nginx and gunicorn but my css files and js files are not getting loaded.i developed it on the default django development server and it worked very well, but when …

Total answers: 4

Exposing python jupyter on LAN

Exposing python jupyter on LAN Question: I’ve installed jupyter on local network LAN but im unable to access http://<IP>:8888 from another macine on LAN. I’ve opened ports 8888 and port range 49152 to 65535 with iptables (this range is specified at http://jupyter-notebook.readthedocs.io/en/latest/public_server.html) This guide http://jupyter-notebook.readthedocs.io/en/latest/public_server.html describes exposing a notebook publicly but I’m just attempting to …

Total answers: 3

How to integrate Pygame and PyQt4?

How to integrate Pygame and PyQt4? Question: I’m using python 2.7 and Ubuntu 14.04. I’m trying to do this in order to have my pygame window inside my GUI On some platforms it is possible to embed the pygame display into an already existing window. To do this, the environment variable SDL_WINDOWID must be set …

Total answers: 2

Error installing Pillow on ubuntu 14.04

Error installing Pillow on ubuntu 14.04 Question: I’m trying to install Pillow on Ubuntu 14.04 using this command: pip install Pillow but the installation fails with this error: ValueError: –enable-jpeg requested but jpeg not found, aborting. Asked By: Navid777 || Source Answers: The problem was that the package libjpeg-dev was not installed. To solve the …

Total answers: 5

install HDF5 and pytables in ubuntu

install HDF5 and pytables in ubuntu Question: I am trying to install tables package in Ubuntu 14.04 but sems like it is complaining. I am trying to install it using PyCharm and its package installer, however seems like it is complaining about HDF5 package. However, seems like I cannnot find any hdf5 package to install …

Total answers: 4

Virtualenv – Python 3 – Ubuntu 14.04 64 bit

Virtualenv – Python 3 – Ubuntu 14.04 64 bit Question: I am trying to install virtualenv for Python 3 on Ubuntu 64bit 14.04. I have installed pip for Python3 using: pip3 install virtualenv and everything works fine. Now though I am trying to use virtualenv command to actually create the environment and getting the error …

Total answers: 6

Sending serial communication (using Python on Ubuntu) to Arduino

Sending serial communication (using Python on Ubuntu) to Arduino Question: This is the strangest thing I have seen in quite a while. I have very basic Python code to send commands to a Arduino Uno R3 using Python running on Ubuntu. import serial import time ser = serial.Serial(‘/dev/ttyACM0’, 115200) time.sleep(2) if ser.isOpen(): print "Port Open" …

Total answers: 1

'HTTP Error 400: Bad Request' with Python Bottlenose

'HTTP Error 400: Bad Request' with Python Bottlenose Question: I have the following file (associate.py) import bottlenose from bs4 import BeautifulSoup from urllib2 import HTTPError ;; My real keys are here in reality, I just replaced them ;; with the following because they are private. credentials = {‘access-key’ : ‘MY_ACCESS_KEY_GOES_HERE’, ‘secret-key’ : ‘MY_SECRET_KEY_GOES_HERE’, ‘associate-tag’ : …

Total answers: 1

ImportError: No module named datetime

ImportError: No module named datetime Question: When I upgrade my Ubuntu into 14.04 from 12.04, this time I get this error: ImportError: No module named datetime Asked By: akbsmile || Source Answers: I tried to re-install it by these steps. 1. remove the old version of venv 2. virtualenv venv 3. .venv/activate/bin 4. pip install …

Total answers: 11

lxml installation error ubuntu 14.04 (internal compiler error)

lxml installation error ubuntu 14.04 (internal compiler error) Question: I am having problems with installing lxml. I have tried the solutions of the relative questions in this site and other sites but could not fix the problem. Need some suggestions/solution on this. I am providing the full log after executing pip install lxml, Downloading/unpacking lxml …

Total answers: 5