[MacPorts] #30277: Error building py27-libxml2 2.7.8_0
#30277: Error building py27-libxml2 2.7.8_0 ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ----------------------------------+----------------------------------------- Hi all, I'm trying to install py27-libxml2 but it doesn't work. Find attached the log. Thanks, Luca -- Ticket URL: <https://trac.macports.org/ticket/30277> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: py27-libxml2 2.7.8_0 build error ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: py27-libxml2 ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mcalhoun@… * keywords: => lion * port: => py27-libxml2 Old description:
Hi all,
I'm trying to install py27-libxml2 but it doesn't work.
Find attached the log.
Thanks, Luca
New description: Hi all, I'm trying to install py27-libxml2 but it doesn't work. Find attached the log. Thanks, [[br]] Luca -- Comment: Please fill in the Port field and Cc the port's maintainer. -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: py27-libxml2 2.7.8_0 build error ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: py27-libxml2 ----------------------------------+----------------------------------------- Comment(by jmr@…): Works fine for me. Did you maybe run restore_ports.tcl with a restrictive umask before it started setting its own? -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: py27-libxml2 2.7.8_0 build error ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: py27-libxml2 ----------------------------------+----------------------------------------- Comment(by lucaghera8@…): Replying to [comment:2 jmr@…]:
Works fine for me. Did you maybe run restore_ports.tcl with a restrictive umask before it started setting its own?
I don't think so...I don't know waht restore_ports.tcl is...I'm using porticus. -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: py27-libxml2 2.7.8_0 build error ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: py27-libxml2 ----------------------------------+----------------------------------------- Comment(by jmr@…): Are you able to run this in MacPorts python2.7? {{{ import xml.sax parser = xml.sax.make_parser() }}} -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: py27-libxml2 2.7.8_0 build error ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: py27-libxml2 ----------------------------------+----------------------------------------- Comment(by lucaghera8@…): Hi, thanks for your help. I tried to run what you said in my shell. This is the result: {{{ macbook-di-luca:Desktop luca$ python Python 2.7.2 (default, Jul 21 2011, 10:46:54) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import xml.sax parser = xml.sax.make_parser() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/__init__.py", line 93, in make_parser raise SAXReaderNotAvailable("No parsers found", None) xml.sax._exceptions.SAXReaderNotAvailable: No parsers found }}}
To be noticed that I didn't create a file with the commands. I directly entered them from the shell. I'm not sure this is what you mean in your previous message. Sorry but I'm not used to python, I've to setup it for a dependency. Thanks, Luca -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: py27-libxml2 2.7.8_0 build error ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: python27 ----------------------------------+----------------------------------------- Changes (by jmr@…): * owner: mcalhoun@… => jwa@… * cc: mcalhoun@… (added) * port: py27-libxml2 => python27 Comment: OK, so it's actually python's built-in XML module that is not working. -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: python27: xml.sax does not work, preventing build of py27-libxml2 ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: python27 ----------------------------------+----------------------------------------- -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: python27: xml.sax does not work, preventing build of py27-libxml2 ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: python27 ----------------------------------+----------------------------------------- Comment(by lucaghera8@…): I still cannot compile and install py27-libxml2. Any news? -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: python27: xml.sax does not work, preventing build of py27-libxml2 ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: python27 ----------------------------------+----------------------------------------- Comment(by marc.schlaich@…): I am quite sure you are doing something terrible wrong on Lion. Porticus is not supported anymore. Try using the CLI.
Porticus is not compatible with either Lion (Mac OS X 10.7) or MacPorts 2.0 [http://porticus.alittledrop.com/]
-- Ticket URL: <https://trac.macports.org/ticket/30277#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: python27: xml.sax does not work, preventing build of py27-libxml2 ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: python27 ----------------------------------+----------------------------------------- Comment(by lucaghera8@…): Hi Marc, why are you saying that I'm working with Porticus? It was, but actually I also tried to install py26-libxml2 from the command line with the same result. Luca Replying to [comment:9 marc.schlaich@…]:
I am quite sure you are doing something terrible wrong on Lion. Porticus is not supported anymore. Try using the CLI.
Porticus is not compatible with either Lion (Mac OS X 10.7) or MacPorts 2.0 [http://porticus.alittledrop.com/]
-- Ticket URL: <https://trac.macports.org/ticket/30277#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: python27: xml.sax does not work, preventing build of py27-libxml2 ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: python27 python26 ----------------------------------+----------------------------------------- Changes (by jmr@…): * port: python27 => python27 python26 Comment: Duplicate #30845 occurred with python26. -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: python27: xml.sax does not work, preventing build of py27-libxml2 ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: python27 python26 ----------------------------------+----------------------------------------- Comment(by lucaghera8@…): Replying to [comment:11 jmr@…]:
Duplicate #30845 occurred with python26.
Yes, is the same problem...and it's going to be really annoying because a lot of ports depend (indirectly) to py26-libxml2. -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: python27: xml.sax does not work, preventing build of py27-libxml2 ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: python27 python26 ----------------------------------+----------------------------------------- Comment(by lucaghera8@…): Replying to [comment:4 jmr@…]:
Are you able to run this in MacPorts python2.7? {{{ import xml.sax parser = xml.sax.make_parser() }}}
Hi, I have started with a new installation of macport but I have the same problem with both py{27,26}-libxml2. However now I'm able to execute the commands you suggested without errors: here is the execution: {{{ macbook-di-luca:rviz luca$ python2.7 Python 2.7.2 (default, Aug 18 2011, 09:26:34) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import xml.sax parser = xml.sax.make_parser() parser <xml.sax.expatreader.ExpatParser instance at 0x102445ab8> quit() }}}
{{{ macbook-di-luca:rviz luca$ python2.6 Python 2.6.7 (r267:88850, Aug 18 2011, 09:12:21) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import xml.sax parser = xml.sax.make_parser() parser <xml.sax.expatreader.ExpatParser instance at 0x106d97b90> quit() }}}
-- Ticket URL: <https://trac.macports.org/ticket/30277#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: python27: xml.sax does not work, preventing build of py27-libxml2 ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: python27 python26 ----------------------------------+----------------------------------------- Comment(by lucaghera8@…): I really don't know why but now I can compile both. The only thing I did is deactivating py26-setuptools and installing py26-distribute. And I copied the _socket.so file to the lib-dynload directories of python26 and 27 because they were missing. Can these actions be the solution?? Thanks, Luca -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: python27: xml.sax does not work, preventing build of py27-libxml2 ----------------------------------+----------------------------------------- Reporter: lucaghera8@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: python27 python26 ----------------------------------+----------------------------------------- Comment(by jmr@…): Replying to [comment:13 lucaghera8@…]:
I have started with a new installation of macport but I have the same problem with both py{27,26}-libxml2.
However now I'm able to execute the commands you suggested without errors:
Really? You can now use xml.sax manually but you still get an error saying "<class 'xml.sax._exceptions.SAXReaderNotAvailable'> No parsers found" when you install py*-libxml2? Attach the full log from a new installation attempt. -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30277: python27: xml.sax does not work, preventing build of py27-libxml2 -----------------------------------+---------------------------------------- Reporter: lucaghera8@… | Owner: jwa@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: worksforme | Keywords: lion Port: python27 python26 | -----------------------------------+---------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => worksforme Comment: No response; closing. -- Ticket URL: <https://trac.macports.org/ticket/30277#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts