You are not logged in.

#1 2013-03-30 20:27:27

Llama
Member
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,285

Python: invisible modules (no import)

Hi,

Got installed eyeD3 and mutagen from repositories. They installed under /usr/lib/python2.7/site-packages/ which is probably OK. Unfortunately, I can't import them. In Eclipse Window->Preferences->PyDev->Interpreter-Python->Libraries I've added paths like /usr/lib/python2.7/site-packages/eyed3, but to no avail. What am I missing?

Offline

#2 2013-03-30 21:05:30

i_love_penguins
Member
From: Germany
Registered: 2010-03-30
Posts: 46
Website

Re: Python: invisible modules (no import)

Are you calling the "python" binary to run your script? This would imply that you run Python in version 3

It looks like you installed your library for Python 2, so you need to call the Python 2 binary which has to be installed, too (pacman: python2)

So you may want to run your script with the "python2.7" command.

Apart from that the python2-eyed3 is available in the community repository. So there is no need to install it by hand.

Offline

#3 2013-03-31 03:40:02

Llama
Member
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,285

Re: Python: invisible modules (no import)

i_love_penguins wrote:

Are you calling the "python" binary to run your script? This would imply that you run Python in version 3

No, I'm calling python2:

#!/usr/bin/env python2

...

UPD:

It's working fine, as it turned out. Some glitch upstairs, probably. Sorry.

Last edited by Llama (2013-03-31 04:50:36)

Offline

Board footer

Powered by FluxBB