Skip to main content

How to install pysqlite (python sqlite binding interface) on Ubuntu Linux

First you need development libraries:

$ sudo apt-get install libsqlite3-dev

Then you have to download pysqlite files from http://code.google.com/p/pysqlite/
Next steps are usual: unpack and change dir

After that run (you should have gcc - GNU C compiler - of course):

$ python setup.py build

After compilation runs successfully you are able to install pysqlite with:

$ sudo python setup.py install

That's all

Comments

Popular posts from this blog

How to program SPI flash memory on Digilent Nexys4 and other 7th generation devices using Vivado 2014.x

Update: The methods described below work also on Vivado 2015! Please let me know if you had any issues with other Vivado versions.

The information in the official user guides and tutorials seems to be fragmentary and sometimes out-of-date, that's why I decided to fill in this gap, not waiting for the official Xilinx updates. Our goal is to show how to program the SPI flash memory of the 7th generation Xilinx devices with Vivado 2014 on example of Nexys4 board.

Note: before we start, we assume you already have a working project, that means the generated bitstream file works on your device. If not, you may want to go directly to the Program the SPI flash section to test your Nexys4 board with prepared .mcs file.
PlanConfigure the hardware to work with SPI flash memoryRegenerate the bitstream fileConvert the bitstream file into the "Prom" formatProgram the SPI flashBoot the device Configure the hardware to work with SPI flash memory Open the synthesized or implemented design…

How to fix 'ImportError: cannot import name QtCore' on Debian Linux

What to do if such import error occurs? >>> import PySide
>>> from PySide import QtCore
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name QtCore

1. Try to locate where your pyside is installed: $ locate PySide ... /usr/lib/python2.7/dist-packages/PySide
/usr/lib/python2.7/dist-packages/PySide/__init__.py
/usr/lib/python2.7/dist-packages/PySide/__init__.pyc
/usr/lib/python2.7/dist-packages/PySide/phonon.so
/usr/lib/python2.7/dist-packages/PySide/QtCore.so
/usr/lib/python2.7/dist-packages/PySide/QtDeclarative.so
/usr/lib/python2.7/dist-packages/PySide/QtGui.so
/usr/lib/python2.7/dist-packages/PySide/QtHelp.so ...

Hint: use this to update your file index:

$ sudo updatedb
2. The solution is easy: add this to your ~/.bashrc (or ~/.<shell>rc you actually have). export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/python2.7/dist-packages/PySide

How to solve: This Terminal Emulator is not functional because no 'bash' shell could be found in Aptana Studio 3

This Terminal Emulator is not functional because no 'bash' shell could be found.
Please correct the problem and restart the IDE.

Info
Let's see the Aptana's Studio 3 log file.

java.io.IOException: Cannot run program "/opt/Aptana Studio 3/plugins/com.aptana.terminal_3.0.0.1310755723/os/linux/x86/redtty"


Solution

chmod +x "/opt/Aptana Studio 3/plugins/com.aptana.terminal_3.0.0.1310755723/os/linux/x86/redtty"

Then File -> Restart