Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#14543 closed defect (invalid)

py25-setuptools won't compile: "No module named time"

Reported by: mjs@… Owned by: stechert@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: python python25 Cc:
Port:

Description

There's a problem with the py25-setuptools package:

$ sudo port install py25-django-devel
--->  Building py25-setuptools with target build
Error: Target org.macports.build returned: shell command " cd "/Ports/var/macports/build/_Ports_var_macports_sources_rsync.macports.org_release_ports_python_py25-setuptools/work/setuptools-0.6c8" && /Ports/bin/python2.5 setup.py build " returned error 1
Command output: Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "setup.py", line 12, in <module>
    from setuptools import setup, find_packages
  File "/Ports/var/macports/build/_Ports_var_macports_sources_rsync.macports.org_release_ports_python_py25-setuptools/work/setuptools-0.6c8/setuptools/__init__.py", line 2, in <module>
    from setuptools.extension import Extension, Library
  File "/Ports/var/macports/build/_Ports_var_macports_sources_rsync.macports.org_release_ports_python_py25-setuptools/work/setuptools-0.6c8/setuptools/extension.py", line 2, in <module>
    from dist import _get_unpatched
  File "/Ports/var/macports/build/_Ports_var_macports_sources_rsync.macports.org_release_ports_python_py25-setuptools/work/setuptools-0.6c8/setuptools/dist.py", line 6, in <module>
    from setuptools.command.sdist import sdist
  File "/Ports/var/macports/build/_Ports_var_macports_sources_rsync.macports.org_release_ports_python_py25-setuptools/work/setuptools-0.6c8/setuptools/command/sdist.py", line 3, in <module>
    import os, re, sys, pkg_resources
  File "/Ports/var/macports/build/_Ports_var_macports_sources_rsync.macports.org_release_ports_python_py25-setuptools/work/setuptools-0.6c8/pkg_resources.py", line 16, in <module>
    import sys, os, zipimport, time, re, imp, new
ImportError: No module named time

Error: The following dependencies failed to build: py25-setuptools
Error: Status 1 encountered during processing.

Change History (3)

comment:1 Changed 17 years ago by jmroot (Joshua Root)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to stechert@…

Assigning to maintainer.

comment:2 Changed 17 years ago by stechert@…

Resolution: invalid
Status: newclosed

Hi,

If you cannot import time, your Python installation is horribly broken. The two lines of output that you included:

"Command output: Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]"

are big hints. In any case, this is not a bug with setup tools or django. Feel free to reach out to me separately for a little help with your installation, but I'm going to close this bug as invalid.

Cheers, Andre

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.