[Setup] plonectl start -> socket.error: [Errno 22] Invalid argument

Lee Samuel Finn lsfinn at gwastro.org
Mon Jun 17 16:05:52 UTC 2013


Ahhh . . . no joy. We're back to the socket.error:

appletree [125] Yeah? Plone/zinstance/bin/plonectl start
instance: . Traceback (most recent call last):
  File "/Users/lsf/Plone/zinstance/parts/instance/bin/interpreter", line 264, in <module>
    execfile(__file__)
  File "/Users/lsf/Plone/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdrun.py", line 745, in <module>
    main()
  File "/Users/lsf/Plone/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdrun.py", line 742, in main
    d.main(args)
  File "/Users/lsf/Plone/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdrun.py", line 241, in main
    self.run()
  File "/Users/lsf/Plone/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdrun.py", line 245, in run
    self.opensocket()
  File "/Users/lsf/Plone/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdrun.py", line 267, in opensocket
    sock.bind(tempname)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 22] Invalid argument
. . . . . . . . . . 
daemon manager not running
appletree [126] Yeah? 


The install did grab the macports v2.7.5 python

appletree [120] Yeah? install.sh standalone
install.sh: Command not found.
appletree [121] Yeah? ./install.sh standalone

Testing /opt/local/bin/python2.7 for Zope/Plone requirements....
/opt/local/bin/python2.7 looks OK. We'll try to use it.



On Jun 17, 2013, at 11:11 AM, Steve McMahon <steve at dcn.org> wrote:

> The attachment didn't make it through. It's possible the mailing list drops all attachments.
> 
> It looks like pyexpat wasn't built with Python. That would mean that the python install could not find the expat headers or libraries. Those are normally included with XCode, so I don't know why they wouldn't be found. Perhaps what was found was out-of-date, and the python build didn't use it. Expat is also available in MacPorts.
> 
> My memory is dim, but I'm pretty sure I remember that socket error. It may have been a problem with particular versions of Python on OS X. A later Python 2.7.x might cure it (which was why I suggested the manual Python build).
> 
> 
> 
> On Mon, Jun 17, 2013 at 7:46 AM, lsfinn <lsfinn at gwastro.org> wrote:
> Hi Steve, 
> 
> The install.log (attached to the previous note; contents copied below) shows that the failure was the absence of the pyexpat module: 
> 
> Detailed installation log
> Starting at Sun Jun 16 23:04:11 EDT 2013
> Traceback (most recent call last):
>   File "/Users/lsf/Plone/zinstance/bin/buildout", line 9, in <module>
>     import zc.buildout.buildout
>   File "/Users/lsf/Plone/buildout-cache/eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/buildout.py", line 31, in <module>
>     import pkg_resources
>   File "/Users/lsf/Plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 724, in <module>
>     class Environment(object):
>   File "/Users/lsf/Plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 727, in Environment
>     def __init__(self, search_path=None, platform=get_supported_platform(), python=PY_MAJOR):
>   File "/Users/lsf/Plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 109, in get_supported_platform
>     plat = 'macosx-%s-%s' % ('.'.join(_macosx_vers()[:2]), m.group(3))
>   File "/Users/lsf/Plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 221, in _macosx_vers
>     version = platform.mac_ver()[0]
>   File "/Users/lsf/Plone/Python-2.7/lib/python2.7/platform.py", line 804, in mac_ver
>     info = _mac_ver_xml()
>   File "/Users/lsf/Plone/Python-2.7/lib/python2.7/platform.py", line 781, in _mac_ver_xml
>     pl = plistlib.readPlist(fn)
>   File "/Users/lsf/Plone/Python-2.7/lib/python2.7/plistlib.py", line 78, in readPlist
>     rootObject = p.parse(pathOrFile)
>   File "/Users/lsf/Plone/Python-2.7/lib/python2.7/plistlib.py", line 401, in parse
>     from xml.parsers.expat import ParserCreate
>   File "/Users/lsf/Plone/Python-2.7/lib/python2.7/xml/parsers/expat.py", line 4, in <module>
>     from pyexpat import *
> ImportError: No module named pyexpat
>  
> Best, 
> 
> Sam
> 
> On Jun 17, 2013, at 10:18 AM, Steve McMahon [via Plone] <[hidden email]> wrote:
> 
>> Can you check the install.log (pointed to in the error message) and determine where it failed?
>> 
>> 
>> On Sun, Jun 16, 2013 at 8:10 PM, lsfinn <<a href="x-msg://263/user/SendEmail.jtp?type=node&node=7565951&i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
>> Dear Steve, 
>> 
>> Thanks much for your stepping-in to help. 
>> 
>> I tried with the --build-python flag; however, the install failed. Following are the status messages; attached is the install.log file. 
>> 
>> Best, 
>> 
>> Sam
>> 
>> 
>> appletree [113] Yeah? ./install.sh --build-python standalone
>> 
>> We already have a Python environment for this target; ignoring --build-python.
>> Rootless install method chosen. Will install for use by system user lsf
>> 
>> Detailed installation log being written to /Users/lsf/Desktop/Plone-4.3-UnifiedInstaller/install.log
>> Installing Plone 4.3 at /Users/lsf/Plone
>> 
>> Skipping libjpeg build
>> Unpacking buildout cache to /Users/lsf/Plone/buildout-cache
>> Copying Plone-docs
>> Copying buildout skeleton
>> Fixing up bin/buildout
>> Building Zope/Plone; this takes a while...
>> Buildout returned an error code: 1; Aborting.
>> Buildout failed. Unable to continue
>> 
>> Installation has failed.
>> See the detailed installation log at /Users/lsf/Desktop/Plone-4.3-UnifiedInstaller/install.log
>> to determine the cause.
>> 11.451u 10.034s 1:52.69 19.0%	0+0k 923+50740io 608pf+0w
>> 
>> 
>> 
>> On Jun 16, 2013, at 8:54 PM, Steve McMahon [via Plone] <[hidden email]> wrote:
>> 
>>> Sam,
>>> 
>>> Could you try reinstalling using the "--build-python" flag for ./install.sh. I'd like to see if it it's the OS X python that's troubled.
>>> 
>>> 
>>> On Sun, Jun 16, 2013 at 4:16 PM, lsfinn <<a href="<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=7565937&amp;i=0">x-msg://5/user/SendEmail.jtp?type=node&node=7565937&i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
>>> Hi,
>>> 
>>> I've the 4.3-UnifiedInstaller (rootless standalone) on OS X 10.4. Apache2 is
>>> running. I'm using the OS X python (v2.7.2). When I try to start plone using
>>> plonectl I get the following error message.
>>> 
>>> appletree [158] Yeah? bin/plonectl start
>>> instance: . . . Traceback (most recent call last):
>>>   File "/Users/lsf/Plone/zinstance/parts/instance/bin/interpreter", line
>>> 264, in <module>
>>>     execfile(__file__)
>>>   File
>>> "/Users/lsf/Plone/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdrun.py",
>>> line 745, in <module>
>>>     main()
>>>   File
>>> "/Users/lsf/Plone/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdrun.py",
>>> line 742, in main
>>>     d.main(args)
>>>   File
>>> "/Users/lsf/Plone/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdrun.py",
>>> line 241, in main
>>>     self.run()
>>>   File
>>> "/Users/lsf/Plone/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdrun.py",
>>> line 245, in run
>>>     self.opensocket()
>>>   File
>>> "/Users/lsf/Plone/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdrun.py",
>>> line 267, in opensocket
>>>     sock.bind(tempname)
>>>   File
>>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
>>> line 224, in meth
>>>     return getattr(self._sock,name)(*args)
>>> socket.error: [Errno 22] Invalid argument
>>> . . . . . . . .
>>> daemon manager not running
>>> 
>>> The same (i.e., identical) error messages arise when I try to start via
>>> instance.
>>> 
>>> I'd appreciate any help or suggestions on things to try. Thanks much,
>>> 
>>> Sam
>>> 
>>> 
>>> 
>>> 
>>> --
>>> View this message in context: http://plone.293351.n2.nabble.com/plonectl-start-socket-error-Errno-22-Invalid-argument-tp7565936.html
>>> Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Setup mailing list
>>> <a href="<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=7565937&amp;i=1">x-msg://5/user/SendEmail.jtp?type=node&node=7565937&i=1" target="_top" rel="nofollow" link="external">[hidden email]
>>> https://lists.plone.org/mailman/listinfo/plone-setup
>>> 
>>> 
>>> _______________________________________________ 
>>> Setup mailing list 
>>> <a href="<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=7565937&amp;i=2">x-msg://5/user/SendEmail.jtp?type=node&node=7565937&i=2" target="_top" rel="nofollow" link="external">[hidden email] 
>>> https://lists.plone.org/mailman/listinfo/plone-setup
>>> 
>>> 
>>> If you reply to this email, your message will be added to the discussion below:
>>> http://plone.293351.n2.nabble.com/plonectl-start-socket-error-Errno-22-Invalid-argument-tp7565936p7565937.html
>>> To unsubscribe from plonectl start -> socket.error: [Errno 22] Invalid argument, click here.
>>> NAML
>> 
>> 
>> --
>> Lee Samuel Finn
>> Professor, Dept Physics; 
>>   Dept Astronomy & Astrophysics
>> The Pennsylvania State University
>> 104 Davey Laboratory
>> University Park, PA 16802
>> 
>> 
>>  install.log (1K) Download Attachment
>> 
>> View this message in context: Re: plonectl start -> socket.error: [Errno 22] Invalid argument
>> 
>> Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> Setup mailing list
>> <a href="x-msg://263/user/SendEmail.jtp?type=node&node=7565951&i=1" target="_top" rel="nofollow" link="external">[hidden email]
>> https://lists.plone.org/mailman/listinfo/plone-setup
>> 
>> 
>> 
>> _______________________________________________ 
>> Setup mailing list 
>> <a href="x-msg://263/user/SendEmail.jtp?type=node&node=7565951&i=2" target="_top" rel="nofollow" link="external">[hidden email] 
>> https://lists.plone.org/mailman/listinfo/plone-setup
>> 
>> 
>> If you reply to this email, your message will be added to the discussion below:
>> http://plone.293351.n2.nabble.com/plonectl-start-socket-error-Errno-22-Invalid-argument-tp7565936p7565951.html
>> To unsubscribe from plonectl start -> socket.error: [Errno 22] Invalid argument, click here.
>> NAML
> 
> 
> --
> Lee Samuel Finn
> Professor, Dept Physics; 
>   Dept Astronomy & Astrophysics
> The Pennsylvania State University
> 104 Davey Laboratory
> University Park, PA 16802
> 
> 
> View this message in context: Re: plonectl start -> socket.error: [Errno 22] Invalid argument
> Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
> 
> _______________________________________________
> Setup mailing list
> Setup at lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-setup
> 
> 
> _______________________________________________
> Setup mailing list
> Setup at lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-setup

--
Lee Samuel Finn
Professor, Dept Physics; 
  Dept Astronomy & Astrophysics
The Pennsylvania State University
104 Davey Laboratory
University Park, PA 16802

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-setup/attachments/20130617/3f94b2e2/attachment-0001.html>


More information about the Setup mailing list