woo

Problems on the installation of woo

Asked by Henry

Dear all,
    I want to installe Woo on my MACbook (OS) through the virtualization software(Parallel Desktop). The Ubuntu version is 14.04.
   The I run the following script to install the Woo:
   sudo add-apt-repository ppa:eudoxos/woo-daily
  sudo apt-get update
   sudo apt-get install python-woo

   However, when i run woo in the terminal, some errors happend:
     ~$ woo
Error importing woo._cxxInternal (--flavor= ).
Traceback (most recent call last):
  File "/usr/bin/woo", line 9, in <module>
    load_entry_point('woo==0.99-3582-21-openmp-ubuntu14.04.1', 'console_scripts', 'woo')()
  File "/usr/lib/python2.7/dist-packages/wooMain.py", line 234, in main
    import woo
  File "/usr/lib/python2.7/dist-packages/woo/__init__.py", line 130, in <module>
    _cxxInternal=__import__('woo.'+cxxInternalName,fromlist='woo')
ImportError: No module named core

Anyone can help me?
Thanks a lot!
Best regard,
Henry

Question information

Language:
English Edit question
Status:
Solved
For:
woo Edit question
Assignee:
No assignee Edit question
Solved by:
Henry
Solved:
Last query:
Last reply:
Revision history for this message
matthias (matthias-frank) said :
#1

the same message occurs also on my ubuntu trusty, no idea to resolve this

matthias

Revision history for this message
Václav Šmilauer (eudoxos) said :
#2

Hi guys, thanks for the information, I will test it and fix it ASAP. Until then, please be patient. Vaclav

Revision history for this message
Václav Šmilauer (eudoxos) said :
#3

Hi there, I found the cause, it is a regression introduced some time ago; will be fixed in an hour or so. I keep you updated. Cheers, Vaclav

Revision history for this message
Václav Šmilauer (eudoxos) said :
#4

The issue is fixed in rev 3584. Packages are being built currently [1] and should be available for download in an hour or so. The issue was only manifest on clean installs (such as yours) and was a regression introduced a week ago. Thanks for reporting the problem.

Cheers, Václav

[1] https://code.launchpad.net/~eudoxos/+recipe/woo-daily

Revision history for this message
Henry (wenjiexu) said :
#5

The rev of the woo daily is still 3582.
"
Preparing to unpack .../python-woo_0.99+3582+21~openmp~ubuntu14.04.1_amd64.deb ...
Unpacking python-woo (0.99+3582+21~openmp~ubuntu14.04.1) ...
Setting up python-woo (0.99+3582+21~openmp~ubuntu14.04.1) ...

"

Henry.

Revision history for this message
Henry (wenjiexu) said :
#6

I install the "python-woo-0.99+3584+21~openmp~ubuntu14.04.1.deb"
however, there are still errors:

Error importing woo._cxxInternal (--flavor= ).
Traceback (most recent call last):
  File "/usr/local/bin/woo", line 2, in <module>
    import wooMain,sys; sys.exit(wooMain.main())
  File "/usr/lib/python2.7/dist-packages/wooMain.py", line 234, in main
    import woo
  File "/usr/local/lib/python2.7/dist-packages/woo/__init__.py", line 130, in <module>
    _cxxInternal=__import__('woo.'+cxxInternalName,fromlist='woo')
ImportError: No module named _cxxInternal

Thanks a lot!
Henry

Revision history for this message
Václav Šmilauer (eudoxos) said :
#7

Hi Henry,

it seems that you have a leftover binary from local build on your computer -- /usr/local/bin/woo. Please delete those lefovers:

* /usr/local/bin/woo, /usr/local/bin/woo-batch
* /usr/local/lib/python2.7/dist-packages/woo (including everything inside).

At that moment, the package should work.

I will try to have some intelligence built-in which will detect such situations.

Cheers, Václav

Revision history for this message
Václav Šmilauer (eudoxos) said :
#8

PS also delete /usr/local/lib/python2.7/dist-packages/wooMain.py (and wooMain.pyc if present)

Revision history for this message
Henry (wenjiexu) said :
#9

Thanks a lot!
The problem has been solved.

Best regard,
Henry