You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@libcloud.apache.org by David Montgomery <da...@gmail.com> on 2012/04/13 16:31:49 UTC
Cant get libcloud to work in eclipse
Hi,
I installed libcloud using pip in ubuntu 64. I am using python2.7 and
eclipse is my IED.
>From the command line...things work.
>>> import libcloud
>>> print libcloud.__version__
0.9.1
>From eclipse, things dont work. I cant import anything relating to
libcloud I have no other issues with any other python libraries.
Libraries where installed in
/usr/local/lib/python2.7/dist-packages/libcloud
import libcloud.compute.types
Traceback (most recent call last):
File "/home/ubuntu/workspace/rtbopsConfig/test_code/libcloud.py",
line 6, in <module>
from libcloud.compute.types import Provider
File "/home/ubuntu/workspace/rtbopsConfig/test_code/libcloud.py",
line 6, in <module>
from libcloud.compute.types import Provider
ImportError: No module named compute.types
This happens with all methods. I am kinda at a loss. I even re
imported the python interpreter in eclipse
Any issues with libcloud?
Thanks
Re: Cant get libcloud to work in eclipse
Posted by Jay Doane <ja...@almery.com>.
Hi David,
It sounds like eclipse may be using a different python interpreter than the
one at /usr/local/lib/python2.7/
Is it possible to set the interpreter in the preferences?
Jay
On Fri, Apr 13, 2012 at 7:31 AM, David Montgomery <davidmontgomery@gmail.com
> wrote:
> Hi,
>
> I installed libcloud using pip in ubuntu 64. I am using python2.7 and
> eclipse is my IED.
>
> From the command line...things work.
>
> >>> import libcloud
> >>> print libcloud.__version__
> 0.9.1
>
>
> From eclipse, things dont work. I cant import anything relating to
> libcloud I have no other issues with any other python libraries.
> Libraries where installed in
> /usr/local/lib/python2.7/dist-packages/libcloud
>
> import libcloud.compute.types
>
> Traceback (most recent call last):
> File "/home/ubuntu/workspace/rtbopsConfig/test_code/libcloud.py",
> line 6, in <module>
> from libcloud.compute.types import Provider
> File "/home/ubuntu/workspace/rtbopsConfig/test_code/libcloud.py",
> line 6, in <module>
> from libcloud.compute.types import Provider
> ImportError: No module named compute.types
>
>
>
> This happens with all methods. I am kinda at a loss. I even re
> imported the python interpreter in eclipse
>
> Any issues with libcloud?
>
> Thanks
>