Posted by & filed under Projects.

www.reseauoccasions.com – with this website you can find a car (Peugeot, Citroen, other cars) near to your location in France.

It has information about car deal, car reseller (contacts, location), you can save a list of cars to compare, find a reseller on map, etc, etc.

It has powerful backend, where all cars data processing is fully automated (every day loads new pack of data, processing, sending notifications on success/failure, access for different types of clients with different rights)

Below is the screenshots of working website:

  • Screenshot-Occasion auto : achat vente voiture occasion. 3183 annonces auto occasion dont peugeot - Google Chrome
  • Screenshot-Achat 1007 Peugeot occasion - acheter, vendre une 1007 Peugeot occasion - 29 annonces 1007 Peugeot - Google Chrome
  • Screenshot-Peugeot 4007 Féline 2.2 HDI 156 FAP Diesel - 60 BURY - Google Chrome
  • Screenshot-Concessionnaire auto - tous les concessionnaires voiture du reseauoccasion.com - Google Chrome
  • Screenshot-Garage- concessionnaire PARIS (75) - EXELMANS AUTOMOBILES vous propose 3 annonces - Google Chrome

My role: development from the scratch, architecture development, integration with Google Maps API, requirements developement, collaboration with clients, management a team of 1 developer.

Posted by & filed under General.

I wanted to manage my memcached server via some nice GUI. Google gave me “MemcachedManager” python tool and this link: http://code.google.com/p/memcached-manager/wiki/InstallingMemcachedManager
I tried
[text]
➜ sudo easy_install MemcachedManager
[/text]
And it installed fine. But when I run MemcachedManager I’ve got following error:
[text]
➜ ~ MemcachedManager
Traceback (most recent call last):
File "/usr/local/bin/MemcachedManager", line 5, in <module>
pkg_resources.run_script(‘MemcachedManager==0.2′, ‘MemcachedManager’)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 489, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1207, in run_script
execfile(script_filename, namespace, namespace)
File "/Library/Python/2.7/site-packages/MemcachedManager-0.2-py2.7.egg/EGG-INFO/scripts/MemcachedManager", line 2, in <module>
import MemcachedManager.Main
File "/Library/Python/2.7/site-packages/MemcachedManager-0.2-py2.7.egg/MemcachedManager/Main.py", line 45, in <module>
from PyQt4 import QtGui
ImportError: No module named PyQt4
[/text]
I’m not very sure but this probably means that I dont have pyqt4 module installed :)
So I need to install pyqt.
I like Homebrew and give it a try:
[text]
➜ brew install pyqt
[/text]

First I needed to install python package manager PIP.

[text]
➜ easy_install pip
error: can’t create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/test-easy-install-33837.write-test’
[/text]

Need sudo… Personally I dont like installing development stuff under sudo, I like Ruby way – everything is in user’s Home.
so
[text]
➜ sudo easy_install pip
[/text]
worked fine.

[text]
➜ pip install pyqt
Downloading/unpacking pyqt
Downloading PyQt-x11-gpl-4.9.4.tar.gz (9.8Mb): 9.8Mb downloaded
Running setup.py egg_info for package pyqt
Traceback (most recent call last):
File "", line 14, in
IOError: [Errno 2] No such file or directory: ‘/usr/local/build/pyqt/setup.py’
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 14, in
IOError: [Errno 2] No such file or directory: ‘/usr/local/build/pyqt/setup.py’

[/text]

Decided to install it via ActivePython

[text]
➜ pypm install pyqt4
zsh: correct ‘pypm’ to ‘php’ [nyae]? n
Get: [pypm-be.activestate.com] :repository-index:
Get: [pypm-free.activestate.com] :repository-index:
autosync: synced 2 repositories
*** Packages will install their script files to
*** "~/Library/Python/2.7/bin" (as per PEP 370). This directory is not
*** yet in your $PATH. Would you like PyPM to add it by appending to
*** "~/.profile"? (Y/n) Y
You may now reopen your shell for the changes to take effect.
The following packages will be installed into "~/Library/Python/2.7" (2.7):
pyqt4-4.8.3.0
Get: [pypm-free.activestate.com] pyqt4 4.8.3.0
Installing pyqt4-4.8.3.0
****************************************
PyQt4 requires a separate install of Qt (Cocoa; 64-bit). You can find it here <http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x>_ — be sure to download the one titled *Cocoa: Mac binary package for Mac OS X 10.5 – 10.6 (32-bit and 64-bit)*. Note that PyQt 4.7.x requires Qt 4.6.x; and PyQt 4.8.x requires Qt 4.7.x.
****************************************
[/text]