AllenDowney / ModSimPy

Text and supporting code for Modeling and Simulation in Python
https://allendowney.github.io/ModSimPy/
MIT License
823 stars 1.76k forks source link

modsim install instructions incorrect in version 3 book #44

Closed jzelek closed 5 years ago

jzelek commented 5 years ago

they should read pip install ModSimPy and not pip install ModSim

AllenDowney commented 5 years ago

I have fixed the source. The PDF will update soon. Thank you!

truongan9393 commented 5 years ago

I still get the error with: pip install ModSimPy error

AllenDowney commented 5 years ago

It might be case sensitive: the name of the package is modsimpy

On Thu, Sep 5, 2019, at 4:44 PM, truongan9393 wrote:

I still get the error with: pip install ModSimPy error https://user-images.githubusercontent.com/53763889/64379224-b9747180-d02e-11e9-88c2-a8ae8bcd38e7.png

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/AllenDowney/ModSimPy/issues/44?email_source=notifications&email_token=AAOLP3LMFV34IQUI6XTT3I3QIFVTNA5CNFSM4H6UUOW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6AWNLI#issuecomment-528574125, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOLP3MEE5P24FLDQED7GDDQIFVTNANCNFSM4H6UUOWQ.

AllenDowney commented 5 years ago

No, now that I read the error message more carefully, it found the package, but could not install it. This looks to me like your installation of pip is broken.

On Thu, Sep 5, 2019, at 4:58 PM, Allen Downey wrote:

It might be case sensitive: the name of the package is modsimpy

On Thu, Sep 5, 2019, at 4:44 PM, truongan9393 wrote:

I still get the error with: pip install ModSimPy error https://user-images.githubusercontent.com/53763889/64379224-b9747180-d02e-11e9-88c2-a8ae8bcd38e7.png

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/AllenDowney/ModSimPy/issues/44?email_source=notifications&email_token=AAOLP3LMFV34IQUI6XTT3I3QIFVTNA5CNFSM4H6UUOW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6AWNLI#issuecomment-528574125, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOLP3MEE5P24FLDQED7GDDQIFVTNANCNFSM4H6UUOWQ.

mtkhawaja commented 5 years ago

I still get the error with: pip install ModSimPy error

Hi, I had a similar error while using Windows. If you're on windows 10, you can change the encoding to UTF-8 and that may fix it for you.

truongan9393 commented 5 years ago

I still get the error with: pip install ModSimPy error

Hi, I had a similar error while using Windows. If you're on windows 10, you can change the encoding to UTF-8 and that may fix it for you.

Thank you so much. It works perfectly now!!

AllenDowney commented 5 years ago

I'm glad you were able to get it to work, but I am still not sure I understand the problem.

Is there something I can do to the ModSimPy package to avoid this problem?

Allen

On Sun, Sep 8, 2019, at 5:09 PM, truongan9393 wrote:

I still get the error with: pip install ModSimPy error https://user-images.githubusercontent.com/53763889/64379224-b9747180-d02e-11e9-88c2-a8ae8bcd38e7.png

Hi, I had a similar error while using Windows. If you're on windows 10, you can change the encoding to UTF-8 https://superuser.com/questions/1033088/is-it-possible-to-set-locale-of-a-windows-application-to-utf-8 and that may fix it for you.

Thank you so much. It works perfectly now!!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/AllenDowney/ModSimPy/issues/44?email_source=notifications&email_token=AAOLP3JWM4RMHP3VC7SWJNDQIVSY3A5CNFSM4H6UUOW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FZOMA#issuecomment-529241904, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOLP3PQYPSF4IYLN42CJ3LQIVSY3ANCNFSM4H6UUOWQ.

truongan9393 commented 5 years ago

I'm glad you were able to get it to work, but I am still not sure I understand the problem. Is there something I can do to the ModSimPy package to avoid this problem? Allen On Sun, Sep 8, 2019, at 5:09 PM, truongan9393 wrote: >> I still get the error with: pip install ModSimPy error https://user-images.githubusercontent.com/53763889/64379224-b9747180-d02e-11e9-88c2-a8ae8bcd38e7.png > Hi, > I had a similar error while using Windows. If you're on windows 10, you can change the encoding to UTF-8 https://superuser.com/questions/1033088/is-it-possible-to-set-locale-of-a-windows-application-to-utf-8 and that may fix it for you. Thank you so much. It works perfectly now!! — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#44?email_source=notifications&email_token=AAOLP3JWM4RMHP3VC7SWJNDQIVSY3A5CNFSM4H6UUOW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FZOMA#issuecomment-529241904>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOLP3PQYPSF4IYLN42CJ3LQIVSY3ANCNFSM4H6UUOWQ.

I am not sure. Maybe there are some special characters in the setup file . But I think the problem mainly comes from my computer (windows 10). Because I can use this package from other computer.

P/s I really enjoy this book. I cannot stop reading it

AllenDowney commented 5 years ago

Ok, thanks. And glad you like the book!

On Mon, Sep 9, 2019, at 2:54 AM, truongan9393 wrote:

I'm glad you were able to get it to work, but I am still not sure I understand the problem. Is there something I can do to the ModSimPy package to avoid this problem? Allen … https://www.fastmail.com/mail/compose?u=9e61409d# On Sun, Sep 8, 2019, at 5:09 PM, truongan9393 wrote: >> I still get the error with: pip install ModSimPy error https://user-images.githubusercontent.com/53763889/64379224-b9747180-d02e-11e9-88c2-a8ae8bcd38e7.png > Hi, > I had a similar error while using Windows. If you're on windows 10, you can change the encoding to UTF-8 https://superuser.com/questions/1033088/is-it-possible-to-set-locale-of-a-windows-application-to-utf-8 and that may fix it for you. Thank you so much. It works perfectly now!! — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#44 https://github.com/AllenDowney/ModSimPy/issues/44?email_source=notifications&email_token=AAOLP3JWM4RMHP3VC7SWJNDQIVSY3A5CNFSM4H6UUOW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FZOMA#issuecomment-529241904>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOLP3PQYPSF4IYLN42CJ3LQIVSY3ANCNFSM4H6UUOWQ.

I am not sure. Maybe there are some special characters in the setup file . But I think the problem mainly comes from my computer (windows 10). Because I can use this package from other computer.

P/s I really enjoy this book. I cannot stop reading it

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/AllenDowney/ModSimPy/issues/44?email_source=notifications&email_token=AAOLP3I4PYHXGSUT5BOGHRDQIXXKTA5CNFSM4H6UUOW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6GNZQI#issuecomment-529325249, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOLP3MQE7UQERYIWM7LM3DQIXXKTANCNFSM4H6UUOWQ.

mtkhawaja commented 5 years ago

I'm glad you were able to get it to work, but I am still not sure I understand the problem. Is there something I can do to the ModSimPy package to avoid this problem? Allen On Sun, Sep 8, 2019, at 5:09 PM, truongan9393 wrote: >> I still get the error with: pip install ModSimPy error https://user-images.githubusercontent.com/53763889/64379224-b9747180-d02e-11e9-88c2-a8ae8bcd38e7.png > Hi, > I had a similar error while using Windows. If you're on windows 10, you can change the encoding to UTF-8 https://superuser.com/questions/1033088/is-it-possible-to-set-locale-of-a-windows-application-to-utf-8 and that may fix it for you. Thank you so much. It works perfectly now!! — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#44?email_source=notifications&email_token=AAOLP3JWM4RMHP3VC7SWJNDQIVSY3A5CNFSM4H6UUOW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FZOMA#issuecomment-529241904>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOLP3PQYPSF4IYLN42CJ3LQIVSY3ANCNFSM4H6UUOWQ.

Hi Professor Downey, You might be using non CP-1252 (Windows Encoding) supported characters in your readme file. You may be able to prevent this by using strictly ASCII. This post helped me figure out what was going on and may prove useful.

AllenDowney commented 5 years ago

I will check that out. Thanks!

On Mon, Sep 9, 2019, at 8:33 AM, Muneeb Khawaja wrote:

I'm glad you were able to get it to work, but I am still not sure I understand the problem. Is there something I can do to the ModSimPy package to avoid this problem? Allen … https://www.fastmail.com/mail/compose?u=9e61409d# On Sun, Sep 8, 2019, at 5:09 PM, truongan9393 wrote: >> I still get the error with: pip install ModSimPy error https://user-images.githubusercontent.com/53763889/64379224-b9747180-d02e-11e9-88c2-a8ae8bcd38e7.png > Hi, > I had a similar error while using Windows. If you're on windows 10, you can change the encoding to UTF-8 https://superuser.com/questions/1033088/is-it-possible-to-set-locale-of-a-windows-application-to-utf-8 and that may fix it for you. Thank you so much. It works perfectly now!! — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#44 https://github.com/AllenDowney/ModSimPy/issues/44?email_source=notifications&email_token=AAOLP3JWM4RMHP3VC7SWJNDQIVSY3A5CNFSM4H6UUOW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FZOMA#issuecomment-529241904>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOLP3PQYPSF4IYLN42CJ3LQIVSY3ANCNFSM4H6UUOWQ.

Hi Professor Downey, You might be using non CP-1252 (Windows Encoding) supported characters in your readme file. You may be able to prevent this by using strictly ASCII. This post https://stackoverflow.com/questions/40194968/unicodedecodeerror-charmap-codec-cant-decode-byte-0x90-in-position-4336-chahelped me figure out what was going on and may prove useful.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/AllenDowney/ModSimPy/issues/44?email_source=notifications&email_token=AAOLP3KTW34IJ5YV2I3WN63QIY673A5CNFSM4H6UUOW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6HMRGQ#issuecomment-529451162, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOLP3IRRGPNEZW4FT7SBOLQIY673ANCNFSM4H6UUOWQ.