Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#62115 closed defect (duplicate)

python39 is missing _ctypes on PPC Leopard, Mac OS X 10.5.8

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: leopard Cc: jmroot (Joshua Root)
Port: python39

Description

SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES='0'
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_python_py-setuptools/py39-setuptools/work/setuptools-50.3.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 setup.py --no-user-cfg build -j1 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_python_py-setuptools/py39-setuptools/work/setuptools-50.3.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 setup.py --no-user-cfg build -j1 
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_python_py-setuptools/py39-setuptools/work/setuptools-50.3.1/setup.py", line 10, in <module>
    import setuptools
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_python_py-setuptools/py39-setuptools/work/setuptools-50.3.1/setuptools/__init__.py", line 18, in <module>
    from setuptools.dist import Distribution
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_python_py-setuptools/py39-setuptools/work/setuptools-50.3.1/setuptools/dist.py", line 32, in <module>
    from setuptools import windows_support
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_python_py-setuptools/py39-setuptools/work/setuptools-50.3.1/setuptools/windows_support.py", line 2, in <module>
    import ctypes
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 8, in <module>
    from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_python_py-setuptools/py39-setuptools/work/setuptools-50.3.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 setup.py --no-user-cfg build -j1 
Exit code: 1

I am no Python programmer – does this overview help?

pete 278 /\ pip3 list installed
Package            Version
------------------ ----------
anytree            2.8.0
Beaker             1.11.0
certifi            2020.12.5
click              7.1.2
cppy               1.1.0
cycler             0.10.0
Cython             0.29.21
dblatex            0.3.12rc1
docwriter          1.3
future             0.18.2
Jinja2             2.11.2
joblib             1.0.0
kiwisolver         1.3.1
libxml2-python     2.9.10
livereload         2.6.3
lunr               0.5.6
lxml               4.4.1
Mako               1.1.3
Markdown           3.3.3
MarkupSafe         1.1.1
meson              0.55.3
mistune            0.8.4
mkdocs             1.1
mkdocs-material    4.6.3
nose               1.3.7
numpy              1.19.4
olefile            0.46
parameterized      0.7.1
Pillow             8.0.1
pip                20.3.3
pycairo            1.20.0
Pygments           2.7.3
pymdown-extensions 8.0.1
pyparsing          2.4.7
python-dateutil    2.8.1
pytz               2020.4
PyYAML             5.3.1
regex              2020.11.13
setuptools         50.3.1
setuptools-scm     5.0.1
six                1.15.0
tkinter            0.0.0
toml               0.10.2
tornado            6.1
tqdm               4.54.1

or that one?

pete 279 /\ port -v installed | grep py38
  py38-anytree @2.8.0_0 (active) platform='darwin 9' archs='noarch' date='2020-02-28T14:45:07+0100'
  py38-beaker @1.11.0_0 (active) platform='darwin 9' archs='noarch' date='2020-02-28T01:24:34+0100'
  py38-cairo @1.20.0_0 (active) platform='darwin 9' archs='ppc' date='2020-12-05T18:35:41+0100'
  py38-certifi @2020.12.05_0 (active) platform='darwin 9' archs='noarch' date='2020-12-23T17:47:42+0100'
  py38-click @7.1.2_0 (active) platform='darwin 9' archs='noarch' date='2020-10-24T21:35:05+0200'
  py38-cppy @1.1.0_0 (active) platform='darwin 9' archs='noarch' date='2020-12-05T19:04:37+0100'
  py38-cycler @0.10.0_0 (active) platform='darwin 9' archs='ppc' date='2020-12-05T18:41:12+0100'
  py38-cython @0.29.21_0 (active) platform='darwin 9' archs='ppc' date='2020-07-18T15:43:56+0200'
  py38-dateutil @2.8.1_0 (active) platform='darwin 9' archs='noarch' date='2020-12-05T19:01:39+0100'
  py38-future @0.18.2_0 (active) platform='darwin 9' archs='noarch' date='2020-10-24T21:37:41+0200'
  py38-jinja2 @2.11.2_0 (active) platform='darwin 9' archs='noarch' date='2020-10-24T21:39:38+0200'
  py38-joblib @1.0.0_0 (active) platform='darwin 9' archs='noarch' date='2020-12-23T17:52:03+0100'
  py38-kiwisolver @1.3.1_0 (active) platform='darwin 9' archs='ppc' date='2020-12-06T02:22:00+0100'
  py38-libxml2 @2.9.10_0 (active) platform='darwin 9' archs='ppc' date='2020-02-28T16:47:32+0100'
  py38-lxml @4.4.1_0 (active) platform='darwin 9' archs='ppc' date='2020-10-17T23:08:52+0200'
  py38-mako @1.1.3_0 (active) platform='darwin 9' archs='noarch' date='2020-06-04T22:40:23+0200'
  py38-markdown @3.3.3_0 (active) platform='darwin 9' archs='noarch' date='2020-11-07T18:57:45+0100'
  py38-markupsafe @1.1.1_0 (active) platform='darwin 9' archs='ppc' date='2020-02-28T01:26:09+0100'
  py38-mistune @0.8.4_0 (active) platform='darwin 9' archs='ppc' date='2020-10-24T21:45:25+0200'
  py38-nose @1.3.7_1 (active) platform='darwin 9' archs='noarch' date='2020-12-05T20:07:01+0100'
  py38-numpy @1.19.4_0+gfortran+openblas (active) platform='darwin 9' archs='ppc' date='2020-12-06T00:07:27+0100'
  py38-olefile @0.46_0 (active) platform='darwin 9' archs='noarch' date='2020-12-05T17:51:05+0100'
  py38-parameterized @0.7.1_0 (active) platform='darwin 9' archs='noarch' date='2020-11-23T18:37:57+0100'
  py38-parsing @2.4.7_0 (active) platform='darwin 9' archs='noarch' date='2020-12-06T00:16:35+0100'
  py38-Pillow @8.0.1_0 (active) platform='darwin 9' archs='ppc' date='2020-12-05T18:27:03+0100'
  py38-pip @20.3.3_0 (active) platform='darwin 9' archs='noarch' date='2020-12-23T17:56:57+0100'
  py38-pygments @2.7.3_0 (active) platform='darwin 9' archs='noarch' date='2020-12-23T19:30:43+0100'
  py38-regex @2020.11.13_0 (active) platform='darwin 9' archs='ppc' date='2020-11-21T11:24:42+0100'
  py38-setuptools @50.3.1_0 (active) platform='darwin 9' archs='noarch' date='2020-10-17T12:20:15+0200'
  py38-setuptools_scm @5.0.1_0 (active) platform='darwin 9' archs='noarch' date='2020-12-23T19:33:46+0100'
  py38-six @1.15.0_0 (active) platform='darwin 9' archs='noarch' date='2020-05-25T16:39:39+0200'
  py38-tkinter @3.8.6_0 (active) platform='darwin 9' archs='ppc' date='2020-12-05T17:54:34+0100'
  py38-toml @0.10.2_0 (active) platform='darwin 9' archs='ppc' date='2020-12-04T22:28:04+0100'
  py38-tornado @6.1_0 (active) platform='darwin 9' archs='ppc' date='2020-11-07T19:10:13+0100'
  py38-tqdm @4.54.1_0 (active) platform='darwin 9' archs='noarch' date='2020-12-23T19:35:38+0100'
  py38-tz @2020.4_0 (active) platform='darwin 9' archs='noarch' date='2020-12-05T18:54:48+0100'
  py38-yaml @5.3.1_0 (active) platform='darwin 9' archs='ppc' date='2020-10-24T22:20:10+0200'

Is py38-ctypeslib2 missing?

Attachments (1)

main.log (10.1 KB) - added by ballapete (Peter "Pete" Dyballa) 3 years ago.
Main.log from PPC Leopard

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Leopard

comment:1 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

It's actually py39-setuptools! And these has also been installed useless python39 which no other package uses (port echo dependentof:python39 returns an empty set). I am going to delete this rubbish.

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Cc: jmroot added; jmr@… removed
Port: python39 added; py38-setuptools removed
Summary: py38-setuptools @50.3.1 does not build on PPC Leopard, Mac OS X 10.5.8, because of missing module named '_ctypes'?python39 is missing _ctypes on PPC Leopard, Mac OS X 10.5.8

Ctypes is a standard library module: https://docs.python.org/3/library/ctypes.html

Apparently it failed to build for some reason (python's build system will continue despite some modules failing to build).

comment:3 Changed 3 years ago by kencu (Ken)

Resolution: duplicate
Status: newclosed

comment:4 Changed 3 years ago by kencu (Ken)

Note: See TracTickets for help on using tickets.