> On Jan. 12, 2021, 11:38 p.m., Madhan Neethiraj wrote:
> > intg/src/main/python/apache_atlas/model/glossary.py
> > Line 19 (original), 19 (patched)
> > <https://reviews.apache.org/r/73139/diff/2/?file=2244261#file2244261line19>
> >
> > Can you please look this following error?
> >
> > Traceback (most recent call last):
> > File "test.py", line 3, in <module>
> > from apache_atlas.client.base_client import AtlasClient
> > File
> > "<...>/atlas/intg/src/main/python/apache_atlas/client/base_client.py", line
> > 26, in <module>
> > from apache_atlas.client.discovery import DiscoveryClient
> > File
> > "<...>/atlas/intg/src/main/python/apache_atlas/client/discovery.py", line
> > 18, in <module>
> > from apache_atlas.model.discovery import (AtlasQuickSearchResult,
> > AtlasSearchResult,
> > File
> > "<...>/atlas/intg/src/main/python/apache_atlas/model/discovery.py", line
> > 21, in <module>
> > from apache_atlas.model.instance import AtlasEntityHeader
> > File
> > "<...>/atlas/intg/src/main/python/apache_atlas/model/instance.py", line 19,
> > in <module>
> > from apache_atlas.model.glossary import AtlasTermAssignmentHeader
> > File
> > "<...>/atlas/intg/src/main/python/apache_atlas/model/glossary.py", line 19,
> > in <module>
> > import apache_atlas.model.instance as instance
> > AttributeError: module 'apache_atlas.model' has no attribute 'instance'
>
> Verdan Mahmood wrote:
> Can you please share your test.py file? Also, how do you run/install this
> for testing?
> Tried to run with the clean install and things are working properly on my
> end.
>
> Madhan Neethiraj wrote:
> - I ran the sample code in apache-atlas homepage
> https://pypi.org/project/apache-atlas/
> - I set env variable PYTHONPATH=<atlas-git-dir>/intg/src/main/python
>
> Verdan Mahmood wrote:
> Doing so will raise such import issues as setting PYTHONPATH does not
> install the packages hence import errors.
> Can you please try to run this after installing it locally? i.e., python
> setup.py install?
The same error even after 'python setup.py install'.
# python /tmp/test.py
Traceback (most recent call last):
File "/tmp/test.py", line 3, in <module>
from apache_atlas.client.base_client import AtlasClient
File
"/usr/local/lib/python3.6/site-packages/apache_atlas-0.0.4-py3.6.egg/apache_atlas/client/base_client.py",
line 26, in <module>
from apache_atlas.client.discovery import DiscoveryClient
File
"/usr/local/lib/python3.6/site-packages/apache_atlas-0.0.4-py3.6.egg/apache_atlas/client/discovery.py",
line 18, in <module>
from apache_atlas.model.discovery import (AtlasQuickSearchResult,
AtlasSearchResult,
File
"/usr/local/lib/python3.6/site-packages/apache_atlas-0.0.4-py3.6.egg/apache_atlas/model/discovery.py",
line 21, in <module>
from apache_atlas.model.instance import AtlasEntityHeader
File
"/usr/local/lib/python3.6/site-packages/apache_atlas-0.0.4-py3.6.egg/apache_atlas/model/instance.py",
line 19, in <module>
from apache_atlas.model.glossary import AtlasTermAssignmentHeader
File
"/usr/local/lib/python3.6/site-packages/apache_atlas-0.0.4-py3.6.egg/apache_atlas/model/glossary.py",
line 19, in <module>
import apache_atlas.model.instance as instance
AttributeError: module 'apache_atlas.model' has no attribute 'instance'
- Madhan
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73139/#review222454
-----------------------------------------------------------
On Jan. 12, 2021, 9:54 p.m., Verdan Mahmood wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73139/
> -----------------------------------------------------------
>
> (Updated Jan. 12, 2021, 9:54 p.m.)
>
>
> Review request for atlas, Madhan Neethiraj, Pinal Shah, and Sarath
> Subramanian.
>
>
> Bugs: ATLAS-4086
> https://issues.apache.org/jira/browse/ATLAS-4086
>
>
> Repository: atlas
>
>
> Description
> -------
>
> Signed-off-by: verdan <[email protected]>
>
> This review request fixes a number of major issues in the python atlas client.
>
>
> Diffs
> -----
>
> intg/src/main/python/apache_atlas/client/admin.py
> ebe72dcc79b18b5955f5403889895bc7bfe4923b
> intg/src/main/python/apache_atlas/client/discovery.py
> 04f5fc9cf68edbd5973d48b402d764030a7068ca
> intg/src/main/python/apache_atlas/client/entity.py
> 7edacf9e72a3a5d3cc55008b39b60fb88dc5c607
> intg/src/main/python/apache_atlas/client/glossary.py
> efa0612fa0c78b850b7df76cc7e89d183ffb8e41
> intg/src/main/python/apache_atlas/client/relationship.py
> f5790a4c369b6f2a517b81425d8fa237ca2b7cdc
> intg/src/main/python/apache_atlas/client/typedef.py
> aa1581d86df26979f3a6c6bb798ea7b0f6ab3bd0
> intg/src/main/python/apache_atlas/model/glossary.py
> 7a0faac37f3c74cdd0eb49012b88c376323e4b3f
> intg/src/main/python/apache_atlas/model/instance.py
> 8cfb254c49328b495454158eec26bd1cc250b929
> intg/src/main/python/setup.py 7c563c9c0610eeba169b1c8bec73a246c2a95d4b
>
>
> Diff: https://reviews.apache.org/r/73139/diff/2/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Verdan Mahmood
>
>