Hi, when installing the last version of tract_querier as user, i.e. non root, I get the following error when issuing the tract_querier command or importing the module. Specifically, after python setup.py install --user, I get:
tract_querier -t test -a test -q freesurfer_queries.qry -o /tmp/test.txt
Traceback (most recent call last):
File "/home/ele/.local/bin/tract_querier", line 286, in
main()
File "/home/ele/.local/bin/tract_querier", line 62, in main
import tract_querier
File "/home/ele/.local/lib/python2.7/site-packages/tract_querier/init.py", line 34, in
default_queries_folder = find_queries_path()
File "/home/ele/.local/lib/python2.7/site-packages/tract_querier/init.py", line 29, in find_queries_path
raise Exception('Default path for queries not found')
Exception: Default path for queries not found
Notice that I get the same error when importing the tract_querier module:
python -m tract_querier
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
File "/usr/lib/python2.7/runpy.py", line 111, in _get_module_details
import(mod_name) # Do not catch exceptions initializing package
File "/home/ele/.local/lib/python2.7/site-packages/tract_querier/init.py", line 34, in
default_queries_folder = find_queries_path()
File "/home/ele/.local/lib/python2.7/site-packages/tract_querier/init.py", line 29, in find_queries_path
raise Exception('Default path for queries not found')
Exception: Default path for queries not found
The problem seems to boil down to find_queries_path(), in tract_querier/init.py , which attempts to find the queries only in some (but not all) directories that the sysconfig module can provide. I'm preparing a pull request to fix the issue.
Hi, when installing the last version of tract_querier as user, i.e. non root, I get the following error when issuing the tract_querier command or importing the module. Specifically, after
python setup.py install --user
, I get:Notice that I get the same error when importing the tract_querier module:
The problem seems to boil down to find_queries_path(), in tract_querier/init.py , which attempts to find the queries only in some (but not all) directories that the sysconfig module can provide. I'm preparing a pull request to fix the issue.