qtpandas icon indicating copy to clipboard operation
qtpandas copied to clipboard

Make Python2 friendly

Open draperjames opened this issue 8 years ago • 8 comments

Right now qtpandas is capable of installing in a py27 env but it breaks when run. python-future is a great resource on making code Py2/3 compatible.

  • [ ] any file with a print statement needs the following line in imports
from __future__ import print_function

draperjames avatar Dec 18 '16 19:12 draperjames

Actually this is going to be much more complicated than I originally thought. I've tried running pastuerize on the whole qtpandas directory and I can even run TestApp.py. I think the biggest issue is reliably converting bytes to strings which python-future doesn't cover.

draperjames avatar Dec 19 '16 15:12 draperjames

Adding a side note, in examples/util.py there are some calls to os.getcwdu left, which should be replaced with os.getcwd if one wants to run the examples on python3. [Sorry for the possible off-topic]

carmelom avatar Feb 11 '17 00:02 carmelom

Thanks @carmelom! It's not off topic at all. would you mind creating a pull request for that?

draperjames avatar Feb 13 '17 14:02 draperjames

This would be very useful if I could use it with Python 2.7. Is there any hopes of progress on this? I am focused on Py 2.7 and Qt4.

cudmore avatar Jul 08 '17 20:07 cudmore

Hi @cudmore I was attempting to do that awhile ago but things got busy for me and I haven't had any time to work on it. Honestly I haven't thought about this project in months since I decided to pivot away from using PyQt. If you need to get this done in a hurry you could try using the projected that we forked from pandasqt. You might still be able to install it through PyPI;

pip install pandasqt

draperjames avatar Jul 09 '17 02:07 draperjames

Thanks for the response and I understand shifting focus. If you are moving away from PyQt, what are you moving towards? I just dove head-first into PyQt this week. Started with TkInter but it was limited, PyQt seems to do everything so far?

bob


Postdoctoral Fellow, Linden Lab Department of Neuroscience The Johns Hopkins University Baltimore, USA http://robertcudmore.org

On Sat, Jul 8, 2017 at 10:41 PM, James Draper [email protected] wrote:

Hi @cudmore https://github.com/cudmore I was attempting to do that awhile ago but things got busy for me and I haven't had any time to work on it. Honestly I haven't thought about this project in months since I decided to pivot away from using PyQt. If you need to get this done in a hurry you could try using the projected that we forked from pandasqt. You might still be able to install it through PyPI;

pip install pandasqt

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/draperjames/qtpandas/issues/32#issuecomment-313893839, or mute the thread https://github.com/notifications/unsubscribe-auth/AA9mENowripyxdLFiQZ1ufe_-A8rrMdqks5sMD30gaJpZM4LQNby .

cudmore avatar Jul 09 '17 02:07 cudmore

I've gone toward a browser based approach running everything out of jupyter notebook using a mixture of pandas, bokeh, and a ipywidgets, and dominate it works for me right now. However I'm in the process of trying to implement all that on the electron framework.

draperjames avatar Jul 09 '17 03:07 draperjames

As Python 2 is no longer supported, I suggest closing the issue.

e3rd avatar Oct 21 '21 16:10 e3rd