- Posts: 1
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'
- Brad Rhoads
- Topic Author
- Offline
- New Member
Less
More
6 years 5 months ago #159631
by Brad Rhoads
ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey' was created by Brad Rhoads
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:
Here's the error:
What am I doing wrong? Thanks!
pip3 list show's it's installed:
Code:
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:
Code:
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!
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 962
- Thank you received: 216
6 years 5 months ago #159636
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on 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
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13912
- Thank you received: 2549
6 years 5 months ago #159642
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'
And your code ?
github.com/lindsay-stevens/limesurveyrc2api#running-tests
github.com/lindsay-stevens/limesurveyrc2api#running-tests
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- bdrhoa
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
6 years 5 months ago #159657
by bdrhoa
Replied by bdrhoa on topic ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'
Just the one line:
from limesurveyrc2api.limesurvey import LimeSurvey
from limesurveyrc2api.limesurvey import LimeSurvey
The topic has been locked.
- bdrhoa
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
6 years 5 months ago - 6 years 5 months ago #159658
by bdrhoa
Replied by bdrhoa on topic ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'
It is on.
But the problem is with the python interpreter not finding the library.
But the problem is with the python interpreter not finding the library.
Last edit: 6 years 5 months ago by bdrhoa.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13912
- Thank you received: 2549
6 years 5 months ago #159664
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
The topic has been locked.
- democracygps
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 1
5 years 5 months ago #175059
by democracygps
Replied by democracygps on topic ModuleNotFoundError: No module named 'limesurveyrc2api.limesurvey'
If you install limesurveyrc2api using pip, the following seems to work:
from limesurveyrc2api.limesurveyrc2api import LimeSurveyRemoteControl2API as LimeSurvey
from limesurveyrc2api.limesurveyrc2api import LimeSurveyRemoteControl2API as LimeSurvey
The following user(s) said Thank You: Hun_Nils
The topic has been locked.