You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
am trying to build on Rocky Linux 9, Python 3.9.16 and getting the following error:
[root@localhost ]# python3 /var/lib/opensemanticsearch/manage.py entities
Importing Ontology or List Law codes (ID: 1)
/var/opensemanticsearch/media/ontologies/law_codes.rdf
Detected content type: application/rdf+xml
Detected encoding: utf-8
Traceback (most recent call last):
File "/var/lib/opensemanticsearch/manage.py", line 12, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/var/lib/opensemanticsearch/ontologies/management/commands/entities.py", line 9, in handle
ontologies.views.write_named_entities_config()
File "/var/lib/opensemanticsearch/ontologies/views.py", line 621, in write_named_entities_config
ontology_tagger.apply(target_facet=facet)
File "/usr/lib/python3.9/site-packages/solr_ontology_tagger.py", line 591, in apply
self.import_entity(s, target_facet=target_facet, queryfields=queryfields, lang=lang, narrower=narrower)
File "/usr/lib/python3.9/site-packages/solr_ontology_tagger.py", line 374, in import_entity
preferred_label = str(self.get_preferred_label(subject=s, lang=lang))
File "/usr/lib/python3.9/site-packages/solr_ontology_tagger.py", line 261, in get_preferred_label
preferred_label = self.preferredLabel(subject=subject, lang=lang, labelProperties=self.labelProperties)
AttributeError: 'OntologyTagger' object has no attribute 'preferredLabel'
[root@localhost ]#
how to resolve this?
The text was updated successfully, but these errors were encountered:
Hi
am trying to build on Rocky Linux 9, Python 3.9.16 and getting the following error:
[root@localhost ]# python3 /var/lib/opensemanticsearch/manage.py entities
Importing Ontology or List Law codes (ID: 1)
/var/opensemanticsearch/media/ontologies/law_codes.rdf
Detected content type: application/rdf+xml
Detected encoding: utf-8
Traceback (most recent call last):
File "/var/lib/opensemanticsearch/manage.py", line 12, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/var/lib/opensemanticsearch/ontologies/management/commands/entities.py", line 9, in handle
ontologies.views.write_named_entities_config()
File "/var/lib/opensemanticsearch/ontologies/views.py", line 621, in write_named_entities_config
ontology_tagger.apply(target_facet=facet)
File "/usr/lib/python3.9/site-packages/solr_ontology_tagger.py", line 591, in apply
self.import_entity(s, target_facet=target_facet, queryfields=queryfields, lang=lang, narrower=narrower)
File "/usr/lib/python3.9/site-packages/solr_ontology_tagger.py", line 374, in import_entity
preferred_label = str(self.get_preferred_label(subject=s, lang=lang))
File "/usr/lib/python3.9/site-packages/solr_ontology_tagger.py", line 261, in get_preferred_label
preferred_label = self.preferredLabel(subject=subject, lang=lang, labelProperties=self.labelProperties)
AttributeError: 'OntologyTagger' object has no attribute 'preferredLabel'
[root@localhost ]#
how to resolve this?
The text was updated successfully, but these errors were encountered: