Ask Your Question
0

python2.6 setup.py build

asked 2011-02-14 05:55:36 -0500

shihangwei gravatar image

python2.6 setup.py build

No handlers could be found for logger "nova.root"

http://nova.openstack.org/adminguide/single.node.install.html#step-11-get-an-image (http://nova.openstack.org/adminguide/...)

edit retag flag offensive close merge delete

12 answers

Sort by » oldest newest most voted
0

answered 2011-02-15 15:42:44 -0500

vishvananda gravatar image

Well there you go, you need to install the netaddr module via pip install netaddr or apt-get install python-netaddr. On Feb 14, 2011 6:53 PM, "shihangwei" question145300@answers.launchpad.net wrote:

Question #145300 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

Status: Answered => Open

shihangwei is still having a problem: hello,Vish i added it like this:

import os import subprocess from nova import log as logging logging.basicConfig() from setuptools import setup, find_packages from setuptools.command.sdist import sdist from nova.utils import parse_mailmap, str_dict_replace from nova import version if os.path.isdir('.bzr'):

and new error : ( ,as follows:

2011-02-15 08:44:41,544 CRITICAL nova.root [-] No module named netaddr (nova.root): TRACE: Traceback (most recent call last): (nova.root): TRACE: File "setup.py", line 29, in <module> (nova.root): TRACE: from nova.utils import parse_mailmap, str_dict_replace (nova.root): TRACE: File "/download/nova-2011.1/nova/utils.py", line 35, in <module> (nova.root): TRACE: import netaddr (nova.root): TRACE: ImportError: No module named netaddr (nova.root): TRACE:

and if i added it like this :

import os import subprocess from setuptools import setup, find_packages from setuptools.command.sdist import sdist from nova.utils import parse_mailmap, str_dict_replace from nova import version from nova import log as logging logging.basicConfig() if os.path.isdir('.bzr'):

then it's also No handlers could be found for logger "nova.root"


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-02-16 05:23:16 -0500

shihangwei gravatar image

yes,i think

from nova import log as logging logging.basicConfig()

worked.

edit flag offensive delete link more
0

answered 2011-02-14 10:59:53 -0500

shihangwei gravatar image

also is No handlers could be found for logger "nova.root"

edit flag offensive delete link more
0

answered 2011-02-14 08:04:32 -0500

As workaround I recommend you add this line: logging.baseConfig() to setup.py just after import code.

edit flag offensive delete link more
0

answered 2011-02-14 08:25:31 -0500

janson071 gravatar image

To: Vasiliy Shlykov after adding logging.baseConfig() to setup.py, there is an error as follows: [root@localhost nova-2011.1]# python2.6 setup.py build Traceback (most recent call last): File "setup.py", line 21, in <module> logging.baseConfig() NameError: name 'logging' is not defined

what I add as follows:

import os import subprocess logging.baseConfig()

Is it right ?

edit flag offensive delete link more
0

answered 2011-02-14 08:57:18 -0500

Ups, I forgot to import logging. This is the right workaround:

import logging logging.basicConfig()

edit flag offensive delete link more
0

answered 2011-02-14 09:02:02 -0500

shihangwei gravatar image

To Vasiliy Shlykov , : ( i did it :

import logging logging.basicConfig()

but it is also : No handlers could be found for logger "nova.root"

OMG

edit flag offensive delete link more
0

answered 2011-02-14 09:07:09 -0500

Anyway, beginning of my setup.py, hope this helps:

import os
import subprocess
import logging

from setuptools import setup, find_packages
from setuptools.command.sdist import sdist

from nova.utils import parse_mailmap, str_dict_replace
from nova import version

logging.basicConfig()

if os.path.isdir('.bzr'):

edit flag offensive delete link more
0

answered 2011-02-14 09:10:57 -0500

shihangwei gravatar image

also is No handlers could be found for logger "nova.root"

it is fate ? =。=

edit flag offensive delete link more
0

answered 2011-02-14 09:20:50 -0500

janson071 gravatar image

The result is the same to me, Is there any other solution ? Appreciaed for your quick reply!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-02-14 05:55:36 -0500

Seen: 223 times

Last updated: Feb 16 '11