Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lamson on Windows (initially, a python-daemon issue) #28

Open
claytondaley opened this issue Oct 26, 2013 · 2 comments
Open

Lamson on Windows (initially, a python-daemon issue) #28

claytondaley opened this issue Oct 26, 2013 · 2 comments

Comments

@claytondaley
Copy link

I wanted to play with Lamson on a Windows 7 system. Unfortunately, python-daemon won't install. A similar issue (for another python app) and fix is documented here:

python-beaver/python-beaver#141

Perhaps an equivalent code change will work for Lamson.

@claytondaley
Copy link
Author

Unfortunately, daemon is more deeply integrated into lamson so the fix isn't as easy. However,

  • Once installed, Lamson will run in debug mode on Windows
  • To get Lamson to install, edit setup.py and replace (in install-requires) the package python-daemon with lockfile
  • Lamson commands weren't running from the command line for me so I had to manually execute c:/path/to/python/python.exe c:/path/to/python/scripts/lamson <commands>
    • If you want the ability to ctrl-c to close, you'll need to open multiple command prompts for ... lamson start --debug, ... lamson log --debug, and all of your ...lamson send... calls.
    • Alternatively, you can use pythonw.exe to run the start and log commands without a command prompt. As a result, you cannot ctrl-c to exit and will have to shut them down using the task manager. In theory, this is fine since the default project is setup to use Router.RELOAD = True which "tell[s] the Router to reload all the handlers for each request" so you shouldn't need to restart the server much.

After python setup.py install, I couldn't run Mutt either. However,

  • A Windows (native) version of Mutt can be downloaded from http://sourceforge.net/projects/mutt-win32.berlios/
  • This program will start with the `mutt -F muttrc' command and mail can be read.
  • HOWEVER, the program will not send emails.
    • First, mutt depends on vi. You can get around this issue by downloading winvi (http://www.winvi.de/en/download.html), renaming the EXE to vi.exe and adding it to the PATH variable. This lets you compose an email.
    • Second, the program generates a permission denied email when trying to access run/queue/.Sent so it won't actually send out mails.

@berdario
Copy link

FWIW, last year I tried to use Lamson on Windows:

berdario@b17da7f

I don't have any real interest in neither Lamson nor Windows (I've done it for a friend), if I remember correctly some simple commands would work with that patch, but I never bothered to open a proper PR. Still this might be of interest to someone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants