cortex-lab / Suite2P

Tools for processing 2P recordings
Other
120 stars 65 forks source link

Python executable pointing to python2 #168

Closed kvoit closed 5 years ago

kvoit commented 5 years ago

I have installed suite2p via pip on Ubuntu 18.04 and I am running into some trouble:

The code builds system calls by string concatenation in two places using python as the command:

gui.py:     self.process.start('python -u -W ignore -m suite2p --ops ops.npy --db db.npy')
run_s2p.py: os.system('python '+ ops['clean_script'] + ' ' + fpathops1)

According to PEP 394, python should point to python2, which it does on my Ubuntu system as clearly stated by Ubuntu. This leads to the effect that when I hit the "RUN SUITE2P" button, I get the error that the module suite2p was not found, because python2 was executed.

I could fix this by replacing python with python3 in above-mentioned positions.

Is this a bug, why do I seem to be the only one affected and what is the indented way to deal with this?

kvoit commented 5 years ago

Argh, sorry, wrong suite2p repo