×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jul 2005
    Location
    Espoo, Finland
    Posts
    66

    Problems with errno module

    Hi,

    I'm having problems with the errno module. When I try to import EWOULDBLOCK or ENOBUFS I get an ImportError...

    Code:
    from errno import EWOULDBLOCK, ENOBUFS
    ImportError: cannot import name EWOULDBLOCK
    According to the API errno module is included, but are those two error codes implemented?

    - Teemu

  2. #2
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209

    Re: Problems with errno module

    Quote Originally Posted by tsharju
    According to the API errno module is included, but are those two error codes implemented?
    The implementation is dependent on the platform native error codes i.e. it is only a thin wrapper. This should have been mentioned in the release notes, thanks for noticing this one.

    Here is an output from "test_errno.py" in my 6600:

    ----------------------
    E2BIG: 7
    EACCES: 13
    EADDRINUSE: 55
    EADDRNOTAVAIL: 51
    EADV: 68
    EAFNOSUPPORT: 52
    EAGAIN: 11
    EALREADY: not found
    EBADE: not found
    EBADF: 9
    EBADFD: 81
    EBADMSG: 77
    EBADR: not found
    EBADRQC: not found
    EBADSLT: not found
    EBFONT: not found
    EBUSY: 16
    ECHILD: 10
    ECHRNG: 37
    ECOMM: 70
    ECONNABORTED: not found
    ECONNREFUSED: 54
    ECONNRESET: not found
    EDEADLK: 45
    EDEADLOCK: not found
    EDESTADDRREQ: not found
    EDOM: 33
    EDQUOT: not found
    EEXIST: 17
    EFAULT: 14
    EFBIG: 27
    EHOSTDOWN: not found
    EHOSTUNREACH: not found
    EIDRM: 36
    EILSEQ: 92
    EINPROGRESS: not found
    EINTR: 4
    EINVAL: 22
    EIO: 5
    EISCONN: 53
    EISDIR: 21
    EL2HLT: 44
    EL2NSYNC: 38
    EL3HLT: 39
    EL3RST: 40
    ELIBACC: 83
    ELIBBAD: 84
    ELIBEXEC: 87
    ELIBMAX: 86
    ELIBSCN: 85
    ELNRNG: 41
    ELOOP: not found
    EMFILE: 24
    EMLINK: 31
    EMSGSIZE: not found
    EMULTIHOP: 74
    ENAMETOOLONG: 91
    ENETDOWN: not found
    ENETRESET: not found
    ENETUNREACH: not found
    ENFILE: 23
    ENOANO: not found
    ENOBUFS: not found
    ENOCSI: 43
    ENODATA: 61
    ENODEV: 19
    ENOENT: 2
    ENOEXEC: 8
    ENOLCK: 46
    ENOLINK: 67
    ENOMEM: 12
    ENOMSG: 35
    ENONET: 64
    ENOPKG: 65
    ENOPROTOOPT: not found
    ENOSPC: 28
    ENOSR: 63
    ENOSTR: 60
    ENOSYS: 88
    ENOTBLK: 15
    ENOTCONN: not found
    ENOTDIR: 20
    ENOTEMPTY: 90
    ENOTOBACCO: not found
    ENOTSOCK: 50
    ENOTTY: 25
    ENOTUNIQ: 80
    ENXIO: 6
    EOPNOTSUPP: not found
    EOVERFLOW: not found
    EPERM: 1
    EPFNOSUPPORT: not found
    EPIPE: 32
    EPROTO: 71
    EPROTONOSUPPORT: not found
    EPROTOTYPE: not found
    ERANGE: 34
    EREMCHG: 82
    EREMOTE: 66
    ERESTART: not found
    EROFS: 30
    ESHUTDOWN: not found
    ESOCKTNOSUPPORT: not found
    ESPIPE: 29
    ESRCH: 3
    ESRMNT: 69
    ESTALE: not found
    ESTRPIPE: not found
    ETIME: 62
    ETIMEDOUT: 56
    ETOOMANYREFS: not found
    ETXTBSY: 26
    EUNATCH: 42
    EUSERS: not found
    EWOULDBLOCK: not found
    EXDEV: 18
    EXFULL: not found
    ---------------

Similar Threads

  1. Redhat 9.0 and D211 problems
    By j.walch in forum Multimodecards
    Replies: 3
    Last Post: 2004-02-11, 07:57
  2. SMS I/O Control Application via Evaluation Module
    By alokghosh in forum Nokia M2M
    Replies: 2
    Last Post: 2003-06-18, 17:05
  3. GPS Module LAM-1
    By ZeZinh0 in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 09:44
  4. Replies: 1
    Last Post: 2002-12-16, 12:33
  5. Problems with M2M applic. dev. kit
    By kjellc in forum Nokia M2M
    Replies: 2
    Last Post: 2002-06-10, 18:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •