amschaal / bioshare

MIT License
7 stars 2 forks source link

Update to current Django Version #52

Open dr-waterstorm opened 5 years ago

dr-waterstorm commented 5 years ago

I was trying to install your software today, but i simply couldn't get it working.

First I tried installing as described in the readme, but I could not download the MySQL connector for Python, as it complained about some GCC issue. So I went for the newest GIT release of that connector (as stated as a common problem on stackoverflow).

However after this, I got another error from Django:

django.db.utils.ProgrammingError: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'"bioshareX_shareuserobjectpermission"(permission_id,content_object_id,user_id) S\' at line 1')

I know it's MariaDB and not MySQL but up to this point I never had any issues with any software running MariaDB instead of MySQL (as MySQL is not even available on my Linux Distribution anymore). Even the Django Docs state that it should work perfectly fine with MariaDB.

While searching the specific version of the Django Docs (1.9) it stated that I should not use Django 1.9 because of important security updates. Because of this message I tried Upgrading Django to the current 1.x Version (1.11 at this time). But this ended up in even more errors (import issues because of deprecation as well as issues of the django guardian plugin). After a lot of fiddling around I finally got the server running somehow, but the I could not connect to it because of some other error.

Sadly, in the end I gave up installing this software. It seems to be very difficult to get it running on a recent OS (in my case Manjaro / Archlinux).

Is there any plan to lift this application to the current releases of the used dependencies? Django 1.11 (or 2.x), Python3 and maybe MariaDB? If it's true that Django 1.9 has severe security flaws, this seems to be the reasonable thing to do. It would be really nice, because the idea of this application is very clever, sadly it's currently not usable on my computer.

Still, thank you and I hope you can continue development and update all the deps.

amschaal commented 5 years ago

The install documentation is about 3 years old at this point, and so probably pretty out of date. We've actually switched to PostgreSQL for the database. Also, the requirements.txt file is a bit out of date.

I plan on doing some more development on Bioshare in a couple months, at which point I will definitely work on updating the install documents.

Indeed, there are some dependency issues created by supporting libraries. This should be made a priority though, and I will work to resolve it as soon as I can find some time.