ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'

More
1 month 4 days ago #159631 by Brad Rhoads
Brad Rhoads created the topic: ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'
I'm trying to use the Python3 api - limesurveyrc2api - but the import is failing with ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'

pip3 list show's it's installed:
pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
certifi (2017.7.27.1)
chardet (3.0.4)
Django (1.11.6)
idna (2.6)
limesurveyrc2api (1.0.0) <=== it's there!
pip (9.0.1)
pytz (2017.2)
requests (2.18.4)
setuptools (36.5.0)
urllib3 (1.22)
wheel (0.30.0)
 

Here's the error:
 
acBook-Pro-de-Brad:~ bradrhoads$ python3
Python 3.6.3 (default, Oct  4 2017, 06:09:15)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from limesurveyrc2api.limesurvey import LimeSurvey
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'
>>>
 

What am I doing wrong? Thanks!

Please Log in to join the conversation.

More
1 month 4 days ago #159636 by tammo
tammo replied the topic: ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'
First guess: did you turn on the API in the Admin interface? By default it is not turned on.

Tammo


Tammo ter Hark at Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template

Please Log in to join the conversation.

More
1 month 4 days ago #159642 by DenisChenu
DenisChenu replied the topic: ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
1 month 3 days ago #159657 by bdrhoa
bdrhoa replied the topic: ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'
Just the one line:

from limesurveyrc2api.limesurvey import LimeSurvey

Please Log in to join the conversation.

More
1 month 3 days ago - 1 month 3 days ago #159658 by bdrhoa
bdrhoa replied the topic: ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'
It is on.

But the problem is with the python interpreter not finding the library.
Last Edit: 1 month 3 days ago by bdrhoa.

Please Log in to join the conversation.

More
1 month 2 days ago #159664 by DenisChenu
DenisChenu replied the topic: ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'
I'm not a python specialist, but i surely look and ask to python specific forum docs.python.org/3/library/exceptions.html#ModuleNotFoundError

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!