Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support python3 #106

Closed
alex opened this issue Aug 7, 2013 · 13 comments
Closed

Support python3 #106

alex opened this issue Aug 7, 2013 · 13 comments

Comments

@alex
Copy link
Contributor

alex commented Aug 7, 2013

Trying to install tablib on python 3 fails:

Alexanders-MacBook-Pro:openstack-quantumclient alex_gaynor$ mktmpenv -p `which python3.3`
Running virtualenv with interpreter /usr/local/bin/python3.3
Using base prefix '/usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3'
New python executable in fa1de240e7969a2b/bin/python3.3
Also creating executable in fa1de240e7969a2b/bin/python
Installing Setuptools..............................................................................................................................................................................................................................done.
Installing Pip.....................................................................................................................................................................................................................................................................................................................................done.
Downloading/unpacking wheel
  Using download cache from /Users/alex_gaynor/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2F2.7%2Fw%2Fwheel%2Fwheel-0.21.0-py2.py3-none-any.whl
Installing collected packages: wheel
Successfully installed wheel
Cleaning up...
This is a temporary environment. It will be deleted when you run 'deactivate'.
(fa1de240e7969a2b)Alexanders-MacBook-Pro:fa1de240e7969a2b alex_gaynor$ pip install tablib
Downloading/unpacking tablib
  Using download cache from /Users/alex_gaynor/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Ft%2Ftablib%2Ftablib-0.9.11.tar.gz
  Running setup.py egg_info for package tablib
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/Users/alex_gaynor/.virtualenvs/fa1de240e7969a2b/build/tablib/setup.py", line 7, in <module>
        import tablib
      File "./tablib/__init__.py", line 3, in <module>
        from tablib.core import (
      File "./tablib/core.py", line 15, in <module>
        from tablib import formats
      File "./tablib/formats/__init__.py", line 6, in <module>
        from . import _csv as csv
      File "./tablib/formats/_csv.py", line 6, in <module>
        from tablib.compat import is_py3, csv, StringIO
      File "./tablib/compat.py", line 25, in <module>
        import tablib.packages.xlwt3 as xlwt
      File "./tablib/packages/xlwt3/__init__.py", line 5, in <module>
        from .Row import Row
      File "./tablib/packages/xlwt3/Row.py", line 7, in <module>
        from . import ExcelFormula
      File "./tablib/packages/xlwt3/ExcelFormula.py", line 6, in <module>
        class Formula(object):
    ValueError: '__init__' in __slots__ conflicts with class variable
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

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

  File "/Users/alex_gaynor/.virtualenvs/fa1de240e7969a2b/build/tablib/setup.py", line 7, in <module>

    import tablib

  File "./tablib/__init__.py", line 3, in <module>

    from tablib.core import (

  File "./tablib/core.py", line 15, in <module>

    from tablib import formats

  File "./tablib/formats/__init__.py", line 6, in <module>

    from . import _csv as csv

  File "./tablib/formats/_csv.py", line 6, in <module>

    from tablib.compat import is_py3, csv, StringIO

  File "./tablib/compat.py", line 25, in <module>

    import tablib.packages.xlwt3 as xlwt

  File "./tablib/packages/xlwt3/__init__.py", line 5, in <module>

    from .Row import Row

  File "./tablib/packages/xlwt3/Row.py", line 7, in <module>

    from . import ExcelFormula

  File "./tablib/packages/xlwt3/ExcelFormula.py", line 6, in <module>

    class Formula(object):

ValueError: '__init__' in __slots__ conflicts with class variable

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /Users/alex_gaynor/.virtualenvs/fa1de240e7969a2b/build/tablib
Storing complete log in /Users/alex_gaynor/.pip/pip.log
@ghost
Copy link

ghost commented Aug 23, 2013

+1

1 similar comment
@rustikus
Copy link

+1

@naught101
Copy link

Yep, that fixes it, but then I get another error:

  Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/tmp/pip-_h3wwi-build/setup.py", line 7, in <module>
        import tablib
      File "./tablib/__init__.py", line 3, in <module>
        from tablib.core import (
      File "./tablib/core.py", line 29, in <module>
        class Row(object):
    ValueError: 'tuple' in __slots__ conflicts with class variable
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

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

  File "/tmp/pip-_h3wwi-build/setup.py", line 7, in <module>

    import tablib

  File "./tablib/__init__.py", line 3, in <module>

    from tablib.core import (

  File "./tablib/core.py", line 29, in <module>

    class Row(object):

ValueError: 'tuple' in __slots__ conflicts with class variable

@nhoening
Copy link

+1

@kennethreitz
Copy link
Contributor

This project is in a bit of a crisis state — it's really useful, and I use regularly. However, I wrote it several years ago and haven't touched it since. In order to get the project into a stable state I'm closing all issues and pull requests to get a "fresh slate"

Don't take this as aggressive — it's just necessary for the project to make any progress any time soon (it's pretty clear the project is effectively unmaintained at the moment). Great things to come! Please watch the GitHub logs and feel free to re-open this discussion soon. I just need to really it into a good state first.

✨ ❤️ ✨

@hickford
Copy link

Thanks Kenneth for such a clear statement.

Everyone else, it would appear the library now works with Python 3.2 (but not Python 3.3) https://travis-ci.org/kennethreitz/tablib

@iurisilvio
Copy link
Collaborator

It works in Python 3.3 too. Travis is broken because the test expects json data with ordered keys, so only the test is broken and should be fixed.

@alex
Copy link
Contributor Author

alex commented Apr 23, 2014

It would be great to get a version of this released onto pypi.

On Wed, Apr 23, 2014 at 5:34 AM, Iuri de Silvio notifications@github.comwrote:

It works in Python 3.3 too. Travis is broken because the test expects json
data with ordered keys, so only the test is broken and should be fixed.


Reply to this email directly or view it on GitHubhttps://github.com/kennethreitz/tablib/issues/106#issuecomment-41155113
.

"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084

@hickford
Copy link

Hi Iuri. Yesterday I tried pip install tablib on Python 3.3 (Windows) and
it failed with a syntax error. Please could you push a Python 3 compatible
release to PyPI? Appears the last release was in 2011
https://pypi.python.org/pypi/tablib/

Thanks for your work

On 23 April 2014 13:34, Iuri de Silvio notifications@github.com wrote:

It works in Python 3.3 too. Travis is broken because the test expects json
data with ordered keys, so only the test is broken and should be fixed.


Reply to this email directly or view it on GitHubhttps://github.com/kennethreitz/tablib/issues/106#issuecomment-41155113
.

@iurisilvio
Copy link
Collaborator

I don't have access to do it, but I will poke kenneth to make it happen.

@iurisilvio iurisilvio added crisis and removed crisis labels Apr 23, 2014
@iurisilvio
Copy link
Collaborator

To those who do not followed the issue I created, tablib 0.10.0 was pushed to PyPI today.

@SalahAdDin
Copy link

i have the samen issue in python3.4 with tablib 0.10.0.
When i install tablib i have this issues with pip but this install tablib. So bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants