nealpsmith / neals_python_functions

Random useful python functions
MIT License
0 stars 1 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'cb_tnk/browser/css' #2

Open RachellyN opened 3 years ago

RachellyN commented 3 years ago

issue 1: I get this error when running np.analysis.cellbrowser.make_kamil_browser (full log is attached as a text files below). It seem to fail in _swapfiles because the hierarchy that is created is with one redundant layer of browser_filepath (se heirarchy created in the attached png. I currently fix it by manually moving Browser one step higher in the hierarchy.

issue 2: After fixing the above, I still get an error saying: _swap_files("browser") Traceback (most recent call last): File "", line 1, in File "", line 8, in _swap_files File "/home/rnormand/.conda/envs/CellBrowser/lib/python3.7/shutil.py", line 318, in copytree names = os.listdir(src) FileNotFoundError: [Errno 2] No such file or directory: 'db/cell_browser/css'

Note the db and css are not always created by cbBuild, and the browser still works. So it's safer to add an "if exists" kind of statement before trying to handle with these dirs.

Capture

log.txt