Skip to content

Paths on Windows may be getting mangled #18

@kealist

Description

@kealist
  • skipchunk version: latest
  • Python version: 3.8
  • Operating System: Windows

Description

I started working through the solr example (I have it saved with the name skipchunker.py, but it is the solr example) on Windows but I'm getting some fun path issues. it looks like it's truncating the path name to skipchun and generally doesn't support windows paths.


FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\kealist\\code\\git\\scraped-data\\src\\.venv\\lib\\site-packages\\skipchun\\skipchunk/solr_home/configsets/skipchunk-graph-configset'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:/Users/kealist/code/git/scraped-data/src/skipchunker.py", line 64, in <module>
    gq.index(s)
  File "C:\Users\kealist\code\git\scraped-data\src\.venv\lib\site-packages\skipchunk\graphquery.py", line 99, in index
    ok1 = self.engine.index(predicatedocs,timeout=timeout)
  File "C:\Users\kealist\code\git\scraped-data\src\.venv\lib\site-packages\skipchunk\solr.py", line 182, in index
    isCore = self.indexCreate()
  File "C:\Users\kealist\code\git\scraped-data\src\.venv\lib\site-packages\skipchunk\solr.py", line 153, in indexCreate
    raise ValueError(message)
ValueError: DISK ERROR! Could not find the schema at C:\Users\kealist\code\git\scraped-data\src\.venv\lib\site-packages\skipchun\skipchunk/solr_home/configsets/skipchunk-graph-configset

An additional issue, lxml v 4.5.2 is not compatible with python 3.10 on windows--it will install on 3.8 though, so if it's possible to update that dependency, it would be awesome

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions