Install from PyPI on Windows fails due to dependency on pwd

Bug #1276040 reported by Bruce Sutherland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-crontab
Fix Released
Critical
Martin Owens

Bug Description

pip install python-crontab

Fails with ImportError: No module named pwd

pwd is only available on Unix.

Revision history for this message
Bruce Sutherland (bruce-sutherland) wrote :

This seems to work (crontab.py):

import os, re, sys
if 'nt' != os.name:
    import pwd

Martin Owens (doctormo)
Changed in python-crontab:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Martin Owens (doctormo) wrote :

Thanks for the report Bruce. Got it fixed in release 1.7.1

Changed in python-crontab:
status: Confirmed → Fix Released
assignee: nobody → Martin Owens (doctormo)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.