django, multiple databases, configuration issue: "Error importing database router"

I've followed these instructions to set up Django with multiple databases. It's working as intended in my local dev environment (win7), however, when I upload the project to my live server...

Broken Pipe when Using Python Multiprocessing Managers (BaseManager/SyncManager) to Share Queue with Remote Machines

In the last month, we've had a persistent problem with the Python 2.6.x multiprocessing package when we've tried to use it to share a queue among several different (linux) computers. I've posed...

In Django, getting a "Error: Unable to serialize database" when trying to dump data?

I'm getting an error when I'm trying to dump data to a JSON fixture in Djanog 1.2.1 on my live server. On the live server it's running MySQL Server version 5.0.77 and I imported a lot of data to...

How can I set the 'backend' in matplotlib in Python?

I am new user of matplotlib, my platform is Ubuntu 10.04 Python 2.6.5 This is my code import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt plt.plot([1,2,3]) The error...

PIL - libjpeg.so.8: cannot open shared object file: No such file or directory

Compiled the libjpeg v8, PIL 1.1.7 and and import for _imaging works on the system Python, but spouts this error inside the virtualenv: libjpeg.so.8: cannot open shared object file: No such file...

No module named pkg_resources

I'm deploying a Django app to a dev server and am hitting this error when I run pip install -r requirements.txt: Traceback (most recent call last): File "/var/www/mydir/virtualenvs/dev/bin/pip",...

virtualenvwrapper.sh error showing at terminal startup

As I'm starting to learn Python programming, I installed virtualenvwrapper via these commands: # Install distribute: http://pypi.python.org/pypi/distribute wget...

sqlite3 python2.7 and Ubuntu 10.04 (or just python2.6)

Question: How can I get my non-system Python2.7 to find the sqlite3 libraries? Details: I run Ubuntu 10.04 LTS which uses Python2.6. I have projects that require Python2.7. I use the...

sphinx-build fail - autodoc can't import/find module

I'm trying to get started with Sphinx and seem to have relentless problems. Command: docs/sphinx-quickstart I answer all the questions and everything works fine. Command: docs/ls Everything looks...

Trying to build OpenCV 2.4.1 with OpenGL support

I am trying to build OpenCV 2.4.1 with OpenGL support, and it keeps faling. I have OpenGL installed in my Ubuntu 11.04, libs are under /usr/lib/libGL.so as usual. I know my OpenGL installation is...

using imaplib to access corporate gmail

I have the following code, it works for my own personal email. import getpass, imaplib import email import libgmail import...

tkagg backend problems

I need to use the Tkagg backent to use matplotlib in a Tkinter program, and I received the "ImportError: No module named backend_tkagg" error message. Looking around, I saw as one possible...

how to make pandas HDFStore 'put' operation faster

I'm trying to build a ETL toolkit with pandas, hdf5. My plan was extracting a table from mysql to a DataFrame; put this DataFrame into a HDFStore; But when i was doing the step 2, i found...

Running thumbor yields ImportError: No module named cv2.cv

I'm installing Thumbor on an AWS instance running ubuntu (similar to here) and I want to use face detection. But when I try to run thumbor path_to_conf/thumbor.conf All I get is Traceback (most...

Web2Py Fedora: 403 ( You don't have permission to access / )

http://web2py.com/books/default/chapter/29/13/deployment-recipes#One-step-production-deployment Having trouble with: wget http://web2py.googlecode.com/hg/scripts/setup-web2py-fedora.sh chmod +x...

How to over come Python ImportError: libmqic_r.so: cannot open shared object file: No such file or directory

I have IBM MQ Installed in /opt/mqm/. This has all the Header files and libraries and specifically the libmqic_r.so file. [[email protected] packages]# find /opt/mqm/ -name...

Socket Error: Errno 111 Connection Refused

im trying to connect to a locally hosted HiveMQ broker using a RaspberryPi Virtual Machine (Using Oracle VM VirtualBox). im using Mqtt.fx aswell as a second client to look at if the published...

Permissions error when using cli in Jboss wildfly and docker

I have extended a docker images, and when building the dockerfile, I call the Wildfly CLI to add a datasource. Then, when I try to run the dockerfile, I get the below...

pexpect, script time out when expecting '$'

I am learning python using pexpect command, I am trying to write a script usign ssh to multiple servers and run remote installation, however when the script run to child.expect('$') it timeout and...

ImportError: No module named zlib; tox

I am trying to run tox tests as python 2.6. I just installed 2.6 and am now getting past the "Interpreter error: no python 2.6" style error, but tox is now crashing at zlib. Zlib is on my machine...

Too many pythons on my Mac, and pip install is not install package into the right python package folder

I want to use virtualenv on my Mac, and I installed it with pip: pip install virtualenv /usr/local/lib/python2.7/site-packages/pip/commands/install.py:194: UserWarning: Disabling all use of...

Ansible - Unspecified Tags Still Executing

Running --list-tags against my playbook, deploy.yml, I get the following: play #1 (localhost): Extract Variable Data From Jenkins Call TAGS: [main,extract] TASK TAGS: [extract, main] ...

centos6.5's yum error : Input/output error

when i run yum command: > yum There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: ...

Failed building wheel for psutil

I am trying to install psutil in centos and same is failing with gcc error . I have referred various posts in this forum but none of them helped . Many threads suggested to use pydev but its...

Can't install MySQL-python [CentOS]

I need mysql-python on my CentOS 7 server to run a script I wrote. I haven't found any success installing it I always get the following error: Command "python setup.py egg_info" failed with error...

gcc error when installing pyodbc

I am installing pyodbc on Redhat 6.5. Python 2.6 and 2.7.4 are installed. I get the following error below even though the header files needed for gcc are in the /usr/include/python2.6. I have...

installing gnuradio 3.8 on ubuntu 18.04

I am installing gnuradio 3.8 on a fresh install of Ubuntu 18.04 LTS. Here is the procedure I used to install gnuradio 3.8: $ sudo apt-get install python-pip python-apt $ sudo -H pip install...

Ansible can't stop managed service

I have a Spring Boot application managed as a systemd service on a Red Hat Enterprise Linux Server 7.7 (Maipo) cluster. The service unit configuration is all right, I can directly start and stop...

pipelining is being ignored by Ansible Tower

I am trying to enable pipelining but no matter what i'm trying, it doesn't work. ansible.cfg contents: [defaults] transport = ssh host_key_checking = false retry_files_enabled =...

Error when using starflut package in flutter on an emulator

I am trying to run a python script from flutter using the starflut package. I followed this tutorial https://smazee.com/blog/how-to-run-the-python-code-in-the-flutter-app online. When I run the...