Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

AttributeError: type object 'oracle.pgx.common.types.IdStrategy' has no attribute 'PARTITIONED_IDS'

Pierre YottiSep 6 2021

Hallo,
When I execute the following command,

opg4py -b http://localhost:7007 -u demograph

I get the following error message

File "/opt/oracle/graph/bin/../pgx/python/pypgx/shell.py", line 121, in <module>
    import pypgx as pgx
  File "/usr/local/lib/python3.6/site-packages/pypgx/__init__.py", line 29, in <module>
    from .api._pgx import get_session  # noqa: E402
  File "/usr/local/lib/python3.6/site-packages/pypgx/api/__init__.py", line 7, in <module>
    from ._all_paths import AllPaths
  File "/usr/local/lib/python3.6/site-packages/pypgx/api/_all_paths.py", line 5, in <module>
    from pypgx.api._pgx_entity import PgxVertex
  File "/usr/local/lib/python3.6/site-packages/pypgx/api/_pgx_entity.py", line 5, in <module>
    from pypgx.utils.error_handling import java_handler
  File "/usr/local/lib/python3.6/site-packages/pypgx/utils/error_handling.py", line 10, in <module>
    from pypgx.utils.pgx_types import java_types
  File "/usr/local/lib/python3.6/site-packages/pypgx/utils/pgx_types.py", line 208, in <module>
    _set_up_types()
  File "/usr/local/lib/python3.6/site-packages/pypgx/utils/pgx_types.py", line 116, in _set_up_types
    id_strategies['partitioned_ids'] = id_strategy.PARTITIONED_IDS
AttributeError: type object 'oracle.pgx.common.types.IdStrategy' has no attribute 'PARTITIONED_IDS'
>>> 

Thanks you

Comments
Post Details
Added on Sep 6 2021
1 comment
279 views