Ich habe die Odoo 9 Community-Version von Git in meinem Mac OS X El Capitan 10.11.2 installiert, alle meine Schritte:
python --version
Python 2.7.10
git clone https://github.com/odoo/odoo.git
Checking out files: 100% (20501/20501), done.
Installierte PostgresApp in Applications
und fügte den Pfad in ~/.bash_profile
hinzu.
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
Installiertes Rohr
Sudo easy_install pip
Finished processing dependencies for pip
Ich habe nodejs
in meinem System installiert.
node -v
v5.0.0
npm -v
3.3.9
Installierte less
und less-plugin-clean-css
Sudo npm install -g less less-plugin-clean-css
Ich habe den neuesten Xcode installiert,
xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Ich habe Homebrew installiert,
/usr/bin/Ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
Ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
The current contents of /usr/local are bin Cellar CODEOFCONDUCT.md CONTRIBUTING.md etc include lib Library LICENSE.txt opt README.md sbin share SUPPORTERS.md var .git .gitignore
Andere Bibliotheken installiert
brew install autoconf automake libtool
brew install libxml2 libxslt libevent
Installierte Python-Abhängigkeiten
Sudo easy_install -U setuptools
Finished processing dependencies for setuptools
cd odoo/
Sudo pip install --user -r requirements.txt
Successfully installed Mako-1.0.1 Pillow-2.7.0 Werkzeug-0.9.6 argparse-1.2.1 lxml-3.4.1 psutil-2.2.0 psycopg2-2.5.4 pyparsing-2.0.1 python-dateutil-1.5 python-ldap-2.4.19 pytz-2013.7 pyusb-1.0.0b2 qrcode-5.1 six-1.4.1
Odoo läuft
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
./odoo.py --addons-path=addons --db-filter=mydb
Es sagt
2016-02-10 16:51:42,351 3389 INFO ? openerp: OpenERP version 9.0c
2016-02-10 16:51:42,351 3389 INFO ? openerp: addons paths: ['/Users/anshad/Library/Application Support/Odoo/addons/9.0', u'/Users/anshad/odoo/addons', '/Users/anshad/odoo/openerp/addons']
2016-02-10 16:51:42,352 3389 INFO ? openerp: database: [email protected]:default
2016-02-10 16:51:42,444 3389 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
Und der Browser sagt 500 500 Internal Server Error
Und im Terminal,
conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
PostgresApp wurde gestartet, um dieses Problem zu beheben.
Nun bekam ich das Datenbank-Setup-Fenster ohne CSS wie in der folgenden Abbildung.
Datenbank mydbodoo
mit Kennwort admin
erstellt und zur Hauptseite http://localhost:8069/web/
Navigiert. Es zeigt eine leere Seite mit schwarzer Kopfzeile und odoo-Logo, auch ein Fehler im Terminal.
ImportError: No module named pyPdf
./odoo.py --addons-path=addons --db-filter=mydb
2016-02-10 17:02:12,220 3589 INFO ? openerp: OpenERP version 9.0c
2016-02-10 17:02:12,220 3589 INFO ? openerp: addons paths: ['/Users/anshad/Library/Application Support/Odoo/addons/9.0', u'/Users/anshad/odoo/addons', '/Users/anshad/odoo/openerp/addons']
2016-02-10 17:02:12,221 3589 INFO ? openerp: database: [email protected]:default
2016-02-10 17:02:12,314 3589 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
2016-02-10 17:02:16,855 3589 INFO ? openerp.addons.bus.models.bus: Bus.loop listen imbus on db postgres
2016-02-10 17:02:16,888 3589 INFO ? werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:16] "GET /web/ HTTP/1.1" 500 -
2016-02-10 17:02:16,895 3589 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/Library/Python/2.7/site-packages/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/Users/anshad/odoo/openerp/service/server.py", line 245, in app
return self.app(e, s)
File "/Users/anshad/odoo/openerp/service/wsgi_server.py", line 184, in application
return application_unproxied(environ, start_response)
File "/Users/anshad/odoo/openerp/service/wsgi_server.py", line 170, in application_unproxied
result = handler(environ, start_response)
File "/Users/anshad/odoo/openerp/http.py", line 1487, in __call__
self.load_addons()
File "/Users/anshad/odoo/openerp/http.py", line 1508, in load_addons
m = __import__('openerp.addons.' + module)
File "/Users/anshad/odoo/openerp/modules/module.py", line 61, in load_module
mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
File "/Users/anshad/odoo/addons/document/__init__.py", line 4, in <module>
import models
File "/Users/anshad/odoo/addons/document/models/__init__.py", line 4, in <module>
import ir_attachment
File "/Users/anshad/odoo/addons/document/models/ir_attachment.py", line 8, in <module>
import pyPdf
ImportError: No module named pyPdf
2016-02-10 17:02:17,708 3589 INFO mydbodoo openerp.modules.loading: loading 1 modules...
2016-02-10 17:02:17,716 3589 INFO mydbodoo openerp.modules.loading: 1 modules loaded in 0.01s, 0 queries
2016-02-10 17:02:17,719 3589 INFO mydbodoo openerp.modules.loading: loading 4 modules...
2016-02-10 17:02:17,727 3589 INFO mydbodoo openerp.modules.loading: 4 modules loaded in 0.01s, 0 queries
2016-02-10 17:02:17,899 3589 INFO mydbodoo openerp.modules.loading: Modules loaded.
2016-02-10 17:02:17,900 3589 INFO mydbodoo openerp.addons.base.ir.ir_http: Generating routing map
2016-02-10 17:02:18,249 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "GET /web/ HTTP/1.1" 200 -
2016-02-10 17:02:18,308 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "GET /web/content/341-42af255/web.assets_common.0.css HTTP/1.1" 304 -
2016-02-10 17:02:18,350 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "GET /web/static/src/css/full.css HTTP/1.1" 404 -
2016-02-10 17:02:18,367 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "GET /web/content/343-4d5beef/web.assets_backend.0.css HTTP/1.1" 304 -
2016-02-10 17:02:18,411 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "GET /web/content/344-4d5beef/web.assets_backend.js HTTP/1.1" 304 -
2016-02-10 17:02:18,428 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "GET /web/content/342-42af255/web.assets_common.js HTTP/1.1" 304 -
2016-02-10 17:02:18,663 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "GET /web/binary/company_logo HTTP/1.1" 304 -
2016-02-10 17:02:18,838 3589 INFO mydbodoo openerp.service.common: successful login from 'admin' using database 'mydbodoo'
2016-02-10 17:02:18,859 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "POST /web/session/get_session_info HTTP/1.1" 200 -
2016-02-10 17:02:18,893 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "POST /web/proxy/load HTTP/1.1" 200 -
2016-02-10 17:02:18,915 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "POST /web/session/modules HTTP/1.1" 200 -
2016-02-10 17:02:18,945 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "POST /web/dataset/search_read HTTP/1.1" 200 -
2016-02-10 17:02:18,945 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "POST /web/webclient/translations HTTP/1.1" 200 -
2016-02-10 17:02:18,991 3589 INFO mydbodoo werkzeug: 127.0.0.1 - - [10/Feb/2016 17:02:18] "GET /web/webclient/locale/en_US HTTP/1.1" 500 -
2016-02-10 17:02:18,998 3589 ERROR mydbodoo werkzeug: Error on request:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/Library/Python/2.7/site-packages/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/Users/anshad/odoo/openerp/service/server.py", line 245, in app
return self.app(e, s)
File "/Users/anshad/odoo/openerp/service/wsgi_server.py", line 184, in application
return application_unproxied(environ, start_response)
File "/Users/anshad/odoo/openerp/service/wsgi_server.py", line 170, in application_unproxied
result = handler(environ, start_response)
File "/Users/anshad/odoo/openerp/http.py", line 1488, in __call__
return self.dispatch(environ, start_response)
File "/Users/anshad/odoo/openerp/http.py", line 1652, in dispatch
result = ir_http._dispatch()
File "/Users/anshad/odoo/openerp/addons/base/ir/ir_http.py", line 186, in _dispatch
return self._handle_exception(e)
File "/Users/anshad/odoo/openerp/addons/base/ir/ir_http.py", line 157, in _handle_exception
return request._handle_exception(exception)
File "/Users/anshad/odoo/openerp/http.py", line 781, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/Users/anshad/odoo/openerp/addons/base/ir/ir_http.py", line 182, in _dispatch
result = request.dispatch()
File "/Users/anshad/odoo/openerp/http.py", line 840, in dispatch
r = self._call_function(**self.params)
File "/Users/anshad/odoo/openerp/http.py", line 316, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/Users/anshad/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/Users/anshad/odoo/openerp/http.py", line 309, in checked_call
result = self.endpoint(*a, **kw)
File "/Users/anshad/odoo/openerp/http.py", line 959, in __call__
return self.method(*args, **kw)
File "/Users/anshad/odoo/openerp/http.py", line 509, in response_wrap
response = f(*args, **kw)
File "/Users/anshad/odoo/addons/web/controllers/main.py", line 505, in load_locale
addons_path = http.addons_manifest['web']['addons_path']
KeyError: 'web'
Screenshot: Terminal und Dateisystem
Bildschirmfoto: Datenbankauswahlfenster
Screenshot: Hauptfenster
Versuchte Sudo pip install pyPdf
und sagt Requirement already satisfied (use --upgrade to upgrade): pyPdf in /Users/anshad/Library/Python/2.7/lib/python/site-packages
Ich habe gerade das Setup auf zwei Systemen durchlaufen, eines ist Mac OS X El Capitan 10.11.2 und ein anderes ist mein primäres Betriebssystem - Ubuntu 15.04 (wo die Dinge viel einfacher liefen, aber vielleicht liegt es nur daran, dass ich Ubuntu täglich verwende). .
Nachfolgend finden Sie Installationsschritte für beide Systeme. Stellen Sie sicher, dass jeder Befehl erfolgreich ausgeführt wird (meldet mindestens keine Fehler).
Voraussetzungen: Ich hatte bereits git
und python 2.7.10
.
1) Odoo-Repository klonen:
git clone https://github.com/odoo/odoo.git
2) Laden und installieren Sie Postgresapp
Jetzt zu ~/.bash_profile
hinzufügen:
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
Führen Sie einfach den Befehl darüber aus, wenn Sie bereits über das offene Terminal verfügen.
3) pip
installieren
Sudo easy_install pip
4) Installiere nodejs
node
und npm
verfügbar sind5) Installiere less
und less-plugin-clean-css
Sudo npm install -g less less-plugin-clean-css
Sollte Ausgabe wie folgt zeigen:
/usr/local/bin/lessc -> /usr/local/lib/node_modules/less/bin/lessc
[email protected] /usr/local/lib/node_modules/less-plugin-clean-css
└── [email protected] ([email protected], [email protected])
[email protected] /usr/local/lib/node_modules/less
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
6) Installieren Sie binäre Abhängigkeiten
Ich denke nicht alle Schritte sind wirklich notwendig, aber ich habe sie durchgeführt, also nur für den Fall, dass sie wirklich gebraucht wurden.
xcode-select --install
ausführen, wenn das Dialogfeld angezeigt wird - stimmen Sie der Installation zuSobald Sie brew
haben, führen Sie im Terminal Folgendes aus:
brew install autoconf automake libtool
brew install libxml2 libxslt libevent
7) Installieren Sie Python-Abhängigkeiten
Sudo easy_install -U setuptools
pip install --user -r requirements.txt
Es sollte am Ende so etwas zeigen:
Successfully installed Babel-1.3 Jinja2-2.7.3 Mako-1.0.1 MarkupSafe-0.23 Pillow-2.7.0 PyYAML-3.11 Python-Chart-1.39 Werkzeug-0.9.6 argparse-1.2.1 beautifulsoup4-4.4.1 decorator-3.4.0 docutils-0.12 feedparser-5.1.3 gdata-2.0.18 gevent-1.0.2 greenlet-0.4.7 jcconv-0.2.3 lxml-3.4.1 mock-1.0.1 ofxparse-0.14 passlib-1.6.2 psutil-2.2.0 psycogreen-1.0 psycopg2-2.5.4 pyPdf-1.13 pydot-1.0.2 pyparsing-2.0.1 pyserial-2.7 python-dateutil-1.5 python-ldap-2.4.19 python-openid-2.2.5 python-stdnum-1.2 pytz-2013.7 pyusb-1.0.0b2 qrcode-5.1 reportlab-3.1.44 requests-2.6.0 six-1.4.1 suds-jurko-0.6 vatnumber-1.2 vobject-0.6.6 xlwt-0.7.5
8) Führen Sie odoo
aus.
cd odoo # change dir to the folder you cloned odoo to
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Re-check parameters, it looks like addons path you used is incorrect
./odoo.py --addons-path=addons --db-filter=mydb
Nun sollten Sie die Ausgabe so sehen:
INFO ? openerp: OpenERP version 9.0c
INFO ? openerp: addons paths: ['/Users/dev/Library/Application Support/Odoo/addons/9.0', u'/Users/dev/projects/odoo/addons', '/Users/dev/projects/odoo/openerp/addons']
INFO ? openerp: database: [email protected]:default
INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
9) Öffnen Sie odoo
in Ihrem Browser
mydbodoo
(ich denke, das Präfix mydb
ist hier wichtig) und das Passwort admin
Create database
odoo
-Schnittstelle umgeleitet werden (siehe den zweiten Screenshot).Erledigt!
Führen Sie das gleiche wie oben aus, führen Sie in Schritt (7)
nicht pip install --user -r requirements.txt
und stattdessen Folgendes aus:
pip install virtualenv # not sure here, Sudo may be needed
mkdir ~/venv
cd ~/venv
mkdir odoo
virtualenv odoo
source ~/venv/odoo/bin/activate
cd ~/path/to/odoo
pip install -r requirements.txt # no Sudo here!
Fahren Sie nun mit Schritt (8)
fort. Bevor du odoo startest, musst du zuerst die virtualenv aktivieren:
source ~/venv/odoo/bin/activate
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
./odoo.py --addons-path=addons --db-filter=mydb
Voraussetzungen: Ich hatte bereits postgresql 9.4.5, nodejs 0.10.25 und Python 2.7.8.
Installation:
git clone https://github.com/odoo/odoo.git
cd odoo
Sudo apt-get install libldap2-dev libsasl2-dev libevent-dev libxslt1-dev libxml2-dev
pip install -r requirements.txt
Sudo npm install -g less less-plugin-clean-css
./odoo.py --addons-path=addons --db-filter=mydb
Das ist nun alles so, wie in Schritt (9) für Mac OS.
Möglicherweise handelt es sich dabei um ein paar Probleme mit Python-Modulen, Bibliothek, Paketen oder Node-Dateien.
Versuchen Sie es mit folgenden Informationen:
Mit dem folgenden Befehl werden alle von Odoo benötigten Python-Module installiert.
pip install lxml
Überprüfen Sie Ihre werkzeug-Version. Wenn dies nicht der Fall ist, wird es 0.9.6, sein.
pip show werkzeug #this command will show the details of werkzeug
pip install werkzeug==0.9.6 #this command will install werkzeug up to 0.9.6
Installieren Sie nodejs über Ihren bevorzugten Paketmanager ( homebrew , macports ) und installieren Sie less und less-plugin-clean-css:
npm install -g less
npm install -g less-plugin-clean-css
Weitere Informationen finden Sie in der Odoo9-Installationsdokumentation.
NOTE:
Das standardmäßige Login und Passwort lautet admin und admin.
EDIT: 1
Versuchen Sie, ImportError: No module namens pyPdf mit dem folgenden Befehl aufzulösen.
pip install pypdf
EDIT: 2
Wenn Sie keinen Relevanzverteiler finden, versuchen Sie es mit dem folgenden Befehl.
pip install --allow-unverified pyPdf pyPdf
Ich habe alles gemacht, aber ich konnte Odoo nicht auf meinem Mac 10.11.6 ausführen.
Ich hatte dieses Problem, wenn ich versuche, odoo auszuführen ./odoo.py
psycopg2 can't find symbol _PQbackendPID
Ich habe herausgefunden, dass viele Python-Versionen von 2.3 bis 3.5 installiert sind
Alle Version von Python gelöscht Wie kann ich Python 2.7 unter Mac OS X 10.6.4 deinstallieren?
$ brew uninstall --force python3
$ brew uninstall --force python
Alle Änderungen in ~/.bash_profile
löschen
auch gelöscht /usr/local/lib/python2.7/site-packages
Dann fange von vorne an:
$ Ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew update
$ brew install python
$ brew install postgresql
Um PostgreSQL jetzt und automatisch beim Systemstart zu starten, führen wir Folgendes aus:
$ ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
// I had error: LaunchAgents not found
// If you have error you can download postgres from postgresapp.com to manually start the server
Installieren Sie einige Abhängigkeiten
$ brew install freetype jpeg libpng libtiff webp xz
$ pip install --upgrade pip
$ pip uninstall virtualenv
$ pip install virtualenv
// Delete existing ~/odoo-env folder first
$ virtualenv ~/odoo-env
$ . ~/odoo-env/bin/activate
Clone git Repository branch 9.0
$ git clone https://github.com/odoo/odoo.git -b 9.0
wechseln Sie in das geklonte odoo-Verzeichnis (mit cd
) und führen Sie es aus (Sie müssen sich in Ihrer virtuellen Umgebung befinden):
$ pip install -r requirements.txt
Wenn erfolgreich installiert, führen Sie es aus
$ export LC_ALL=en_US.UTF-8
$ export LANG=en_US.UTF-8
$ python ./odoo.py
Ein wunderbares Tutorial von Christoph Giesel
Ich bekomme dasselbe Problem und es scheint, dass mein System nicht die korrekte Six-Bibliothek verwendet. Was Sie zuerst tun können, ist die Aktualisierung Ihrer Bibliothek
Sudo pip2 install six -U
Sobald Sie das getan haben, kann Ihr System die falsche Bibliothek erneut verwenden. Um dies zu überprüfen, können Sie eine Python-Datei wie folgt erstellen
#vi testsix.py to create the file
#type i to insert
import six
print six.__file__
#escape
#type wq to save
#chmod +x testsix.py
#python testsix.py
Dann, wenn Sie lesen
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.pyc
Dann müssen Sie diese Datei entfernen
rm -rf /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.*
Dann können Sie die Datei testsix.py erneut überprüfen und prüfen, ob Sie diesen Pfad erhalten
/Library/Python/2.7/site-packages/six.pyc
Dann sollten Sie Ihren odoo-Server neu starten.
Ich bekomme das aus der Antwort von Oriol Nieto . Ich habe versucht, den vorherigen internen Serverfehler zu beheben, den ich bekomme.
Wenn Sie El Capitan verwenden und auch mit Sudo einige Berechtigungsprobleme haben, müssen Sie möglicherweise diesen -Link überprüfen, um Root-Zugriff zu entfernen.