Coder Social home page Coder Social logo

Comments (6)

krosenfeld-IDM avatar krosenfeld-IDM commented on August 14, 2024

Hi @laurelboyd,

I'm not able to reproduce this error. Could you give a few more details? How did you install? (virtual environment? Did you use pip or from source?). Thanks!

from covasim.

ckerr-IDM avatar ckerr-IDM commented on August 14, 2024

Not able to reproduce

from covasim.

khmoud75 avatar khmoud75 commented on August 14, 2024

I have the same error . I flow all steps ,but I can't run any example . the only example I can run is the first . any one can help me with this. this my first time with python .

from covasim.

ckerr-IDM avatar ckerr-IDM commented on August 14, 2024

Hi @khmoud75 -- the model uses advanced Python features so if this is your first time using Python, it may be quite challenging to get up to speed. We recommend that you first complete an online course for scientific computing in Python, e.g.:
https://scipy-lectures.org/
https://www.enthought.com/courses/python-for-scientists-and-engineers/

from covasim.

khmoud75 avatar khmoud75 commented on August 14, 2024

Hi @ckerr-IDM thank you for your answer . yes I new with python, but I can learn fast. I get the below error message . I need find solution to it can you help me please?
C:\Users\User\Downloads\covasim-master>python examples/run_sim.py
Importing...
Covasim 0.23.5 (2020-04-06) β€” Β© 2020 by IDM
Note: synthpops (for detailed demographic data) is not available (No module named 'synthpops')

Configuring...
Making sim...
Running...
Creating 20000 people...
Traceback (most recent call last):
File "examples/run_sim.py", line 43, in
sim.run(verbose=verbose)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\covasim\sim.py", line 436, in run
self.initialize()
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\covasim\sim.py", line 160, in initialize
self.init_people(**kwargs) # Create all the people (slow)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\covasim\sim.py", line 264, in init_people
cvppl.make_people(self, verbose=verbose, id_len=id_len, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\covasim\people.py", line 255, in make_people
import synthpops as sp # Optional import
ModuleNotFoundError: No module named 'synthpops'

from covasim.

ckerr-IDM avatar ckerr-IDM commented on August 14, 2024

Hi @khmoud75 -- please reinstall Covasim, I see you are using version 0.23.5 but the current version is 0.28.6. I suggest checking the documentation regularly for updates:
https://institutefordiseasemodeling.github.io/covasim-docs

from covasim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.