Opened 3 years ago

Closed 3 years ago

#64315 closed defect (fixed)

py27-poppler-qt5 @21.1.0: ImportError: No module named enum

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: dliessi (Davide Liessi)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: py-poppler-qt5 py-pyqt5

Description

https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/170346/steps/install-port/logs/stdio

Traceback (most recent call last):
  File "setup.py", line 386, in <module>
    **project
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/__init__.py", line 162, in setup
    return distutils.core.setup(**attrs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run
    self.run_command(cmd_name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 971, in run_command
    cmd_obj.ensure_finalized()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "setup.py", line 157, in finalize_options
    self.pyqt_sip_flags = self.__find_pyqt_sip_flags()
  File "setup.py", line 217, in __find_pyqt_sip_flags
    from PyQt5 import QtCore
ImportError: No module named enum

Change History (3)

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

Port: py-pyqt5 added

It looks like error is actually coming from PyQt5. The enum module was added to the stdlib in python 3.4.

comment:2 Changed 3 years ago by reneeotten (Renee Otten)

Yes, it's in the PyQt5 port. I did split that one off a while as py27-pyqt5 but forgot to update the -} elseif {${name} ne ${subport}} { statement, which now alwyays evaluated to false.

comment:3 Changed 3 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

In eedb2098214eb0e8166141cd32abce73b7efd13f/macports-ports (master):

py27-pyqt5: fix build

Closes: #64315

Note: See TracTickets for help on using tickets.