Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe installation of the client in the README.md #8

Open
oleg68 opened this issue Apr 8, 2021 · 4 comments
Open

Describe installation of the client in the README.md #8

oleg68 opened this issue Apr 8, 2021 · 4 comments

Comments

@oleg68
Copy link

oleg68 commented Apr 8, 2021

I've downloaded fdb-jushua.

I've installed fdb python bindings with

pip install fdb

When I try to run a client command, I always receive an error:

[oleg@oleg2 FdbJoshua]$ python3 -m joshua.joshua list
Traceback (most recent call last):
  File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/oleg/work/fdb/FdbJoshua/joshua/joshua.py", line 22, in <module>
    from . import joshua_model
  File "/home/oleg/work/fdb/FdbJoshua/joshua/joshua_model.py", line 42, in <module>
    fdb.api_version(520)
AttributeError: module 'fdb' has no attribute 'api_version'

What have I missed?

@johscheuer
Copy link
Member

I'm not to familiar with Joshua. Normally the Python lib also needs the FDB client package installed (https://www.foundationdb.org/download).

@oleg68
Copy link
Author

oleg68 commented Apr 8, 2021

I have foundationdb-client installed on my machine. But joshua cleint does not work

@jzhou77
Copy link
Contributor

jzhou77 commented Apr 8, 2021

Is pip installing fdb python package in the correct location? Can you check if fdb package is at library path of python 3.9 (the version you have)?

@oleg68
Copy link
Author

oleg68 commented Apr 8, 2021

The necessary client installation steps are:

  1. Install foundationdb-clients from https://www.foundationdb.org/download/
  2. Install wheel with pip
  3. install foundationdb with pip
  4. go to the fdb-joshua directory
  5. run any joshua commands

In my case I missed (2) so fdb was not installed correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants