Teichlab / cellphonedb

MIT License
340 stars 105 forks source link

Incompatible with Python 3.5 #224

Closed levlitichev closed 3 years ago

levlitichev commented 3 years ago

Hello,

I'm in the process of getting CellPhoneDb up and running. I attempted to use Python 3.5 with CellPhoneDb and received the following error message:

File "/Users/lev/miniconda2/envs/cellphonedb/lib/python3.5/site-packages/cellphonedb/src/core/database/sqlalchemy_repository/InteractionRepository.py", line 48
    multidata_expanded: pd.DataFrame = self.database_manager.get_repository('multidata').get_all_expanded(
                      ^
SyntaxError: invalid syntax

As the error message indicates, it looks like the syntax in this line of code wasn't supported prior to Python 3.6. The problem went away when I used Python 3.6.

Might be worth updating the README to say that CellPhoneDb requires Python 3.6 and up, not Python 3.5.

Best regards, Lev

prete commented 3 years ago

Python 3.6 marked as minimum requirement for CellPhoneDB after #264 (v2.1.6)