nasa / pyCMR

Client for CMR APIs
Apache License 2.0
24 stars 12 forks source link

ImportError: No module named queue #20

Open richielo opened 7 years ago

richielo commented 7 years ago

Hi, I am trying to use this library to search for module. But I am having issues in importing it. I am using python2.7 and I received an error specified above, any idea why? Thank you so much

amarouane commented 7 years ago

Please launch your python interactive shell and try to import the library requests.

import requests

If you got the same error can you send me your requests library version by running:

$ pip freeze | grep requests

On Tue, May 23, 2017 at 3:21 PM, richielo notifications@github.com wrote:

Hi, I am trying to use this library to search for module. But I am having issues in importing it. I am using python2.7 and I received an error specified above, any idea why? Thank you so much

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ghrcdaac/cmr/issues/20, or mute the thread https://github.com/notifications/unsubscribe-auth/AKNwPjnJk9EDOZX5XfhVCrfOrU-G_wsQks5r8z--gaJpZM4NkOR4 .

-- Abdelhak MAROUANE Doctorant au Laboratoire des Recherches Subatomiques et Applications (LRSA) Faculté des Sciences Ben M'sik UNIVERSITE HASSAN II–MOHAMMEDIA-CASABLANCA GSM: (+212) 6-69-42-05-27 E-mail : abdelhak.marouane@univh2m.ac.ma

richielo commented 7 years ago

Thanks a lot for the reply, below is the screenshot for requests. I don't have the same error with that. This is the how I import the library: from pyCMR.pyCMR import searchCollection, searchGranule

Thanks again image

amarouane commented 7 years ago

I have asked you for requests because it uses Queue module from multiprocessing library.

If you get the same error after running from queue import Queue You will need to install it and we should include it n requirements. Sorry for this inconvenience.

On Wed, May 24, 2017 at 11:38 AM, richielo notifications@github.com wrote:

Thanks a lot for the reply, below is the screenshot for requests. I don't have the same error with that. This is the how I import the library: from pyCMR.pyCMR import searchCollection, searchGranule

Thanks again [image: image] https://cloud.githubusercontent.com/assets/13329406/26414572/301a7164-4075-11e7-9919-8e2f657084b2.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ghrcdaac/cmr/issues/20#issuecomment-303780848, or mute the thread https://github.com/notifications/unsubscribe-auth/AKNwPhrPVu2hNXXlIgTljbKyhz7g-PyMks5r9F0KgaJpZM4NkOR4 .

-- Abdelhak MAROUANE Doctorant au Laboratoire des Recherches Subatomiques et Applications (LRSA) Faculté des Sciences Ben M'sik UNIVERSITE HASSAN II–MOHAMMEDIA-CASABLANCA GSM: (+212) 6-69-42-05-27 E-mail : abdelhak.marouane@univh2m.ac.ma

richielo commented 7 years ago

I don't have issue importing requests though and I checked that I have the multiprocessing library too. But the error persists when I try it for pyCMR..

amarouane commented 7 years ago

I think your interpreter fails when it wants to import the queue from from queue import Queue Can you please run it on the interactive shell to make sure it is the source of the failure n we can work from there.

On Wed, May 24, 2017 at 12:49 PM, richielo notifications@github.com wrote:

I don't have issue importing requests though and I checked that I have the multiprocessing library too. But the error persists when I try it for pyCMR..

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ghrcdaac/cmr/issues/20#issuecomment-303800549, or mute the thread https://github.com/notifications/unsubscribe-auth/AKNwPtxgxHZryion4889tQolIAs9ZHPlks5r9G2vgaJpZM4NkOR4 .

-- Abdelhak MAROUANE Doctorant au Laboratoire des Recherches Subatomiques et Applications (LRSA) Faculté des Sciences Ben M'sik UNIVERSITE HASSAN II–MOHAMMEDIA-CASABLANCA GSM: (+212) 6-69-42-05-27 E-mail : abdelhak.marouane@univh2m.ac.ma