librelist archives

« back to archive

Newbie Issue

Newbie Issue

From:
Gianluca Brindisi
Date:
2010-10-10 @ 13:11
Hi all!
So I am toying with lamson.
I followed the instruction in how to deploy and now I am trying to deploy
OneShotBlog.
Everything went smooth until I started lamson log.

I get this error:

$ lamson log
Traceback (most recent call last):
  File "/home/gianluca/deploy/LAMSON/bin/lamson", line 5, in <module>
    pkg_resources.run_script('lamson==1.0', 'lamson')
  File 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
line 489, in run_script
  File 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
line 1207, in run_script
  File 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/EGG-INFO/scripts/lamson",
line 3, in <module>
    from lamson import args, commands
  File 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/commands.py",
line 28, in <module>
    from lamson import server, args, utils, mail, routing, queue, encoding
  File 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/utils.py",
line 12, in <module>
    from daemon import pidlockfile
  File 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg/daemon/pidlockfile.py",
line 33, in <module>
    class PIDLockFile(LinkFileLock, object):
TypeError: Error when calling the metaclass bases
    function() argument 1 must be code, not str

What is going wrong?
Any help will be highly appreciated!

Thanks,
Gianluca

Re: [lamson] Newbie Issue

From:
H.c. v. Stockhausen
Date:
2010-10-10 @ 13:19
Let me forward this message, Gianluca...
---
Hi Al,

I had the exact same problem when I installed Lamson for the first
time a couple of days ago.
There's already a ticket for the problem here
http://support.lamsonproject.org/tktview?name=06d488141d
that I updated ...

"""
...one has to use http://pypi.python.org/pypi/lockfile/0.8 as 0.9.1's
API changes break python_daemon-1.5.5-py2.5.egg/daemon/pidlockfile.py.
0.9.1 comes with easy_install. So, it's not a lamson issue really.
"""

So you have to remove lockfile 0.9.1 from your Python site-packages
and get 0.8 from the cheese shop instead.
That fixed it for me.

Greeting,
HC

On 10 October 2010 15:11, Gianluca Brindisi <g@brindi.si> wrote:
> Hi all!
> So I am toying with lamson.
> I followed the instruction in how to deploy and now I am trying to deploy
> OneShotBlog.
> Everything went smooth until I started lamson log.
> I get this error:
>
> $ lamson log
> Traceback (most recent call last):
>   File "/home/gianluca/deploy/LAMSON/bin/lamson", line 5, in <module>
>     pkg_resources.run_script('lamson==1.0', 'lamson')
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> line 489, in run_script
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> line 1207, in run_script
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/EGG-INFO/scripts/lamson",
> line 3, in <module>
>     from lamson import args, commands
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/commands.py",
> line 28, in <module>
>     from lamson import server, args, utils, mail, routing, queue, encoding
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/utils.py",
> line 12, in <module>
>     from daemon import pidlockfile
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg/daemon/pidlockfile.py",
> line 33, in <module>
>     class PIDLockFile(LinkFileLock, object):
> TypeError: Error when calling the metaclass bases
>     function() argument 1 must be code, not str
>
> What is going wrong?
> Any help will be highly appreciated!
> Thanks,
> Gianluca

Re: [lamson] Newbie Issue

From:
Gianluca Brindisi
Date:
2010-10-10 @ 22:28
Yep! It's working: thank you! :)

On Sun, Oct 10, 2010 at 3:19 PM, H.C. v. Stockhausen <hc@vst.io> wrote:

> Let me forward this message, Gianluca...
> ---
> Hi Al,
>
> I had the exact same problem when I installed Lamson for the first
> time a couple of days ago.
> There's already a ticket for the problem here
> http://support.lamsonproject.org/tktview?name=06d488141d
> that I updated ...
>
> """
> ...one has to use http://pypi.python.org/pypi/lockfile/0.8 as 0.9.1's
> API changes break python_daemon-1.5.5-py2.5.egg/daemon/pidlockfile.py.
> 0.9.1 comes with easy_install. So, it's not a lamson issue really.
> """
>
> So you have to remove lockfile 0.9.1 from your Python site-packages
> and get 0.8 from the cheese shop instead.
> That fixed it for me.
>
> Greeting,
> HC
>
> On 10 October 2010 15:11, Gianluca Brindisi <g@brindi.si> wrote:
> > Hi all!
> > So I am toying with lamson.
> > I followed the instruction in how to deploy and now I am trying to deploy
> > OneShotBlog.
> > Everything went smooth until I started lamson log.
> > I get this error:
> >
> > $ lamson log
> > Traceback (most recent call last):
> >   File "/home/gianluca/deploy/LAMSON/bin/lamson", line 5, in <module>
> >     pkg_resources.run_script('lamson==1.0', 'lamson')
> >   File
> >
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> > line 489, in run_script
> >   File
> >
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> > line 1207, in run_script
> >   File
> >
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/EGG-INFO/scripts/lamson",
> > line 3, in <module>
> >     from lamson import args, commands
> >   File
> >
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/commands.py",
> > line 28, in <module>
> >     from lamson import server, args, utils, mail, routing, queue,
> encoding
> >   File
> >
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/utils.py",
> > line 12, in <module>
> >     from daemon import pidlockfile
> >   File
> >
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg/daemon/pidlockfile.py",
> > line 33, in <module>
> >     class PIDLockFile(LinkFileLock, object):
> > TypeError: Error when calling the metaclass bases
> >     function() argument 1 must be code, not str
> >
> > What is going wrong?
> > Any help will be highly appreciated!
> > Thanks,
> > Gianluca
>

Re: [lamson] Newbie Issue

From:
H.c. v. Stockhausen
Date:
2010-10-10 @ 13:19
Let me forward this message, Gianluca...
---
Hi Al,

I had the exact same problem when I installed Lamson for the first
time a couple of days ago.
There's already a ticket for the problem here
http://support.lamsonproject.org/tktview?name=06d488141d
that I updated ...

"""
...one has to use http://pypi.python.org/pypi/lockfile/0.8 as 0.9.1's
API changes break python_daemon-1.5.5-py2.5.egg/daemon/pidlockfile.py.
0.9.1 comes with easy_install. So, it's not a lamson issue really.
"""

So you have to remove lockfile 0.9.1 from your Python site-packages
and get 0.8 from the cheese shop instead.
That fixed it for me.

Greeting,
HC

On 10 October 2010 15:11, Gianluca Brindisi <g@brindi.si> wrote:
> Hi all!
> So I am toying with lamson.
> I followed the instruction in how to deploy and now I am trying to deploy
> OneShotBlog.
> Everything went smooth until I started lamson log.
> I get this error:
>
> $ lamson log
> Traceback (most recent call last):
>   File "/home/gianluca/deploy/LAMSON/bin/lamson", line 5, in <module>
>     pkg_resources.run_script('lamson==1.0', 'lamson')
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> line 489, in run_script
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> line 1207, in run_script
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/EGG-INFO/scripts/lamson",
> line 3, in <module>
>     from lamson import args, commands
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/commands.py",
> line 28, in <module>
>     from lamson import server, args, utils, mail, routing, queue, encoding
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/utils.py",
> line 12, in <module>
>     from daemon import pidlockfile
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg/daemon/pidlockfile.py",
> line 33, in <module>
>     class PIDLockFile(LinkFileLock, object):
> TypeError: Error when calling the metaclass bases
>     function() argument 1 must be code, not str
>
> What is going wrong?
> Any help will be highly appreciated!
> Thanks,
> Gianluca

Re: [lamson] Newbie Issue

From:
H.c. v. Stockhausen
Date:
2010-10-10 @ 13:19
Let me forward this message, Gianluca...
---
Hi Al,

I had the exact same problem when I installed Lamson for the first
time a couple of days ago.
There's already a ticket for the problem here
http://support.lamsonproject.org/tktview?name=06d488141d
that I updated ...

"""
...one has to use http://pypi.python.org/pypi/lockfile/0.8 as 0.9.1's
API changes break python_daemon-1.5.5-py2.5.egg/daemon/pidlockfile.py.
0.9.1 comes with easy_install. So, it's not a lamson issue really.
"""

So you have to remove lockfile 0.9.1 from your Python site-packages
and get 0.8 from the cheese shop instead.
That fixed it for me.

Greeting,
HC

On 10 October 2010 15:11, Gianluca Brindisi <g@brindi.si> wrote:
> Hi all!
> So I am toying with lamson.
> I followed the instruction in how to deploy and now I am trying to deploy
> OneShotBlog.
> Everything went smooth until I started lamson log.
> I get this error:
>
> $ lamson log
> Traceback (most recent call last):
>   File "/home/gianluca/deploy/LAMSON/bin/lamson", line 5, in <module>
>     pkg_resources.run_script('lamson==1.0', 'lamson')
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> line 489, in run_script
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> line 1207, in run_script
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/EGG-INFO/scripts/lamson",
> line 3, in <module>
>     from lamson import args, commands
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/commands.py",
> line 28, in <module>
>     from lamson import server, args, utils, mail, routing, queue, encoding
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/utils.py",
> line 12, in <module>
>     from daemon import pidlockfile
>   File
> 
"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg/daemon/pidlockfile.py",
> line 33, in <module>
>     class PIDLockFile(LinkFileLock, object):
> TypeError: Error when calling the metaclass bases
>     function() argument 1 must be code, not str
>
> What is going wrong?
> Any help will be highly appreciated!
> Thanks,
> Gianluca