Welcome to ask.woodem.org. You may post when you login through your GitHub account.

"PyInit__cxxInternal" error when run woo in the console

+1 vote
asked Oct 4, 2018 by Snowbughappyboy (190 points)

i installed the woodem on ubuntu18.04.1 by using the following command,

sudo add-apt-repository ppa:eudoxos/woo-daily
sudo apt-get update
sudo apt-get install python3-woo

after that, when i input the woo the following error happens,

WARN: adding /home/eudoxos/minieigen11/build to path for _minieigen11
Error importing woo._cxxInternal (--flavor= ).
Traceback (most recent call last):
  File "/usr/bin/woo", line 11, in <module>
    load_entry_point('woo===1.1-4051-40-ubuntu18.04.1', 'console_scripts', 'woo')()
  File "/usr/lib/python3/dist-packages/wooMain.py", line 244, in main
    import woo.tests
  File "/usr/lib/python3/dist-packages/woo/__init__.py", line 147, in <module>
ImportError: dynamic module does not define module export function (PyInit__cxxInternal)
Segmentation fault (core dumped)


Thanks a lot. 

1 Answer

0 votes
answered Oct 4, 2018 by eudoxos (49,070 points)

Hi, unfortunately it seems the packages in the PPA are broken. The best what you can do is install from the source using a script which will setup everything.

This basically does what is described in https://woodem.org/user/installation.html#compilation-from-source but in an automated manner; you will have everything installed in /usr/local and you will be able to use woo -RR to update. Ubuntu 18.04 LTS is the most tested distribution at the moment.

I cannot update the documentation directly now, being away, sorry for that.

HTH, Vaclav

commented Oct 15, 2018 by Snowbughappyboy (190 points)

My system is ubuntu 18.04.1 LTS. I will try a new system. Thanks.

commented Oct 15, 2018 by Snowbughappyboy (190 points)

My system is ubuntu 18.04.1 LTS. I will try a new system. Thanks.

When i use the typical method to install,

sudo apt-get install python3-woo 

I think it succeed, but after i input woo, it says similar problem with @MaxWiebicke,
enter image description here
enter image description here

commented Oct 15, 2018 by eudoxos (49,070 points)

The last image is not showing any problem...? as far as I see.

commented Oct 15, 2018 by Snowbughappyboy (190 points)

Oh, yes. It works now. I have tried a test case. So maybe the installing method using the code of python3 woo-install.py has some problems.

BTW, what does the import warning mean at the beginning? like,

ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
  return f(*args, **kwds)

Thanks very much.

commented Oct 16, 2018 by eudoxos (49,070 points)

That is a warning which actually comes from h5py which we can't do nothing about. I put warning filter around the h5py import, it should not appear anymore now.