Skip to content

Issue with the filestore path after install #360

@TomDonoghue

Description

@TomDonoghue

I'm having an issue during the install with having pycortex properly link to the filestore directory that it sets up. If I try and run the demo after install, I get a pathing error, because the filepath it checks, as listed in the config, is wrong. If I fix the path manually in the config, then it all works.

For example, using a conda environment:

  • my config file ends up in:
    • /Users/USER/Library/Application Support/pycortex/options.cfg
  • the listed filestore (after install) in the config is:
    • build/bdist.macosx-10.9-x86_64/wheel/pycortex-1.1.1.data/data/share/pycortex/db
    • This filepath is wrong, and fails when I try to run the demo
  • the actual path of the db is:
    • /DISK/opt/anaconda3/envs/ENV_NAME/share/pycortex/db
    • If I update the config to list this, it works

Notes:

  • I'm on macosx, version 10.14.3 (Mojave), with Python 3.7 and setuptools version 45.2.0
  • This issue arises whether I install using an environment in either conda or with venv (I thought it might be a pathing using due to conda, but that doesn't seem to be the case - the filestore gets the same wrong path (the weird 'build' one) when using venv.
  • This issue arises whether I install the stable version from pip, or the development version from Github

I would try and fix and submit this a patch for this error, but I'm not sure how to go about it. My best guess is that it's something to do with setuptools, and how it's setting this path in setup.py, but I'm not familiar enough with how this works to jump into knowing what's going wrong and how to fix it.

Metadata

Metadata

Assignees

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