o19s / skipchunk

Extracts a latent knowledge graph from text and index/query it in elasticsearch or solr
MIT License
18 stars 2 forks source link

Using venv fails to locate engine config files #16

Closed binarymax closed 3 years ago

binarymax commented 3 years ago

On some environments, the folder path is not merging correctly, and the following error is thrown when trying to index:

Traceback (most recent call last):
  File "/Users/daniel/dev/osc/skipchunk/venv/lib/python3.7/site-packages/skipchunk/elastic.py", line 133, in indexCreate
    shutil.copytree(graph_source,self.elastic_home)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shutil.py", line 318, in copytree
    names = os.listdir(src)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/daniel/dev/osc/skipchunk/venv/lib/python3.7/site-packages//elastic_home/configsets/skipchunk-graph-configset'

Note the double slash in //elastic_home