microprediction / pandemic

A 2d contagion model with commuting modeled as regime switching Ornstein-Uhlenbeck walks on the plane
8 stars 7 forks source link

pip installation import error #6

Closed pranjaldhole closed 4 years ago

pranjaldhole commented 4 years ago

When I pip installed pandemic and followed instructions according to README file and imported

from pandemic import run

I get the following import error

cannot import name 'run' from 'pandemic.simulation'
microprediction commented 4 years ago

Can you supply the version of python you are using please?  

Can you import pandemic? 

Sent with BlackBerry Work (www.blackberry.com)

From: Pranjal Dhole notifications@github.com Date: Tuesday, Apr 14, 2020, 6:45 AM To: microprediction/pandemic pandemic@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [microprediction/pandemic] pip installation import error (#6)

When I pip installed pandemic and followed instructions according to README file and imported from pandemic import run

I get the following import error cannot import name 'run' from 'pandemic.simulation'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

This electronic message, including its attachments, contains information from Janus Henderson Investors. Janus Henderson Investors is the name under which various entities, including Janus Capital Management LLC, Perkins Investment Management LLC and Intech Investment Management LLC provide investment products and services. All of these companies are wholly owned subsidiaries of Janus Henderson Group plc (incorporated in Jersey, registered no.101484, registered office 47 Esplanade, St Helier, Jersey JE1 0BD). This email contains information which is confidential and may be privileged and attorney work product, intended solely for the use of the individual or entity named above. Your personal information will be kept in accordance with the applicable data privacy laws and Janus Henderson’s Privacy Policy. A copy of the document is available under the Privacy Policy section of our website at www.janushenderson.com and in hard copy by sending a request to privacy@janushenderson.com If you are not the intended recipient, be aware that you must not read this email and that any disclosure, copying, distribution or use of the contents of this email is prohibited. If you have received this email in error, please immediately notify the sender and delete the original email and its attachments without reading or saving in any manner. .

pranjaldhole commented 4 years ago

My python version is Python 3.7.4. No, import pandamic also throws the same error.

microprediction commented 4 years ago

  Thanks Pranjal. Taking a look. What OS are you on?      

From: Pranjal Dhole notifications@github.com Reply-To: microprediction/pandemic reply@reply.github.com Date: Tuesday, April 14, 2020 at 12:31 PM To: microprediction/pandemic pandemic@noreply.github.com Cc: Peter Cotton PCotton@intechjanus.com, Comment comment@noreply.github.com Subject: Re: [microprediction/pandemic] pip installation import error (#6)

 

My python version is Python 3.7.4. No, import pandamic also throws the same error. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

This electronic message, including its attachments, contains information from Janus Henderson Investors. Janus Henderson Investors is the name under which various entities, including Janus Capital Management LLC, Perkins Investment Management LLC and Intech Investment Management LLC provide investment products and services. All of these companies are wholly owned subsidiaries of Janus Henderson Group plc (incorporated in Jersey, registered no.101484, registered office 47 Esplanade, St Helier, Jersey JE1 0BD). This email contains information which is confidential and may be privileged and attorney work product, intended solely for the use of the individual or entity named above. Your personal information will be kept in accordance with the applicable data privacy laws and Janus Henderson’s Privacy Policy. A copy of the document is available under the Privacy Policy section of our website at www.janushenderson.com and in hard copy by sending a request to privacy@janushenderson.com If you are not the intended recipient, be aware that you must not read this email and that any disclosure, copying, distribution or use of the contents of this email is prohibited. If you have received this email in error, please immediately notify the sender and delete the original email and its attachments without reading or saving in any manner. .

pranjaldhole commented 4 years ago

I am using Ubuntu 18.04.4 LTS

microprediction commented 4 years ago

I pushed a new version that may fix it. Can you try? That said, I am having some issues with one of my machines. Note for mac users, updating xcode might help too.

pranjaldhole commented 4 years ago

Yes, it works now. Thanks

microprediction commented 4 years ago

Terrific. The code will send results back now. Thanks for helping 

Sent with BlackBerry Work (www.blackberry.com)

From: Pranjal Dhole notifications@github.com Date: Friday, Apr 17, 2020, 10:24 AM To: microprediction/pandemic pandemic@noreply.github.com Cc: Peter Cotton PCotton@intechjanus.com, Comment comment@noreply.github.com Subject: Re: [microprediction/pandemic] pip installation import error (#6)

Yes, it works now. Thanks — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

This electronic message, including its attachments, contains information from Janus Henderson Investors. Janus Henderson Investors is the name under which various entities, including Janus Capital Management LLC, Perkins Investment Management LLC and Intech Investment Management LLC provide investment products and services. All of these companies are wholly owned subsidiaries of Janus Henderson Group plc (incorporated in Jersey, registered no.101484, registered office 47 Esplanade, St Helier, Jersey JE1 0BD). This email contains information which is confidential and may be privileged and attorney work product, intended solely for the use of the individual or entity named above. Your personal information will be kept in accordance with the applicable data privacy laws and Janus Henderson’s Privacy Policy. A copy of the document is available under the Privacy Policy section of our website at www.janushenderson.com and in hard copy by sending a request to privacy@janushenderson.com If you are not the intended recipient, be aware that you must not read this email and that any disclosure, copying, distribution or use of the contents of this email is prohibited. If you have received this email in error, please immediately notify the sender and delete the original email and its attachments without reading or saving in any manner. .