datalyze-solutions / pandas-qt

Utilities to use pandas (the data analysis / manipulation library for Python) with Qt.
https://github.com/draperjames/qtpandas
MIT License
56 stars 23 forks source link

Python 3 support #1

Open rominf opened 9 years ago

rominf commented 9 years ago
# sudo pip3 install pandas-qt
Downloading/unpacking pandas-qt
  Downloading pandas-qt-0.1.0.tar.gz
  Running setup.py (path:/tmp/pip_build_root/pandas-qt/setup.py) egg_info for package pandas-qt
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_root/pandas-qt/setup.py", line 13
        raise e, "install sip first (comming with PyQt4)"
               ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_root/pandas-qt/setup.py", line 13

    raise e, "install sip first (comming with PyQt4)"

           ^

SyntaxError: invalid syntax
datalyze-solutions commented 9 years ago

Thanks for reporting. I haven't I tested it with Python3 so far. As soon as I've time, I will fix it.

sem-geologist commented 8 years ago

It could be enough to rewrite offending parts as:

raise Exception("install sip first... or pyqt4...")

which works both on python 3.x and 2.7

dmopalmer commented 8 years ago

I am trying to get pandas-qt working with both Python3 and PySide. (It is checked in to my dmopalmer/pandas-qt Python3 branch)

The BasicExample works. The ThreadedExample gives QObject::setParent: Cannot set parent, new parent is in a different thread errors and doesn't show anything until all the threads are done. The TestExample runs into problems with magic files being the wrong version

lucas993 commented 8 years ago

:+1:

dmopalmer commented 8 years ago

As I said on issue #2

I just submitted a pull request #15 that supports all pythons (2.7 and 3.5), all interfaces (PySide, PyQt4, PyQt5).

It doesn't work perfectly. I am not a person who will make it work perfectly. It is an improvement.

zbarge commented 7 years ago

I've got a fork for this as well with some support for 3.5 - it will at least install...https://github.com/zbarge/QtPandas