davidhamann / python-fmrest

Python wrapper around the FileMaker Data API
MIT License
100 stars 27 forks source link

module 'fmrest' has no attribute 'Server' #13

Closed Ch0nDa closed 5 years ago

Ch0nDa commented 5 years ago

I am having no issues when running on mac.

However, when I run on Ubuntu, I get: AttributeError: module 'fmrest' has no attribute 'Server'

I've tested on two different fresh installs of Ubuntu on Raspberry Pi to no avail.

davidhamann commented 5 years ago

How did you install it? Via PyPI (pip install python-fmrest)?

Can you do a dir(fmrest) and fmrest.__version__ and post the output here? And also what Python version you are using?

Ch0nDa commented 5 years ago

Installed via pip (pip install python-fmrest, pip3 install python-fmrest)

Here is my output. I am not sure if I am doing dir(fmrest) and fmrest.version correctly. Is this done within Python?

Python 3.6.8 (default, Oct 7 2019, 12:59:55) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import fmrest dir(fmrest) ['builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec'] fmrest.version Traceback (most recent call last): File "", line 1, in AttributeError: module 'fmrest' has no attribute 'version' fmrest.version Traceback (most recent call last): File "", line 1, in AttributeError: module 'fmrest' has no attribute 'version'

Ch0nDa commented 5 years ago

Python 3.6.8 (default, Oct 7 2019, 12:59:55) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

dir(fmrest) Traceback (most recent call last): File "", line 1, in NameError: name 'fmrest' is not defined fmrest Traceback (most recent call last): File "", line 1, in NameError: name 'fmrest' is not defined import fmrest dir(fmrest) ['builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec'] fmrest.version Traceback (most recent call last): File "", line 1, in AttributeError: module 'fmrest' has no attribute 'version' fmrest.version Traceback (most recent call last): File "", line 1, in AttributeError: module 'fmrest' has no attribute 'version'

Ch0nDa commented 5 years ago

the double underscores are not showing up in my github comment fyi.

Ch0nDa commented 5 years ago

This command fixed it: pip install python-fmrest

For Ubuntu: pip3 install python-fmrest

I was using the wrong command: pip install fmrest

As stated on Filemaker Community, thanks so much. :) I'll be around.