Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#17668 closed defect (duplicate)

py25-cheetah Port fails to install

Reported by: hvrmeer@… Owned by: stechert@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: py25-cheetah

Description (last modified by mf2k (Frank Schima))

Traceback (most recent call last):
  File "setup.py", line 13, in <module>
    SetupTools.run_setup( configurations )
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-cheetah/work/Cheetah-2.0.1/SetupTools.py", line 140, in run_setup
    apply(setup, (), kws)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 125, in setup
    dist.parse_config_files()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 378, in parse_config_files
    filenames = self.find_config_files()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 339, in find_config_files
    check_environ()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/util.py", line 208, in check_environ
    os.environ['PLAT'] = get_platform()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/util.py", line 78, in get_platform
    cfgvars = get_config_vars()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/sysconfig.py", line 493, in get_config_vars
    func()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/sysconfig.py", line 375, in _init_posix
    elif map(int, cfg_target.split('.')) > map(int, cur_target.split('.')):
ValueError: invalid literal for int() with base 10: ''
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-cheetah/work/Cheetah-2.0.1" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: Traceback (most recent call last):
  File "setup.py", line 13, in <module>
    SetupTools.run_setup( configurations )
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-cheetah/work/Cheetah-2.0.1/SetupTools.py", line 140, in run_setup
    apply(setup, (), kws)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 125, in setup
    dist.parse_config_files()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 378, in parse_config_files
    filenames = self.find_config_files()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 339, in find_config_files
    check_environ()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/util.py", line 208, in check_environ
    os.environ['PLAT'] = get_platform()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/util.py", line 78, in get_platform
    cfgvars = get_config_vars()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/sysconfig.py", line 493, in get_config_vars
    func()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/sysconfig.py", line 375, in _init_posix
    elif map(int, cfg_target.split('.')) > map(int, cur_target.split('.')):
ValueError: invalid literal for int() with base 10: ''

Warning: the following items did not execute (for py25-cheetah): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to stechert@…

Assigning to maintainer.

comment:2 Changed 15 years ago by blb@…

This is the second of two tickets recently filed (first is #17667) with that error message

ValueError: invalid literal for int() with base 10: ''

I can't reproduce it here. What version of python25 do you have installed and do you have the python_select port installed with it set for python25?

port installed python25
ls -l /opt/local/bin/python

comment:3 Changed 15 years ago by hvrmeer@…

% port installed python25
The following ports are currently installed:
 python25 @2.5.2_7+darwin_9 (active)
% ls -l /opt/local/bin/py
pydoc2.4*           pygtk-codegen-2.0*  python-config2.5@   python2.5*          pythonw2.4*
pydoc2.5*           pygtk-demo*         python2.4*          python2.5-config*   pythonw2.5*
% ls -l /opt/local/bin/python2.5
-rwxr-xr-x  2 root  admin  12392 Dec  5 15:42 /opt/local/bin/python2.5

By the way: The same thing happened when I tried to install py-cheetah.

comment:4 in reply to:  3 Changed 15 years ago by hvrmeer@…

Replying to hvrmeer@…:

% port installed python25
The following ports are currently installed:
 python25 @2.5.2_7+darwin_9 (active)
% ls -l /opt/local/bin/py
pydoc2.4*           pygtk-codegen-2.0*  python-config2.5@   python2.5*          pythonw2.4*
pydoc2.5*           pygtk-demo*         python2.4*          python2.5-config*   pythonw2.5*
% ls -l /opt/local/bin/python2.5
-rwxr-xr-x  2 root  admin  12392 Dec  5 15:42 /opt/local/bin/python2.5

By the way: The same thing happened when I tried to install py-cheetah.

Sorry if I haven't been completely helpful, but I do have the python_select port installed:

% port installed python_select
The following ports are currently installed:
  python_select @0.1_4+darwin_9+universal (active)

comment:5 Changed 15 years ago by blb@…

Resolution: duplicate
Status: newclosed

Looking further, definitely seems like a dup of #17667.

comment:6 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.