djordon / queueing-tool

Simulator for queueing networks written in Python
http://queueing-tool.readthedocs.org/
MIT License
66 stars 10 forks source link

Failed to build queueing-tool #95

Closed AbdellahiMrabet closed 1 year ago

AbdellahiMrabet commented 1 year ago

Building wheel for queueing-tool (pyproject.toml) ... error windows 10 python version 3.10.11

djordon commented 1 year ago

Is there anything else that was in the output when it errored?

AbdellahiMrabet commented 1 year ago

No, I can send the. Whole screen later

في الخميس، 6 جويلية 2023, 22:16 Daniel Jordon @.***> كتب:

Is there anything else that was in the output when it errored?

— Reply to this email directly, view it on GitHub https://github.com/djordon/queueing-tool/issues/95#issuecomment-1624320888, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPGJ7AMXJGSQWS62GMGUXDXO4TLZANCNFSM6AAAAAA2AMCWJE . You are receiving this because you authored the thread.Message ID: @.***>

saman-lagzi commented 1 year ago

I get a similar issue:

Building wheels for collected packages: queueing-tool Building wheel for queueing-tool (pyproject.toml): started Building wheel for queueing-tool (pyproject.toml): finished with status 'error' Failed to build queueing-tool

Any idea how I can get around this?

djordon commented 1 year ago

Can you share more information about your setup? What version of python are you using? A minimal pyproject.toml would be fantastic.

saman-lagzi commented 1 year ago

My Python version is 3.8 and pip 21.3.1.

Here is part of my error:

Python recognizes 'queueing_tool.network' as an importable package[^1], but it is absent from setuptools' packages configuration.

      This leads to an ambiguous overall configuration. If you want to distribute this
      package, please make sure that 'queueing_tool.network' is explicitly added
      to the `packages` configuration field.

      Alternatively, you can also rely on setuptools' discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).
AbdellahiMrabet commented 1 year ago

For me it's now ok It was a problem of vs 14. I install vs 14 and queueing-tool it works now on m'y pc. Thanks to all

في الخميس، 20 جويلية 2023, 22:35 saman-lagzi @.***> كتب:

My Python version is 3.8 and pip 21.3.1.

Here is part of my error:

Python recognizes 'queueing_tool.network' as an importable package[^1], but it is absent from setuptools' packages configuration.

  This leads to an ambiguous overall configuration. If you want to distribute this
  package, please make sure that 'queueing_tool.network' is explicitly added
  to the `packages` configuration field.

  Alternatively, you can also rely on setuptools' discovery methods
  (for example by using `find_namespace_packages(...)`/`find_namespace:`
  instead of `find_packages(...)`/`find:`).

— Reply to this email directly, view it on GitHub https://github.com/djordon/queueing-tool/issues/95#issuecomment-1644637172, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPGJ7FX3YB7W2X3SSUS7RLXRGQAZANCNFSM6AAAAAA2AMCWJE . You are receiving this because you authored the thread.Message ID: @.***>

saman-lagzi commented 1 year ago

For me it's now ok It was a problem of vs 14. I install vs 14 and queueing-tool it works now on m'y pc. Thanks to all في الخميس، 20 جويلية 2023, 22:35 saman-lagzi @.> كتب: My Python version is 3.8 and pip 21.3.1. Here is part of my error: Python recognizes 'queueing_tool.network' as an importable package[^1], but it is absent from setuptools' packages configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'queueing_tool.network' is explicitly added to the packages configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using find_namespace_packages(...)/find_namespace: instead of find_packages(...)/find:). — Reply to this email directly, view it on GitHub <#95 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPGJ7FX3YB7W2X3SSUS7RLXRGQAZANCNFSM6AAAAAA2AMCWJE . You are receiving this because you authored the thread.Message ID: @.>

Could you please elaborate on which version you installed? These are the only versions of queuing tool available to me: (from versions: 1.0.1, 1.0.2, 1.0.3, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5)

djordon commented 1 year ago

My Python version is 3.8 and pip 21.3.1.

Hmmm, what operating system are you using? The more information about your setup the better. I take it your using poetry to manage your project, is that right? Also, have you tried using v1.2.4 or v1.2.3? If you tried those did you get the same error there?

My first thought was that your using a newer version of python, but that doesn't seem to be the case. Installation of queueing-tool for Python 3.8 on ubuntu is tested in CI, although the installation is probably slightly different from your setup. See here: https://github.com/djordon/queueing-tool/blob/ea9114994f90b46d858c95d8c1274ec391a644e6/.github/workflows/run-tests.yml#L11-L14

So I'm not sure what is up here without a little more information about how you're trying to install it.

AbdellahiMrabet commented 1 year ago

It't now OK Thanks to all, it was a problem of vs 14

في الجمعة، 21 جويلية 2023, 01:12 Daniel Jordon @.***> كتب:

My Python version is 3.8 and pip 21.3.1.

Hmmm, what operating system are you using? The more information about your setup the better. I take it your using poetry to manage your project, is that right? Also, have you tried using v1.2.4 or v1.2.3? If you tried those did you get the same error there?

My first thought was that your using a newer version of python, but that doesn't seem to be the case. Installation of queueing-tool for Python 3.8 on ubuntu is tested in CI, although the installation is probably slightly different from your setup. See here: https://github.com/djordon/queueing-tool/blob/ea9114994f90b46d858c95d8c1274ec391a644e6/.github/workflows/run-tests.yml#L11-L14 .

So I'm not sure what is up here without a little more information about how you're trying to install it.

— Reply to this email directly, view it on GitHub https://github.com/djordon/queueing-tool/issues/95#issuecomment-1644809115, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPGJ7ASJKYQUKR5ZC2LILLXRHCN3ANCNFSM6AAAAAA2AMCWJE . You are receiving this because you authored the thread.Message ID: @.***>

saman-lagzi commented 1 year ago

My Python version is 3.8 and pip 21.3.1.

Hmmm, what operating system are you using? The more information about your setup the better. I take it your using poetry to manage your project, is that right? Also, have you tried using v1.2.4 or v1.2.3? If you tried those did you get the same error there?

My first thought was that your using a newer version of python, but that doesn't seem to be the case. Installation of queueing-tool for Python 3.8 on ubuntu is tested in CI, although the installation is probably slightly different from your setup. See here:

https://github.com/djordon/queueing-tool/blob/ea9114994f90b46d858c95d8c1274ec391a644e6/.github/workflows/run-tests.yml#L11-L14

So I'm not sure what is up here without a little more information about how you're trying to install it.

I very much appreciate your help. Thanks.

I have Windows 10, and I have tried installing all the previous versions, including the ones you mentioned. This is the error I get there:

python setup.py bdist_wheel did not run successfully. exit code: 1

AbdellahiMrabet commented 1 year ago

It's now OK thank to all. It was a problem of vs 14

AbdellahiMrabet commented 1 year ago

Thanks to all. It was a problem of vs 14

saman-lagzi commented 1 year ago

My Python version is 3.8 and pip 21.3.1.

Hmmm, what operating system are you using? The more information about your setup the better. I take it your using poetry to manage your project, is that right? Also, have you tried using v1.2.4 or v1.2.3? If you tried those did you get the same error there? My first thought was that your using a newer version of python, but that doesn't seem to be the case. Installation of queueing-tool for Python 3.8 on ubuntu is tested in CI, although the installation is probably slightly different from your setup. See here: https://github.com/djordon/queueing-tool/blob/ea9114994f90b46d858c95d8c1274ec391a644e6/.github/workflows/run-tests.yml#L11-L14

So I'm not sure what is up here without a little more information about how you're trying to install it.

I very much appreciate your help. Thanks.

I have Windows 10, and I have tried installing all the previous versions, including the ones you mentioned. This is the error I get there:

python setup.py bdist_wheel did not run successfully. exit code: 1

This is the error I get when I try to install version 1.2.3

building 'queueing_tool.network.priority_queue' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]

djordon commented 1 year ago

Oh interesting, what version of Microsoft Visual C++ are you using?

AbdellahiMrabet commented 1 year ago

I now usine vs 14 and all is done

في الجمعة، 21 جويلية 2023, 15:42 Daniel Jordon @.***> كتب:

Oh interesting, what version of Microsoft Visual C++ are you using?

— Reply to this email directly, view it on GitHub https://github.com/djordon/queueing-tool/issues/95#issuecomment-1645702349, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPGJ7CSCYUXVZU7CABHRELXRKIMHANCNFSM6AAAAAA2AMCWJE . You are receiving this because you modified the open/close state.Message ID: @.***>

djordon commented 1 year ago

Sorry, I was asking @saman-lagzi. I wonder if he is having the same issue as you.

AbdellahiMrabet commented 1 year ago

No problem

في الجمعة، 21 جويلية 2023, 16:06 Daniel Jordon @.***> كتب:

Sorry, I was asking @saman-lagzi https://github.com/saman-lagzi. I wonder if he is having the same issue as you.

— Reply to this email directly, view it on GitHub https://github.com/djordon/queueing-tool/issues/95#issuecomment-1645735418, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPGJ7DXADNC65FUEAKHWNLXRKLHHANCNFSM6AAAAAA2AMCWJE . You are receiving this because you modified the open/close state.Message ID: @.***>

saman-lagzi commented 1 year ago

Hi Daniel.

I have the Microsoft Visual C++ redistributable version 14.28.29334.0. I think I also need to install the build tools version as well?

Best, Saman Lagzi Assistant Professor | Operations & Decision Sciences Wilfrid Laurier University | Lazaridis School of Business & Economics


From: Daniel Jordon @.> Sent: July 21, 2023 10:42 AM To: djordon/queueing-tool @.> Cc: Saman Lagzi @.>; Comment @.> Subject: Re: [djordon/queueing-tool] Failed to build queueing-tool (Issue #95)

You don't often get email from @.*** Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification

Oh interesting, what version of Microsoft Visual C++ are you using?

— Reply to this email directly, view it on GitHubhttps://github.com/djordon/queueing-tool/issues/95#issuecomment-1645702349, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3AOH7ZPCWLNC4XY2XMUNCTXRKIMHANCNFSM6AAAAAA2AMCWJE. You are receiving this because you commented.Message ID: @.***>

djordon commented 1 year ago

I have the Microsoft Visual C++ redistributable version 14.28.29334.0. I think I also need to install the build tools version as well?

I believe so although I'm not really sure. Can't hurt to try though. Let me know if installing the build tools helps.

saman-lagzi commented 1 year ago

Installing the Visual Studio Build tools worked like a charm. Thank you so much. While I have your attention, does the package support queue abandonments as well?

Thank you so much for your help.

Best, Saman Lagzi Assistant Professor | Operations & Decision Sciences Wilfrid Laurier University | Lazaridis School of Business & Economics


From: Daniel Jordon @.> Sent: July 21, 2023 12:15 PM To: djordon/queueing-tool @.> Cc: Saman Lagzi @.>; Mention @.> Subject: Re: [djordon/queueing-tool] Failed to build queueing-tool (Issue #95)

You don't often get email from @.*** Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification

I have the Microsoft Visual C++ redistributable version 14.28.29334.0. I think I also need to install the build tools version as well?

I believe so although I'm not really sure. Can't hurt to try though. Let me know if installing the build tools helps.

— Reply to this email directly, view it on GitHubhttps://github.com/djordon/queueing-tool/issues/95#issuecomment-1645881215, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3AOH7YPYOIXTRQDOOO6F3DXRKTKDANCNFSM6AAAAAA2AMCWJE. You are receiving this because you were mentioned.Message ID: @.***>

djordon commented 1 year ago

Installing the Visual Studio Build tools worked like a charm. Thank you so much. While I have your attention, does the package support queue abandonments as well?

Excellent, glad that worked.

As for abandonment, no it's not supported. I remember thinking about supporting it and then realizing that it's not obvious what aspects of abandonment need to be supported. Some questions that come to mind are:

  1. What information needs to be retained when an agent abandons the queue?
  2. What factors influence abandonment, and which ones should be built in? Do long lines influence abandonment? What about wait time?
  3. Where do the agents go in a network after a queue is abandoned? Can they return?

And there are probably more too, I just can't remember. Anyway, it wasn't obvious how to answer some of these questions. But if you want abandonment and have answers to questions like these I can help you put something together that can help you achieve what you want.

saman-lagzi commented 1 year ago

Hi Daniel,

Sorry for the late response.

I am trying to simulate the settings in this paper. Here they assume the customer patience time has a general distribution, where customers would not wait longer than a random variable she draws from the assumed distribution. In other words (quote from the paper):

Associated with each arriving caller there is a generally distributed patience time τ with a common distribution G. An arriving customer encounters an offered waiting time V, defined as the time that this customer would have to wait given that her or his patience is infinite. If the offered wait exceeds the customer’s patience time, the call is then abandoned, otherwise, the customer awaits service. In both cases, the actual waiting time W is equal to min(V, τ).

To answer your questions I would thus say:

  1. What information needs to be retained when an agent abandons the queue? The wait time of the customer needs to be retained I think.
  2. What factors influence abandonment, and which ones should be built in? Do long lines influence abandonment? What about wait time? I would say doing it as the paper suggests is pretty intuitive. Here we have an invisible queue (like a call center) and the customer abandons when her wait time in the queue surpasses her patience.
  3. Where do the agents go in a network after a queue is abandoned? Can they return? Let's assume a non-orbiting queue, where the customer abandons and does not return.

Please do let me know if I can be of any help with improving the package to take care of this issues.

Best, Saman Lagzi Assistant Professor | Operations & Decision Sciences Wilfrid Laurier University | Lazaridis School of Business & Economics


From: Daniel Jordon @.> Sent: July 21, 2023 3:59 PM To: djordon/queueing-tool @.> Cc: Saman Lagzi @.>; Mention @.> Subject: Re: [djordon/queueing-tool] Failed to build queueing-tool (Issue #95)

Installing the Visual Studio Build tools worked like a charm. Thank you so much. While I have your attention, does the package support queue abandonments as well?

Excellent, glad that worked.

As for abandonment, no it's not supported. I remember thinking about supporting it and then realizing that it's not obvious what aspects of abandonment need to be supported. Some questions that come to mind are:

  1. What information needs to be retained when an agent abandons the queue?
  2. What factors influence abandonment, and which ones should be built in? Do long lines influence abandonment? What about wait time?
  3. Where do the agents go in a network after a queue is abandoned? Can they return?

And there are probably more too, I just can't remember. Anyway, it wasn't obvious how to answer some of these questions. But if you want abandonment and have answers to questions like these I can help you put something together that can help you achieve what you want.

— Reply to this email directly, view it on GitHubhttps://github.com/djordon/queueing-tool/issues/95#issuecomment-1646178189, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3AOH76WULYADUVJL7F6EY3XRLNQVANCNFSM6AAAAAA2AMCWJE. You are receiving this because you were mentioned.Message ID: @.***>

djordon commented 1 year ago

Okay so I gave this some thought. I think this "issue" is distinct enough that we should continue the conversation in a separate ticket, so I created https://github.com/djordon/queueing-tool/issues/98. Let's continue this there.