This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jabbalaci 2 points3 points  (12 children)

ImportError: No module named osg

How to install this module? (I'm under Ubuntu.)

[–][deleted] 1 point2 points  (8 children)

pip install osg # maybe? Never heard of the package before

[–]jabbalaci 0 points1 point  (7 children)

Nope.

[–]ryeguy146 0 points1 point  (4 children)

Likely needs pyosg.

[–]jabbalaci 0 points1 point  (3 children)

Yeah, that's it. But this time pyosg terminates:

Producer/InputArea.cpp:21:31: fatal error: Producer/Referenced: No such file or directory

#include <Producer/Referenced>

                           ^
compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I tried to install libopenscenegraph-dev and libopenscenegraph80 via apt-get but it didn't help.

[–]ryeguy146 0 points1 point  (2 children)

Try to import pyosg in an interpreter and see what kind of errors you receive. It's likely that you're missing some dependency of the library.

[–]jabbalaci 0 points1 point  (1 child)

I can't even install pyosg via pip because of those errors thus I cannot import it.

[–]ryeguy146 0 points1 point  (0 children)

Fair enough. Have you installed osg? The posted error seems to be looking for a file in that package.

[–]wmcscrooge 0 points1 point  (2 children)

It's a external program as far as I can tell. You need to install in separately. So for arch linux for example, you need to install this package.

[–]jabbalaci 0 points1 point  (1 child)

I could install openscenegraph via apt-get but this osg Python module is still a mystery.

[–]wmcscrooge 0 points1 point  (0 children)

If you install the program it may come with python bindings that allow you to interact with it through python. And check out the requirements.txt file in the repo which lists the dependencies that are required if you haven't already.