Opened 9 years ago

Closed 9 years ago

#50287 closed defect (fixed)

qt5-qtwebengine @5.5.1: TypeError: argument of type 'NoneType' is not iterable

Reported by: jianguohsiang82@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: qt5-qtwebengine

Description (last modified by ryandesign (Ryan Carsten Schmidt))

See log file attached

Error: org.macports.build for port qt5-qtwebengine returned: command execution failed

Attachments (2)

main.log (111.0 KB) - added by jianguohsiang82@… 9 years ago.
main.2.log (221.1 KB) - added by jianguohsiang82@… 9 years ago.
new log, after cleaning

Download all attachments as: .zip

Change History (12)

Changed 9 years ago by jianguohsiang82@…

Attachment: main.log added

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mcalhoun@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to mcalhoun@…
Port: qt5-qtwebengine added
Summary: qt5-qtwebengine install failedqt5-qtwebengine @5.5.1: build failed

The log you attached is not from a clean build attempt. Please sudo port clean qt5-qtwebengine and try again, and attach the new log.

comment:2 in reply to:  1 Changed 9 years ago by jianguohsiang82@…

Replying to ryandesign@…:

The log you attached is not from a clean build attempt. Please sudo port clean qt5-qtwebengine and try again, and attach the new log.

See the new file attached.

Changed 9 years ago by jianguohsiang82@…

Attachment: main.2.log added

new log, after cleaning

comment:3 Changed 9 years ago by jianguohsiang82@…

ryandesign@…:

Has there been any update on this port? The new log file is attached, and it doesn't build.

comment:4 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: qt5-qtwebengine @5.5.1: build failedqt5-qtwebengine @5.5.1: TypeError: argument of type 'NoneType' is not iterable

I see it fails with "TypeError: argument of type 'NoneType' is not iterable" when running something with "python". What is "python" on your system? You can run "command -v python" to find out where it is and "python -V" to find out what version it is. I suspect you have selected a version of python that is either too new or too old for Qt 5. The qt5-qtwebengine port should be enhanced to use a specific known-good version of MacPorts Python and not rely on the user having selected a suitable one.

comment:5 Changed 9 years ago by jianguohsiang82@…

It is Python 2.7.11, located at /opt/local/bin/python.

comment:6 Changed 9 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Status: newassigned

In the file

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtwebengine/work/qtwebengine-opensource-src-5.5.1/src/3rdparty/chromium/tools/json_schema_compiler/../../ppapi/generators/idl_lexer.py

there is the code

try:
  from ply import lex
except:
  module_path, module_name = os.path.split(__file__)
  third_party = os.path.join(module_path, '..', '..', 'third_party')
  sys.path.append(third_party)
  from ply import lex

I did not have the port py27-ply installed, but you seem to.
Even after installing py27-ply, I was not able to reproduced the error.

There is a discrepancy, however, on the line numbers of the py27-ply file

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ply/lex.py

Is it possible that you are using an old version of py27-ply (r142769)?

Please look in

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ply/lex.py

The __version__ variable should say 3.8.
Is that the case?

comment:7 in reply to:  6 ; Changed 9 years ago by jianguohsiang82@…

Replying to mcalhoun@…:

In the file

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtwebengine/work/qtwebengine-opensource-src-5.5.1/src/3rdparty/chromium/tools/json_schema_compiler/../../ppapi/generators/idl_lexer.py

there is the code

try:
  from ply import lex
except:
  module_path, module_name = os.path.split(__file__)
  third_party = os.path.join(module_path, '..', '..', 'third_party')
  sys.path.append(third_party)
  from ply import lex

I did not have the port py27-ply installed, but you seem to.
Even after installing py27-ply, I was not able to reproduced the error.

There is a discrepancy, however, on the line numbers of the py27-ply file

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ply/lex.py

Is it possible that you are using an old version of py27-ply (r142769)?

Please look in

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ply/lex.py

The __version__ variable should say 3.8.
Is that the case?

I have version = '3.6'

I will uninstall and reinstall.

comment:8 in reply to:  7 Changed 9 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Replying to jianguohsiang82@…:

Replying to mcalhoun@…:

The __version__ variable should say 3.8.
Is that the case?

I have version = '3.6'

I will uninstall and reinstall.

Did upgrading py27-ply fix the problem?

comment:9 Changed 9 years ago by jianguohsiang82@…

Yes, uninstalling and reinstalling the port solved this problem. Please close. Thank you!

comment:10 Changed 9 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

r145315 should ensure this does not happen again.

Note: See TracTickets for help on using tickets.