Giter Club home page Giter Club logo

Comments (14)

dmnfarrell avatar dmnfarrell commented on June 4, 2024

setup.py has been changed to reflect this. unfortunately it seems you can no longer update metadata on pypi without making a new release.

from tkintertable.

pytesnim avatar pytesnim commented on June 4, 2024

Hello,
I am having the same problem, any solution to this? Is it not compatible with Python 3.6?

from tkintertable.

pytesnim avatar pytesnim commented on June 4, 2024

Thanks!

from tkintertable.

dmnfarrell avatar dmnfarrell commented on June 4, 2024

I'd have to do some rewriting to make it python 3 compatible. Normally I refer people to pandastable which is kept up to date and has many more features. If there's some reason you really want to use this one I can update it for python 3.

from tkintertable.

pytesnim avatar pytesnim commented on June 4, 2024

Thank you! I am going to try pandastable.

from tkintertable.

dmnfarrell avatar dmnfarrell commented on June 4, 2024

@pavlix This is now python 3 compatible. Will be released on pip soon.

from tkintertable.

Plancalkuele avatar Plancalkuele commented on June 4, 2024

When will it be released on pip? I'm still having this problem.

from tkintertable.

dmnfarrell avatar dmnfarrell commented on June 4, 2024

@Plancalkuele What problem. It was updated for python 3 since version 1.3

from tkintertable.

Plancalkuele avatar Plancalkuele commented on June 4, 2024

When I run the example code from https://github.com/dmnfarrell/tkintertable/wiki/Example-Code

I receive:
from tkintertable import TableCanvas, TableModel ImportError: cannot import name 'TableCanvas'

The example code from tkpandastable works. (https://github.com/dmnfarrell/pandastable/wiki/Code-Examples)

The requirements are satisfied after installing tkintertable:
Requirement already satisfied: tkintertable in ~/miniconda3/envs/../lib/python3.6/site-packages (1.3.1)

from tkintertable.

dmnfarrell avatar dmnfarrell commented on June 4, 2024

I am not sure I understand the reference to pandastable. pandastable is a completely separate package. If you prefer just use that instead.
This error implies that the package is not in your site-packages. If you are still getting this error maybe re-install?
I will push version 1.3.2 shortly which has some bug fixes for python 3, but if you see any others let me know.

from tkintertable.

Plancalkuele avatar Plancalkuele commented on June 4, 2024

I referenced pandastable because you referenced pandastable yourself in a previous message on this issue. I just tested the example for both packages but would rather like to use tkintertable first for a project I'm working on.

Anyway, I checked of course the site-packages folder and as stated before tkintertable has been installed by pip in the right folder. I just uninstalled and reinstalled tkintertable.
Same error:
ImportError: cannot import name 'TableCanvas'

Very confusing because I can see the class is there when taking a look in Tables.py

from tkintertable.

dmnfarrell avatar dmnfarrell commented on June 4, 2024

The import problem would happen if the site-packages folder is not in your PYTHONPATH. I am not that familiar with anaconda but it should just work.
Did you try opening a python interpreter in a console and importing the class to test?

from tkintertable.

Plancalkuele avatar Plancalkuele commented on June 4, 2024

Alright, problem fixed. Kind of embarrassing but I named the python script the same as the package. That's why it didn't find the class of course. Sorry for wasting your time. The package works fine with miniconda.

from tkintertable.

dmnfarrell avatar dmnfarrell commented on June 4, 2024

No problem, it's happened to me too.

from tkintertable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.