Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4027308
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:04:51+00:00 2026-05-20T11:04:51+00:00

A customer has got this error with my software using Python 2.5.5. How can

  • 0

A customer has got this error with my software using Python 2.5.5. How can it be? Does _empty has disappeared from the queue? I don’t understand this at all. I did not inherit from queue, there is just a normal instance of the Queue class. On my machine all seems to work fine, however, on the machine of the customer the error came up. Can anyone give me some advice what the problem could be?

The problem has happened here:

import Queue

self.requests.mutex.acquire()
allCount = self.requests._qsize()
while not self.requests._empty():
    try:
        (sock, addr, _) = self.requests._get()
        # ... do some things
self.requests.mutex.release()

Before, the queue was initialized with

self.requests = Queue(self.reqQLen)

And these queue methods are also used in the module: put_nowait, qsize, get. The queue is used in context of multi-threading. Could this be the cause?

I’m wondering: The error message tells me that the variable requests is recognized as a queue instance but the attribute _empty is not there. However, this is a normal method in the Queue class.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:04:51+00:00Added an answer on May 20, 2026 at 11:04 am

    I’m not very familiar with this (and I don’t know what version of Python you are using), but looking at the documentation I see no mention of an _empty attribute, but only an empty() method. Since the leading underscore is used to denote private attributes, it seems likely to me that its existence is not standardized but is implementation-dependent, and that using the empty() method instead would be the correct solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At a customer of ours, candidates take tests with our software. If their test
This is the scenario. You've got a web form and you want to prompt
Hello all i got a mail code like this body = Dear & cName
This may be a doozy, but does anyone have an idea how to: Pass
I have encountered a problem in my program that has me somewhat stumped. I
This is my Django Project structure: Project -app_ABC -json_data -filter_saved.txt -site_media -css -images -scripts
I've written and rolled out to a customer an app that uses NetTcpBinding for
I have a problem in a Windows Forms application with Bitmap.Save failing when I
I have a table Customers with a CustomerId field, and a table of Publications
Essentially I want to embed some XHTML in an XML document that must validate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.