missing external dependency "unidecode"

Bug #1190658 reported by Davide Corio
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenERP Product Attributes
Fix Released
Undecided
Unassigned

Bug Description

while trying to install the module i get:

ImportError: No module named unidecode

this dependency should be declared in the __openerp__.py file

Related branches

Changed in openerp-product-attributes:
status: New → Fix Released
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Hi,

When the external dependency is present in the __openerp__.py file, I cannot install base_custom_attributes in OpenERP.

I get an error:
Error

Unable to upgrade module "base_custom_attributes" because an external dependency is not met: No module named unidecode

That's a strange issue.
The unidecode egg is in sys.path. The method openerp.addons.base.module.module.module.check_external_dependencies() uses `imp.find_module()`. In that case `imp.find_module('unidecode', None)` returns an ImportError. However, if I put an pdb at the same place and do a `import unidecode`, it finds the module and import it correctly.

A colleague of mine confirmed he had the same issue on another computer.

Changed in openerp-product-attributes:
status: Fix Released → Confirmed
Revision history for this message
Davide Corio (enlightx-deactivatedaccount) wrote :

I actually cannot reproduce it, but if external_dependencies doesn't work properly for everybody, it's better if we don't use it at all till we find the reason.

Revision history for this message
Davide Corio (enlightx-deactivatedaccount) wrote :

just remembered i had once the same problem with pywebdav, if i recall correctly.

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Following my comment #1, I noticed that:
If unidecode is installed as zipped egg, imp.find_module() can't find it so we won't be able to install base_custom_attributes.
If the egg is unzipped, it will work.

Revision history for this message
Davide Corio (enlightx-deactivatedaccount) wrote :

no zip-safe or not-zip-safe file is present in unidecode's egg.
then setuptools is failing in recognizing if it can be or not zip-safe.

in my case pip install unzipped the egg

Revision history for this message
Thomas Klosinsky (tmomas) wrote :

Hm,
for someone who is new to OpenERP, how can I fix the error since I am getting exactly the same?

Any step by step instructions possible?

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote : Re: [Bug 1190658] Re: missing external dependency "unidecode"

On 01/14/2014 04:32 PM, Thomas Klosinsky wrote:
> Hm,
> for someone who is new to OpenERP, how can I fix the error since I am getting exactly the same?
>
> Any step by step instructions possible?
>
When you install the unidecode egg, you should install the unzipped
version, using:

easy_install --always-unzip unidecode
or
pip install unidecode

ref:
http://stackoverflow.com/questions/1218058/how-do-i-forbid-easy-install-from-zipping-eggs

Revision history for this message
Takis (takis-25) wrote :

Hi, I am new to OpenERP . I have tried for two days product_custom_attributes to install. I always get the same error :
" Unable to install module" base_custom_attributes "because of external dependency is not met : No module named unidecode " .

I am running Windows Server 2012.
I have instaled Phyton . Then I installed this package.
https://pypi.python.org/pypi/Unidecode
 First, with this command : python setup.py install

Then I have both easy_install - always- unzip unidecode
and
pip install unidecode also made.

Next, I changed these files.
' product_custom_attributes / __openerp__.py '
' base_custom_attributes / __openerp__.py '

is shown with the extra lines like this:
https://code.launchpad.net/~enlightx/openerp-product-attributes/7.0-bug-1190658-unidecode-dep/+merge/169248

+ ' External_dependencies ' : {
+ ' Python' : [' unidecode '] ,
+}
+

Despite everything , I keep getting the same error .
Please describe how you unidecode properly installed and the system continues to run.

Thank you

Revision history for this message
johnfelipe (ingenierofelipeurrego) wrote :

Hi, please tell me if resolv this....

Changed in openerp-product-attributes:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.