Skip to content

Commit c5e96ca

Browse files
committed
update README
1 parent c050a6c commit c5e96ca

1 file changed

Lines changed: 12 additions & 25 deletions

File tree

README.md

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ GridDB Python Client is developed using GridDB C Client and [SWIG](http://www.sw
88

99
Building of the library and execution of the sample programs have been checked in the following environment.
1010

11-
OS: CentOS 7.6(x64) (GCC 4.8.5)
11+
OS: CentOS 7.9(x64) (GCC 4.8.5)
1212
SWIG: 4.0.2
1313
Python: 3.9
1414
GridDB C client: V4.5 CE(Community Edition)
15-
GridDB server: V4.5 CE, CentOS 7.6(x64) (GCC 4.8.5)
15+
GridDB server: V4.5 CE, CentOS 7.9(x64) (GCC 4.8.5)
1616

17-
OS: Ubuntu 18.04(x64) (gcc 7.3.0)
17+
OS: Ubuntu 18.04(x64) (gcc 7.5.0)
1818
SWIG: 4.0.2
1919
Python: 3.9
2020
GridDB C client: V4.5 CE (Note: If you build from source code, please use GCC 4.8.5.)
@@ -24,13 +24,13 @@ Building of the library and execution of the sample programs have been checked i
2424
SWIG: 4.0.2
2525
Python: 3.9
2626
GridDB C client: V4.5 CE
27-
GridDB server: V4.5 CE, CentOS 7.6(x64) (GCC 4.8.5)
27+
GridDB server: V4.5 CE, CentOS 7.9(x64) (GCC 4.8.5)
2828

2929
OS: MacOS Catalina (x86_64)
3030
SWIG: 4.0.2
3131
Python: 3.9
3232
GridDB C client: V4.5 CE
33-
GridDB server: V4.5 CE, Centos 7.6(x64) (GCC 4.8.5)
33+
GridDB server: V4.5 CE, Centos 7.9(x64) (GCC 4.8.5)
3434

3535
## QuickStart (CentOS, Ubuntu)
3636
### Preparations
@@ -58,8 +58,8 @@ Set CPATH and LIBRARY_PATH.
5858

5959
Install Pandas and Numpy as below:
6060

61-
$ python -m pip install numpy
62-
$ python -m pip install pandas
61+
$ python3 -m pip install numpy
62+
$ python3 -m pip install pandas
6363

6464
### Build and Run
6565

@@ -79,11 +79,11 @@ GridDB Server need to be started in advance.
7979

8080
1. Set LD_LIBRARY_PATH
8181

82-
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:<C client library file directory path>
82+
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:<C client library file directory path>
8383

8484
2. The command to run sample
8585

86-
$ sample/sample1.py <GridDB notification address> <GridDB notification port>
86+
$ python3 sample/sample1.py <GridDB notification address> <GridDB notification port>
8787
<GridDB cluster name> <GridDB user> <GridDB password>
8888
-->Person: name=name02 status=False count=2 lob=[65, 66, 67, 68, 69, 70, 71, 72, 73, 74]
8989

@@ -124,7 +124,7 @@ Install SWIG as below.
124124
$ sudo make install
125125
126126
Note: If MacOS, you might need to install pcre in advance.
127-
$ sudo brew install pcre
127+
$ brew install pcre
128128
129129
Install [GridDB Server](https://github.com/griddb/griddb) and [C Client](https://github.com/griddb/c_client). (Note: If you build them from source code, please use clang 11.0.0)
130130
@@ -136,22 +136,9 @@ Set CPATH and LIBRARY_PATH.
136136
137137
Install Pandas and Numpy as below:
138138
139-
$ python -m pip install numpy
140-
$ python -m pip install pandas
139+
$ python3 -m pip install numpy
140+
$ python3 -m pip install pandas
141141
142-
Modify **Makefile** to make python_client compatible with MacOS:
143-
- Change python include path and numpy include path on MacOS. For example:
144-
```bash
145-
INCLUDES_PYTHON = $(INCLUDES) \
146-
-I$(HOME)/.pyenv/versions/3.9.5/include/python3.9 \
147-
-I$(HOME)/.pyenv/versions/3.9.5/lib/python3.9/site-packages/numpy/core/include
148-
```
149-
150-
- Remove "-Llibs -lrt" (not support on MacOS) from LDFLAGS on Makefile
151-
- Add "-undefined dynamic_lookup" like
152-
```bash
153-
$(CXX) -shared -undefined dynamic_lookup -o $@ $(OBJS) $(SWIG_PYTHON_OBJS) $(LDFLAGS)
154-
```
155142
### Build and Run
156143
157144
1. Execute the command on project directory.

0 commit comments

Comments
 (0)