question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for python 3

See original GitHub issue

I can only run grow using python 2 which I don’t want as I want unicode support in URI. For python 3 I keep getting when I run pip install grow

Collecting translitcodec==0.3 (from grow)
  Using cached translitcodec-0.3.tar.gz
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/translitcodec.egg-info
    writing top-level names to pip-egg-info/translitcodec.egg-info/top_level.txt
    writing pip-egg-info/translitcodec.egg-info/PKG-INFO
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-1f5sae3p/translitcodec/setup.py", line 33, in <module>
        'Topic :: Utilities',
      File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "<string>", line 14, in replacement_run
      File "/usr/lib/python3.5/site-packages/setuptools/command/egg_info.py", line 388, in write_pkg_info
        metadata.write_pkg_info(cmd.egg_info)
      File "/usr/lib/python3.5/distutils/dist.py", line 1107, in write_pkg_info
        self.write_pkg_file(pkg_info)
      File "/usr/lib/python3.5/distutils/dist.py", line 1128, in write_pkg_file
        long_desc = rfc822_escape(self.get_long_description())
      File "/usr/lib/python3.5/distutils/util.py", line 471, in rfc822_escape
        lines = header.split('\n')
    TypeError: a bytes-like object is required, not 'str'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1f5sae3p/translitcodec

Doesn’t grow support python 3 ?

I’m running Arch Linux 64bit, Python 3.5.0 .

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:4
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
riccardomurricommented, Apr 13, 2018

I think it should be mentioned in the installation instructions on the website that Grow is not compatible with Python 3 – that’s pretty much the expectation for non-legacy tools these days.

4reactions
maturanomxcommented, Jul 21, 2016

I just tried to test grow. At the end of the output after execute pip install grow:

Running setup.py install for grow ... done
Successfully installed Babel-2.2.0 GitPython-1.0.1 GoogleAppEngineCloudStorageClient-1.9.5.0 Markdown-2.4 MarkupSafe-0.19 SocksiPy-branch-1.1 Twisted-16.0.0 WebOb-1.3.1 Werkzeug-0.9.4 argh-0.26.2 beautifulsoup4-4.4.0 boto-2.40.0 certifi-1.0.0 click-4.0 contentful.py-0.9.3 dulwich-0.13.0 ecdsa-0.13 enum34-1.1.1 futures-3.0.5 gcs-oauth2-boto-plugin-grow-1.14 gitdb-0.6.4 google-api-python-client-1.3.1 goslate-1.4.0 grow-0.0.65 html2text-2015.6.21 httplib2-0.9.1 keyring-8.7 libsass-0.11.1 oauth2client-2.1.0 paramiko-1.15.1 pathtools-0.1.2 progressbar2-2.6.2 protorpc-0.11.1 pyasn1-0.1.8 pycrypto-2.6.1 pygments-2.0.2 python-dateutil-2.3 pytz-2014.4 requests-2.3.0 retry-decorator-1.0.0 rsa-3.4.2 semantic-version-2.4.1 simplejson-3.8.2 smmap-0.9.0 texttable-fixed-0.8.3 translitcodec-0.4.0 uritemplate-0.6 watchdog-0.7.1 webreview-0.0.62 xtermcolor-1.3 zope.interface-4.2.0

but when I tried to execute it:

$ grow
Traceback (most recent call last):
  File "/usr/bin/grow", line 34, in <module>
    from grow.common import ca_certs_locater
  File "/usr/lib/python3.5/site-packages/grow/__init__.py", line 12, in <module>
    from .pods.pods import Pod
  File "/usr/lib/python3.5/site-packages/grow/pods/pods.py", line 3, in <module>
    from . import catalog_holder
  File "/usr/lib/python3.5/site-packages/grow/pods/catalog_holder.py", line 2, in <module>
    from . import importers
  File "/usr/lib/python3.5/site-packages/grow/pods/importers.py", line 3, in <module>
    import cStringIO
ImportError: No module named 'cStringIO'

In a quick search I found this could be related with the Python3 support. Is that correct?


ArchLinux 64bit, Python 3.5.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python - endoflife.date
Release Released Security Support 3.11 1 month and 4 weeks ago. (24 Oct 2022) Ends in 4 years and 10 months. (24 Oct 2... 3.10...
Read more >
Python 3.0 Release
Python 3.0 (a.k.a. "Python 3000" or "Py3k") is a new version of the language that is incompatible with the 2.x line of releases....
Read more >
Status of Python Versions - Python Developer's Guide
Status of Python Versions#. The main branch is currently the future Python 3.12, and is the only branch that accepts new features. The...
Read more >
Help | Python.org
Got a Python problem or question? First check the Python FAQs, with answers to many common, general Python questions. The Users category of...
Read more >
Porting Python 2 Code to Python 3 — Python 3.11.1 ...
A key point about supporting Python 2 & 3 simultaneously is that you can start today! Even if your dependencies are not supporting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found