pyminifier icon indicating copy to clipboard operation
pyminifier copied to clipboard

Unable to install pyminifier in Unix system

Open abhishekbhatta opened this issue 10 years ago • 6 comments

I'm getting the following error which installing pyminifier in my Linux box.

[root@ToolsDB1 pyminifier-2.0]# python --version Python 2.6.6

[root@ToolsDB1 pyminifier-2.0]# ls -l total 72 drwxrwxr-x 3 1000 1000 4096 May 25 12:35 docs -rw-rw-r-- 1 1000 1000 35120 May 24 19:20 LICENSE -rw-rw-r-- 1 1000 1000 1131 May 25 12:35 PKG-INFO drwxrwxr-x 2 1000 1000 4096 Oct 20 15:12 pyminifier drwxrwxr-x 2 1000 1000 4096 May 25 12:35 pyminifier.egg-info -rw-rw-r-- 1 1000 1000 8792 May 25 12:31 README.rst -rw-rw-r-- 1 1000 1000 376 May 25 12:35 setup.cfg -rwxr-xr-x 1 1000 1000 2159 May 24 15:11 setup.py [root@ToolsDB1 pyminifier-2.0]# python setup.py Traceback (most recent call last): File "setup.py", line 11, in if sys.version_info.major == 2: AttributeError: 'tuple' object has no attribute 'major'

Could you please let me know the instillation steps?

abhishekbhatta avatar Oct 21 '14 21:10 abhishekbhatta

I wonder if you need a later version of Python? Under V2.7.6 sys.version_info.major returns 2 and pyminifier installs and runs OK.

peterhinch avatar Oct 22 '14 09:10 peterhinch

I've got the same problem with python 2.6.6 on CentOS 6.

luto avatar Feb 26 '15 19:02 luto

I guess this commit fixed it. Can you publish a version containing this to pypi? :) Thank you, @JohanRensink for the fix! :+1:

luto avatar Feb 26 '15 19:02 luto

Dang, got the same thing in analyze.py.

luto avatar Feb 26 '15 19:02 luto

+1, can you please push the latest version to pypi?

MoshiBin avatar Apr 02 '15 11:04 MoshiBin

Latest version still has issues with 2.6 - I've sent a PR to fix them.

MoshiBin avatar Apr 02 '15 15:04 MoshiBin