Saturday, 23 July 2016

Installation Odoo on Mac OS X Error Could not execute command 'lessc'



https://dedyyuristiawan.blogspot.co.id


Hello world. As you know before i create this post, i did post about installation on mac with bitnami version and home-brew. There so many difference between bitnami and home-brew, you can check on my previous post. So when i install Odoo with home-brew, i got a one problem. You can see in this post.

The problem is my library python not complete to run Odoo, as you can see the problem is "Could not execute command 'lessc' ", i just need to install less in my python library. so i going to find solution on google. And finally i got solution to make Odoo on my mac with this command ( type without  $ ).

$ brew update
$ brew uninstall node
$ brew install node
$ sudo brew postinstall node

so first step i just need to update my brew, and uninstall node that i ever install, and then install node again, i make force to post install node. I hope this post can help you and see you.
Share:

How to Install Odoo On Mac with Packages Homebrew



https://dedyyuristiawan.blogspot.co.id


Hello world. How are you today ? Are want to install odoo 9 on mac with packages home-brew,  now you can make it happen in your mac. Just do my step by step and i will give you perfect way to get odoo in your mac. In this post i will show you how to install odoo on mac with packages homebrew. Iam so really interested talk about home-brew cause with this packages we can do anything like we use linux on your mac. 

As you know home-brew is a "the missing packages for os x". With Homebrew we can install packages in the console as we can in the most Linux distributions. So first step you need install with this command in your console (terminal) :

1. Install Homebrew  :


  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. Install Python with Brew

After this we can install Python. If you already did this with a downloaded installer you can skip installing Python with Homebrew but I cannot guarantee for that. If you have problems then uninstall Python and try the package from Homebrew. To install run and follow the instructions:


  brew update
  brew install python

3. Install PostgreSQL

Now we have installed Python. Next we need the PostgreSQL server. Here we can also use Homebrew:

  brew install postgresql

remember if you have already odoo on your mac, using this command first before you run odoo. To start the PostgreSQL right now and automatically at system startup we run:

4. Install some Dependencies for the Pillow module

  brew install freetype jpeg libpng libtiff webp xz

5. Install Dependencies Python Module for Odoo

Next we can decide how to install the Python dependencies for odoo. One way is to install these globally. If you developing on other Python applications you sometimes need the same Python packages but in different versions. Or you want to let the system clear and remove these easy when you do not need them anymore. To get these advantages we can create a virtual environment for Python. This virtual environment copies Python and some other files (like pip) to a specified directory (e.g. in your home path) and provides a script which rewrites the path to use the Python from this directory.

To install the Python dependencies we use pip which is package manager for Python (like Homebrew but for Python modules) and is already installed with Python. For creating the virtual environment we have to install virtualenv. Homebrew does not contain virtualenv so we install it with pip (globally):

  pip install virtualenv

Now we can create the virtual environment. We use for this the directory odoo-env in our home directory:

  virtualenv ~/odoo-env

With this command all necessary files were copied to this directory. Next we enter the created virtual environment:

  . ~/odoo-env/bin/activate

Okay, all looking the same as before? :) We can look if we are in this virtual environment:

  which python
  /Users/youruser/odoo-env/bin/python

As you can see the Python binary from this directory is used. If you want to leave this environment you can type deactivate or close the terminal. Be aware that if you open a new tab or reopen the terminal you are not in the environment. Here you have to run the activate script as before.

Now we can start installing all dependencies for odoo. Download odoo if you did not have (e.g. clone the git repository) . In the newer odoo versions there is a requirements.txt file which contains all dependencies. To install these you have to change to the odoo directory (with cd) and run (you have to be in your virtual environment):

  pip install -r requirements.txt

if you get some text like this, you should be happy. Lol

  Successfully installed [...]
  Cleaning up...

You have installed all dependencies. Now you can start odoo with this command :

  python ./odoo.py

and will show like this.

2014-12-16 09:52:28,172 2974 INFO ? openerp: OpenERP version 8.0
2014-12-16 09:52:28,172 2974 INFO ? openerp: addons paths: ['/Users/youruser/Library/Application Support/Odoo/addons/8.0', u'/Users/youruser/odoo/openerp-v8/openerp/addons', u'/Users/youruser/odoo/openerp-v8/addons']
2014-12-16 09:52:28,172 2974 INFO ? openerp: database hostname: localhost
2014-12-16 09:52:28,172 2974 INFO ? openerp: database port: 5432
2014-12-16 09:52:28,172 2974 INFO ? openerp: database user: youruser
2014-12-16 09:52:28,328 2974 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
2014-12-16 09:53:32,095 2974 INFO ? openerp.addons.bus.bus: Bus.loop listen imbus on db postgres
…

Then you can open your browser and open http://localhost:8069 .

Here you can create a new database with or without demo data and playing/developing with odoo. If you done you can stop with CTRL+C in your console.

Now you can create database, user name and password for do development in first user interface. After you have done with first set up, you will meet the backend UI Odoo 9.


https://dedyyuristiawan.blogspot.co.id

You can install all apps that you want or you want to develop custom module for Odoo 9. But remember as you can see, we run with python so you need to start and restart when you want run or stop Odoo.

For start service you can use this command :

  virtualenv ~/odoo-env
  . ~/odoo-env/bin/activate
  ./odoo.py

Actually when i was install Odoo on mac, i have so many problem so if you have problem you can write comment bellow and i will help you as i can.


Share:

Wednesday, 20 July 2016

How to Install Odoo on Mac OS X with Bitnami Version



https://dedyyuristiawan.blogspot.com


Hello world. Today my friends confuse about how to install odoo on Mac operating system. So this post i will show you, how to install odoo on Mac operating system? Sometimes we meet a problem about develop, learning or use a software, cause we just have one computer or one operating system. Like this case, we want to install odoo on mac. Actually odoo is made for linux operating system, mostly developer use linux for develop with odoo cause it can be fast to develop. But how about the other, like my friend. He is a business analyst, he just one laptop. Its mac, so that why the creative developer help us to use software run with different platform. 

When i search on google, i found a lot how to install odoo on mac but with different way, i found 2 option how to install odoo on mac. This is my option.

1. Odoo Bitnami version

This one is very easy to install, like you want install application. People say that this one is runs slow, but i have different opinion. Its good product, and good way for their don't need know about code. This one is not runs slow, cause we want to install in good product too like mac. right? yap that why i suppose you if you have mac and you are won't develop odoo, you can pick this option.

2.  Odoo with add Library

This one is real odoo. So how to install it? Cause you know mac dont have library like python, postgre etc. So we need to add this library to our mac. This one usually use for a engineer, that they want a develop or just test in different os. Actually this one is really made for engineer that we want to develop odoo with fast. So if you are a engineer, i suppose you to install odoo with this option. 

Now we know the different odoo in mac, for this post i will show you how to install odoo with bitnami version on mac operating system. For option two, its how to install odoo with add library, i will show in the next post.  Don't worry, lets do this.

You can download odoo 9 bitnami version in this link Bitnami.com, you can choose Odoo 9 cause is new, is recommended for you. After you downloaded, you can click the dmg file and will show like this picture.


http://dedyyuristiawan.blogspot.co.id

First U/I Installation Odoo, just click the icon and if you meet like bellow picture ( permission from Mac OS ) just click open, cause i trust, i want to develop odoo. How about you? whatever 

http://dedyyuristiawan.blogspot.co.id

First U/I Installation Odoo just click next.

http://dedyyuristiawan.blogspot.co.id

This is location when we want to put odoo application. I prefer to not rename this one, cause i just want default settings from the developer. After that you can click next.

http://dedyyuristiawan.blogspot.co.id

This one use for login Odoo, so you can fill you email and password.  After that you can click next.

http://dedyyuristiawan.blogspot.co.id

This is settings configuration for email, i just not check this one, because i don't need this. Whatever about you, if you want odoo can sent email in the future you can check this one. After that you can click next.

http://dedyyuristiawan.blogspot.co.id

This is settings for put our website to cloud. Just click next.

http://dedyyuristiawan.blogspot.co.id

Installation process running.  After that you can click next.

http://dedyyuristiawan.blogspot.co.id

Just click next again, if installation process complete.

https://dedyyuristiawan.blogspot.co.id


Last step click button launch, and odoo will show in your browser.

https://dedyyuristiawan.blogspot.co.id



You can fill user name and password like you did in installation step. Just click login and you will see the first user interface odoo.

https://dedyyuristiawan.blogspot.co.id


If you want to istall application or module you just click and install it, when you want uninstall you just pick applcation or module and then click uninstall.

So where is the odoo aplication? What about i want to start Odoo for first time? Odoo application will saved in Application/(odoo folder like you write in installation). If you want run do again just open application :

https://dedyyuristiawan.blogspot.co.id


a. Odoo Folder and click (Manager-OS X) 
b. Select tab Manage Sever 
c. Start All Server 
d. Open your browser and type http://localhost:8080/web/login

or 

a. Odoo Folder and click (Manager-OS X) 
b. Select tab Welcome
c. Go to Application
d. Start Server and Odoo will automatically launch in your browser.

So the conclusion is pick the one want you want to use, ask your self what you need? If you have question, you can write comment bellow, i will help you if i can. Lol.
Share:


<br>


Advice for contacting me at dedyy54@gmail.com