Incompatibility With Python 3 #67

Closed
xpoft opened this Issue Apr 2, 2012 · 7 comments

Projects

None yet

6 participants

@xpoft
xpoft commented Apr 2, 2012

pyScss doesn't work at all in Python 3. I realize this probably isn't the biggest priority; still, is there any effort to begin porting it, even using 2to3?

@Kronuz
Owner
Kronuz commented Apr 2, 2012

There is indeed an effort, it was already working in Python 3...

@xpoft
xpoft commented Apr 3, 2012

No way...

D:\Python\TestEnv\Scripts>pip install pyScss
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Python32\Lib\threading.py", line 740, in _bootstrap_inner
self.run()
File "C:\Python32\Lib\threading.py", line 693, in run
self._target(_self._args, *_self._kwargs)
File "D:\Python\TestEnv\lib\site-packages\pip-1.1-py3.2.egg\pip\index.py", line 245, in _get_queued_page
page = self._get_page(location, req)
File "D:\Python\TestEnv\lib\site-packages\pip-1.1-py3.2.egg\pip\index.py", line 335, in _get_page
return HTMLPage.get_page(link, req, cache=self.cache)
File "D:\Python\TestEnv\lib\site-packages\pip-1.1-py3.2.egg\pip\index.py", line 464, in get_page
inst = cls(u(contents), real_url, headers)
File "D:\Python\TestEnv\lib\site-packages\pip-1.1-py3.2.egg\pip\backwardcompat.py", line 61, in u
return s.decode('utf-8')
UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid start byte

Downloading/unpacking pyScss
Real name of requirement pyScss is pyScss
Downloading pyScss-1.1.3.tar.gz (152Kb): 152Kb downloaded
Running setup.py egg_info for package pyScss
Traceback (most recent call last):
File "", line 14, in
File "D:\Python\TestEnv\build\pyScss\setup.py", line 9, in
from scss.scss_meta import PROJECT, URL, VERSION, AUTHOR, AUTHOR_EMAIL,LICENSE, DOWNLOAD_URL
File "scss__init__.py", line 5206
print BUILD_INFO
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 14, in

File "D:\Python\TestEnv\build\pyScss\setup.py", line 9, in

from scss.scss_meta import PROJECT, URL, VERSION, AUTHOR, AUTHOR_EMAIL, LICENSE, DOWNLOAD_URL

File "scss__init__.py", line 5206

print BUILD_INFO

               ^

SyntaxError: invalid syntax

@Kronuz
Owner
Kronuz commented Apr 3, 2012

It used to work... there must be just a few things to change to make it work again, I guess

@jleclanche

What's the status on this?

@avanov
avanov commented May 22, 2013

I wish to know as well

@isimmons

python 3.3 install failing.

C:\Users\lotus\projects\novati-mockup>pip install pyScss
Downloading/unpacking pyScss
  Running setup.py egg_info for package pyScss
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "c:\users\lotus\appdata\local\temp\pip-build-SYSTEM\pyScss\setup.py", line 9, in <module>
        from scss.scss_meta import PROJECT, URL, VERSION, AUTHOR, AUTHOR_EMAIL, LICENSE, DOWNLOAD_URL
      File ".\scss\__init__.py", line 5537
        except Exception, e:
                        ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

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

  File "c:\users\lotus\appdata\local\temp\pip-build-SYSTEM\pyScss\setup.py", line 9, in <module>

    from scss.scss_meta import PROJECT, URL, VERSION, AUTHOR, AUTHOR_EMAIL, LICENSE, DOWNLOAD_URL

  File ".\scss\__init__.py", line 5537

    except Exception, e:

                    ^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1 in c:\users\lotus\appdata\local\temp\pip-build-SYSTEM\pyScss
Storing complete log in C:\Users\lotus\pip\pip.log

Additional info from pip.log

Command python setup.py egg_info failed with error code 1 in c:\users\lotus\appdata\local\temp\pip-build-SYSTEM\pyScss

Exception information:
Traceback (most recent call last):
  File "C:\Python33\lib\site-packages\pip\basecommand.py", line 139, in main
    status = self.run(options, args)
  File "C:\Python33\lib\site-packages\pip\commands\install.py", line 266, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "C:\Python33\lib\site-packages\pip\req.py", line 1057, in prepare_files
    req_to_install.run_egg_info()
  File "C:\Python33\lib\site-packages\pip\req.py", line 236, in run_egg_info
    command_desc='python setup.py egg_info')
  File "C:\Python33\lib\site-packages\pip\util.py", line 662, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in c:\users\lotus\appdata\local\temp\pip-build-SYSTEM\pyScss
@Answeror Answeror added a commit to Answeror/pyScss that referenced this issue Jul 2, 2013
@Answeror Answeror fixed #67 daf5577
@eevee
Collaborator
eevee commented Aug 3, 2013

Trunk now works just as well on Python 2.7 and 3.3. (Should still work on 2.5, and maybe older 3s, but I don't have them on hand.) One codebase, using six, and I'll be alternating between versions for future development.

@eevee eevee closed this Aug 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment