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.

In Python3.4, I run $ pip install unirest I get the following error: Downloading/unpacking unirest Downloading Unirest-1.1.6.tar.gz Running setup.py (path:C:\Users\David\AppData\Local\Temp\pip_build_David\unirest\setup.py) egg_info for package unirest

warning: no files found matching '*.txt' under directory 'docs'

Downloading/unpacking poster>=0.8.1 (from unirest) Downloading poster-0.8.1.tar.gz Running setup.py (path:C:\Users\David\AppData\Local\Temp\pip_build_David\poster\setup.py) egg_info for package poster Traceback (most recent call last): File “<string>”, line 17, in <module> File “C:\Users\David\AppData\Local\Temp\pip_build_David\poster\setup.py”, line 2, in <module> import poster File “C:\Users\David\AppData\Local\Temp\pip_build_David\poster\poster__init__.py”, line 29, in <module> import poster.streaminghttp File “C:\Users\David\AppData\Local\Temp\pip_build_David\poster\poster\streaminghttp.py”, line 61 print “send:”, repr(value) ^ SyntaxError: invalid syntax Complete output from command python setup.py egg_info: Traceback (most recent call last):

File “<string>”, line 17, in <module>

File “C:\Users\David\AppData\Local\Temp\pip_build_David\poster\setup.py”, line 2, in <module>

import poster

File “C:\Users\David\AppData\Local\Temp\pip_build_David\poster\poster__init__.py”, line 29, in <module>

import poster.streaminghttp

File “C:\Users\David\AppData\Local\Temp\pip_build_David\poster\poster\streaminghttp.py”, line 61

print "send:", repr(value)

            ^

SyntaxError: invalid syntax

PS: I’m running Windows 8.1, although this looks like a problem in python2 vs python3 syntax.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Reactions:3
  • Comments:12

github_iconTop GitHub Comments

5reactions
mikeyhewcommented, Oct 31, 2016

Still not working as of today:

$ pip3 install unirest
Collecting unirest
  Downloading Unirest-1.1.7.tar.gz
Collecting poster>=0.8.1 (from unirest)
  Downloading poster-0.8.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/lk/kgsvgr293l94fhdbnvk1mjx00000gn/T/pip-build-f9rc1vhp/poster/setup.py", line 2, in <module>
        import poster
      File "/private/var/folders/lk/kgsvgr293l94fhdbnvk1mjx00000gn/T/pip-build-f9rc1vhp/poster/poster/__init__.py", line 29, in <module>
        import poster.streaminghttp
      File "/private/var/folders/lk/kgsvgr293l94fhdbnvk1mjx00000gn/T/pip-build-f9rc1vhp/poster/poster/streaminghttp.py", line 61
        print "send:", repr(value)
                    ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1
1reaction
tirkarthicommented, Mar 26, 2018

Sorry to bump this. In case anyone needs it I have made a fork compatible with Python 3 at https://github.com/tirkarthi/unirest-python . You can use it as a git based dependency. It doesn’t work for gzip based files for now.

There is an incompatible dependency poster. You can find a Python 3 fork of the same at https://github.com/tirkarthi/python-poster.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Status of Python Versions - Python Developer's Guide
Supported Versions#. Dates shown in italic are scheduled and can be adjusted. Branch. Schedule. Status. First release. End of life. Release manager. main....
Read more >
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 >
Is there official guide for Python 3.x release lifecycle?
Is there an official guide on how long Python 3.x gets support, backports, etc.? I couldn't find any information about Python release ...
Read more >
Welcome! — Supporting Python 3: An in-depth guide
Supporting Python 3 doesn't have to be daunting. This book guides you through the process of adding Python 3 support, from choosing a...
Read more >
Python 3 Support - Ansible Documentation
Python 3 Support . Ansible 2.5 and above work with Python 3. Previous to 2.5, using Python 3 was considered a tech preview....
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