synthpop icon indicating copy to clipboard operation
synthpop copied to clipboard

How to install/run Synthpop

Open shanwenainimen opened this issue 9 years ago • 12 comments

Hi all,

Could anyone please provide some guidance about how to install or run Synthpop? I have been recently assigned a task related with Synthpop and had a hard time doing this job. I would really appreciate it.

shanwenainimen avatar Oct 28 '15 19:10 shanwenainimen

How familiar are you with using Python and Python libraries?

jiffyclub avatar Oct 28 '15 19:10 jiffyclub

I took a Python course during undergraduate and have the basic knowledge for Python and its libraries

shanwenainimen avatar Oct 28 '15 19:10 shanwenainimen

Okay, great. The only way to use SynthPop is by writing Python. :smile:

Step one is to install Python and all the dependencies. I recommend Anaconda. The required dependencies are:

Everything except cenus and us are included with Anaconda.

Step 2 is to download the source code from here on GitHub. Install SynthPop by running python setup.py install in the synthpop directory.

Then you should be able to start Python and import synthpop. For usage help I recommend looking at the demos.

jiffyclub avatar Oct 28 '15 19:10 jiffyclub

Thanks a lot, I have installed Anaconda and I will follow your guidance. Thanks again!

shanwenainimen avatar Oct 28 '15 19:10 shanwenainimen

If you need help with the logic behind it or possibly some assistance in applying it, you might try reaching out to Karthik Konduri who wrote the precursor to this version, called PopGen.

waddell avatar Oct 28 '15 22:10 waddell

Or https://github.com/bhargavasana..

waddell avatar Oct 28 '15 22:10 waddell

Thanks @jiffyclub and @waddell, I have successfully installed Census and US, but how can I install/run the synthpop via Jupyter Notebook. I try to run set up.py but it shows error below: image Thank you so much for your kind input.

shanwenainimen avatar Nov 04 '15 22:11 shanwenainimen

You'll need to install synthpop from the command line after downloading the source.

jiffyclub avatar Nov 04 '15 23:11 jiffyclub

I really appreciate your help @jiffyclub and It works. when I run the census_api.py in deom, it shows error below: image I got the API key and should I just replace the os.environ("census") with key as shown below: image Thanks

shanwenainimen avatar Nov 05 '15 21:11 shanwenainimen

Yes that works. It seems like you've already done that - is it working?

fscottfoti avatar Nov 05 '15 21:11 fscottfoti

Yes, it works. Many thanks

shanwenainimen avatar Nov 05 '15 21:11 shanwenainimen

Hi all,

I have successfully run examples in Demo file thanks to your generous help. I have another question. How to test input_data in Demo file (I assume this is an example used in Popgen)? Because I have to finally set up Synthpop and UrbanSim for our MPO, should I make the format of our data exactly same as data in input_data file? Many thanks.

shanwenainimen avatar Nov 11 '15 19:11 shanwenainimen