Opened 13 years ago
Closed 12 years ago
#33990 closed defect (worksforme)
python27: destroot fails with SyntaxError
Reported by: | TheTanster (Kok-Yong Tan) | Owned by: | jyrkiwahlstedt |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | ||
Port: | python27 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
I first did a
sudo port -v selfupdate
which finished successfully. I followed with
sudo port -v upgrade outdated
which stalled on the Python 2.7 module. I then used
sudo port -vp upgrade outdated
to upgrade the other modules around the error (which seemed to finish successfully). Upon coming back to try
sudo port -v upgrade outdate
thinking that having built other modules around it might resolve the issue but it again stalled on the Python 2.7 module at the same spot. I attach the log file.
Attachments (1)
Change History (4)
Changed 13 years ago by TheTanster (Kok-Yong Tan)
Attachment: | MacPortsPython27BuildLog.log.gz added |
---|
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | python_27 build_failure removed |
Owner: | changed from macports-tickets@… to jwa@… |
Port: | python27 added; Python 2.7 removed |
Summary: | "sudo port -v upgrade outdated" stalls on Python 2.7 module → python27: destroot fails with SyntaxError |
The error in the log is:
:info:destroot SyntaxError: ('invalid syntax', ('/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/pickletester.py', 646, 21, ' self.loa$s(badpickle)\n'))
However I wouldn't put too much faith in that error yet, since this was not a clean build attempt. Please "sudo port clean python27", try again, then attach the new main.log.
comment:2 Changed 13 years ago by TheTanster (Kok-Yong Tan)
Okay. I tried
sudo port clean python27
and it blew up but this time with what looked like a conflict with python26 (it tried to install a file that python26 or one of its modules was sitting on). Looking at my build tree, I see that I had python26 also present, which I don't think I need. So I removed all python26 and py26 ports with
sudo port -v uninstall --follow-dependents python26
and then did a
sudo port -vf install wireshark +gnutls +ipv6 +python27 +libgcrypt +libsmi
which took a little while to complete but seems to have succeeded in getting python27 to also rebuild and activate along with wireshark.
Now I have what I think is an xauth problem trying to start up wireshark:
bash-3.2$ sudo wireshark Password: (wireshark:45627): Gtk-WARNING **: cannot open display: :0 bash-3.2$ wireshark (wireshark:45631): Gtk-WARNING **: cannot open display: :0 bash-3.2$
which I'm trying to research (unless somebody knows the fix for it off the top of their heads...)
comment:3 Changed 12 years ago by jmroot (Joshua Root)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Build log for Python 2.7 package