Windows installation

406 views
Skip to first unread message

Thomas Wiecki

unread,
Nov 13, 2013, 7:26:43 PM11/13/13
to hddm-...@googlegroups.com
Hi all,

I know there have been quite some problems getting HDDM to run on Windows.

I think those issues should be fixed now. To install HDDM on windows do the following:

1. Download and install anaconda 1.8, 32 bit (http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-1.8.0-Windows-x86.exe)
2. Go to Start->Programs->Anaconda->Anaconda command prompt.
3. Enter easy_install pymc
4. Enter easy_install kabuki
5. Enter easy_install hddm

Please let me know if you have success or the opposite of success with this approach.

Thomas


--
Thomas Wiecki
PhD candidate, Brown University
Quantitative Researcher, Quantopian Inc, Boston

Jan Peters

unread,
Nov 19, 2013, 2:16:01 PM11/19/13
to hddm-...@googlegroups.com
Hi Thomas,
I got stuck when I got to easy_install hddm :

Searching for hddm
Reading http://pypi.python.org/simple/hddm/
Best match: HDDM 0.5.2.win32
Downloading https://pypi.python.org/packages/2.7/H/HDDM/HDDM-0.5.2.win32.tar.gz#md5=e1d40f680248bdad74e8bcb35b3f6e6d
Processing HDDM-0.5.2.win32.tar.gz
error: Couldn't find a setup script in c:\users\peters\appdata\local\temp\easy_install-6xqece\HDDM-0.5.2.win32.tar.gz

pymc and kabuki installed OK.

Thanks for your help,
Jan

Thomas Wiecki

unread,
Nov 19, 2013, 2:42:52 PM11/19/13
to hddm-...@googlegroups.com
Hi Jan,

Thanks for reporting. Can you try again?

Thomas


--
You received this message because you are subscribed to the Google Groups "hddm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hddm-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jan Peters

unread,
Nov 19, 2013, 2:58:14 PM11/19/13
to hddm-...@googlegroups.com
Still the same error...

Thomas Wiecki

unread,
Nov 19, 2013, 3:00:17 PM11/19/13
to hddm-...@googlegroups.com
Are you sure? At least it should attempt to download a different file, can you send the command and output?

Jan Peters

unread,
Nov 19, 2013, 3:05:28 PM11/19/13
to hddm-...@googlegroups.com
Sorry, you're right:


Searching for hddm
Reading http://pypi.python.org/simple/hddm/
Best match: HDDM 0.5.2.linux-i686
Downloading https://pypi.python.org/packages/2.7/H/HDDM/HDDM-0.5.2.linux-i686.tar.gz#md5=50da8d2e9491d1fde1b3d2cc89887c28
Processing HDDM-0.5.2.linux-i686.tar.gz
error: Couldn't find a setup script in c:\users\peters\appdata\local\temp\easy_install-abrzpo\HDDM-0.5.2.linux-i686.tar.gz

Thanks for your help Thomas!!

Thomas Wiecki

unread,
Nov 19, 2013, 3:11:34 PM11/19/13
to hddm-...@googlegroups.com
Can you run:
sudo pip install -U setuptools pip

And try easy_install hddm again?

Jan Peters

unread,
Nov 19, 2013, 3:28:46 PM11/19/13
to hddm-...@googlegroups.com
Now I get the error message that the command "sudo" is not recognized.

Thomas Wiecki

unread,
Nov 19, 2013, 4:15:43 PM11/19/13
to hddm-...@googlegroups.com
OK, Windows installation is still not as solid as it should be :-/.

In this case the solution was to manually download and install:
https://pypi.python.org/packages/2.7/H/HDDM/HDDM-0.5.2.win32-py2.7.exe

Thomas Wiecki

unread,
Dec 10, 2013, 10:46:56 AM12/10/13
to hddm-...@googlegroups.com
Hi all,

I took another crack at trying to reduce the pain of installing HDDM under windows.

If you have anaconda 1.8.0 32-bit (which I recommend), installing HDDM 0.5.2 should be as easy as (from cmd.exe):

conda config --add channels https://conda.binstar.org/twiecki
conda config --add channels defaults
conda install hddm

Once you added the channel via the first 2 commands (you'll have to do this only once), you will always be able to update HDDM to the latest version using `conda update hddm`.

I'd really appreciate it if anyone on windows could test this and report back whether it works. I tried it on a windows install where it did.

Thomas

Molly Crockett

unread,
Feb 14, 2014, 12:31:07 PM2/14/14
to hddm-...@googlegroups.com
Hi Thomas,

I tried to install on windows using the above instructions and it didn't work. I got the following error message after typing conda install hddm:
Error: unsatisfiable package specifications
Hint: hddm has a conflict with the remaining packages

Cheers,
Molly

Thomas Wiecki

unread,
Feb 14, 2014, 12:42:44 PM2/14/14
to hddm-...@googlegroups.com
Hi Molly,

Thanks for letting me know. This is because of the new anaconda version. I'll release an update soon that will work with anaconda 1.9.

Thomas


--
You received this message because you are subscribed to the Google Groups "hddm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hddm-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

kaustub...@gmail.com

unread,
May 21, 2014, 7:09:38 AM5/21/14
to hddm-...@googlegroups.com
Hi Thomas,

I wanted to install HDDM on a windows machine but was riddled with either DLL or MS visual studio errors, especially with PyMC. I tried clean python install and also Anaconda with no luck. Here is a procedure that worked for me so thought maybe I will post it here in case people are still looking for a solution. As the procedure depends on MinGW32 please make sure that you install everything 32 bit even though your Windows is 64 bit.

You need admin rights to do many of the following.

1. Install Python 2.7.6 32 bit. Lets call the install directory path_to_Python27.
2. Get Numpy and Scipy 2.7 32 bit installers from their websites and install.
3. Install setuptools and pip (32 bit) from http://www.lfd.uci.edu/~gohlke/pythonlibs/
4. Install MinGW32 and append the corresponding bin folder to your environments PATH variable. You can get MinGW32 here http://sourceforge.net/projects/mingw/files/
5. Create file: path_to_Python27\Lib\distutils\distutils.cfg and put following two lines in there:

[build]
compiler=mingw32

6. Start "cmd" and run following commands in the path_to_Python27\scripts directory (make sure that you dont have any python instances running)

pip install matplotlib
pip install pymc
pip install pandas
pip install kabuki
pip install hddm

This worked for me and I hope that this helps. I will be happy to elaborate if needed.

Best,
Kaustubh

kaustub...@gmail.com

unread,
May 21, 2014, 7:31:07 AM5/21/14
to hddm-...@googlegroups.com
Oops, you will also need to install matplotlib using the installer they provide but still run "pip install matplotlib" to get the dependencies installed.

Best

Thomas Wiecki

unread,
May 21, 2014, 8:04:59 AM5/21/14
to hddm-...@googlegroups.com
Hi Kaustubh,

Many thanks for sending the instructions. Could you provide me with an error message of what failed when you tried to conda install -c twiecki hddm?

Thomas


For more options, visit https://groups.google.com/d/optout.

kaustub...@gmail.com

unread,
May 22, 2014, 2:29:17 AM5/22/14
to hddm-...@googlegroups.com
Hi Thomas,

I installed anaconda (32 bit) and then pymc and hddm as instructed in the documents. When I tried to "import hddm" I got a something like a question from the python prompt:

>>> import hddm
In :

With the curser blinking after "In: " and I could type in if want but dont know what. I am not a python expert but I havent seen this before and google search didnt yield much.

Best,
Kaustubh

Thomas Wiecki

unread,
Jul 2, 2014, 6:49:48 AM7/2/14
to hddm-...@googlegroups.com
Hi Kaustubh,

Can you try updating again?

conda update -c pymc hddm

Thomas

Neha Sinha

unread,
Jul 25, 2014, 10:01:44 PM7/25/14
to hddm-...@googlegroups.com
Hi Thomas,

I am having trouble getting hddm to run on Windows 8. I tried everything that you and other group members suggested in this thread, but nothing worked. 
What can I do?

- Neha

Neha Sinha

unread,
Jul 25, 2014, 10:57:27 PM7/25/14
to hddm-...@googlegroups.com
Update: I managed to successfully install pymc and hddm, but when I try to install kabuki it gives me the following error:
"Command python setup.py egg_info failed with error code 1"

- Neha

Thomas Wiecki

unread,
Jul 28, 2014, 8:41:53 AM7/28/14
to hddm-...@googlegroups.com
Hi Neha,

great that you made progress.

Can you post the full kabuki error alongside the command you used to install?

Thomas


--
You received this message because you are subscribed to the Google Groups "hddm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hddm-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arkady

unread,
Aug 5, 2014, 10:24:10 PM8/5/14
to hddm-...@googlegroups.com
Hi Thomas,

I am trying to install HDDM on Windows 7 64-bit machine with 32-bit Anaconda 1.8.0.
None of these options above work for me.
It seems that 'easy_install pymc' works, though it gives a pretty long list of messages,
but 'easy_install kabuki' fails to work. The screenshot is attached.
I am not very familiar with Python, so I would appreciate any help.
Thank you!

Arkady


понедельник, 28 июля 2014 г., 8:41:53 UTC-4 пользователь Thomas написал:
screenshot.png

Guido Biele

unread,
Aug 6, 2014, 3:35:26 AM8/6/14
to hddm-...@googlegroups.com
in your install kabuki requires pymc 2.3.2, but you have installed pymc 2.3.3

Thomas Wiecki

unread,
Aug 6, 2014, 4:11:53 AM8/6/14
to hddm-...@googlegroups.com
Ah, indeed. I just uploaded kabuki 0.5.5 which requires pymc 2.3.3 instead to resolve this conflict.

So if you run pip install kabuki again it should work.

Any reason you are not using anaconda?
https://github.com/hddm-devs/hddm#installation

Thomas


--
You received this message because you are subscribed to the Google Groups "hddm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hddm-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arkady

unread,
Aug 6, 2014, 12:55:11 PM8/6/14
to hddm-...@googlegroups.com
Thanks, kabuki installation now works.
But now hddm seems to have the same problem (see screen 1).
'conda install' doesn't work for me as well (see screen 2, the output is the same for pymc and hddm).

Arkady



среда, 6 августа 2014 г., 4:11:53 UTC-4 пользователь Thomas написал:
screen2.png
screen1.png

Thomas Wiecki

unread,
Aug 7, 2014, 8:09:47 AM8/7/14
to hddm-...@googlegroups.com
Hi Arkady,

Where did you get the conda command from?

The correct way to install is:
conda install -c pymc hddm

I also uploaded a new HDDM 0.5.5 to pypi which requires pymc 2.3.3, so easy_install hddm should work as well now.

Thomas


Arkady

unread,
Aug 7, 2014, 1:23:59 PM8/7/14
to hddm-...@googlegroups.com
Hi Thomas,

Everything seems to work just fine now, thank you very much!
The command I used is right there via the link you provided: https://github.com/hddm-devs/hddm#installation

Arkady

четверг, 7 августа 2014 г., 8:09:47 UTC-4 пользователь Thomas написал:

Arkady

unread,
Aug 7, 2014, 4:14:29 PM8/7/14
to hddm-...@googlegroups.com
OK, the only thing I am having problems with in your demo tutorial is the command
m.find_starting_values()

Traceback (most recent call last):
  File "C:\Program Files (x86)\Wing IDE 101 5.0\src\debug\tserver\_sandbox.py", line 1, in <module>
    # Used internally for debug sandbox under external interpreter
  File "C:\Users\ak\Anaconda\Lib\site-packages\kabuki-0.5.5-py2.7.egg\kabuki\hierarchical.py", line 953, in find_starting_values
    self.approximate_map(*args, **kwargs)
  File "C:\Users\ak\Anaconda\Lib\site-packages\kabuki-0.5.5-py2.7.egg\kabuki\hierarchical.py", line 1062, in approximate_map
    if name in [node.__name__ for node in gen]])
AttributeError: 'Series' object has no attribute 'node'

Is it an installation issue?

Thanks,
Arkady

четверг, 7 августа 2014 г., 8:09:47 UTC-4 пользователь Thomas написал:

Bharath Chandra Talluri

unread,
Sep 26, 2014, 9:07:52 AM9/26/14
to hddm-...@googlegroups.com
Hello Thomas,

I installed hddm on my windows machine using anaconda. I was able to install it using the command conda install -c pymc hddm, and it installed hddm version  0.5.4. However, when I type import hddm, i just get a line containing In: and a blinking cursor. I am not sure if there is an error with the installation or if I am missing any dependencies. I want to get used to hddm using the demo tutorial, but when I import hddm and type print hddm.__version__, it gives an error message saying name 'hddm' is not defined. I am attaching the snapshot here. Can you please give some guidance? I am new to python.

Thanks,
Bharath.


On Thursday, November 14, 2013 1:26:43 AM UTC+1, Thomas wrote:
Hi all,

I know there have been quite some problems getting HDDM to run on Windows.

I think those issues should be fixed now. To install HDDM on windows do the following:

1. Download and install anaconda 1.8, 32 bit (http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-1.8.0-Windows-x86.exe)
2. Go to Start->Programs->Anaconda->Anaconda command prompt.
3. Enter easy_install pymc
4. Enter easy_install kabuki
5. Enter easy_install hddm

Please let me know if you have success or the opposite of success with this approach.

Thomas

Bharath Chandra Talluri

unread,
Sep 26, 2014, 9:09:37 AM9/26/14
to hddm-...@googlegroups.com
Apologies, here is the snapshot.

Thanks,
Bharath.
error.JPG

Thomas Wiecki

unread,
Sep 29, 2014, 3:06:20 AM9/29/14
to hddm-...@googlegroups.com
Huh, I think some users reported this already. Not sure what it's about but I'll investigate once I find some time.

--
You received this message because you are subscribed to the Google Groups "hddm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hddm-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thomas Wiecki, PhD

Bharath Chandra Talluri

unread,
Oct 1, 2014, 12:36:48 PM10/1/14
to hddm-...@googlegroups.com
I got it to work. I have to import kabuki before I start with importing other modules and hddm. Then the demo works fine. The 'In: ' that appears seems to be from kabuki and is where we should give the input.

Thomas Wiecki

unread,
Oct 3, 2014, 3:04:31 AM10/3/14
to hddm-...@googlegroups.com
Glad you got it to work. I'm still just as confused about the error and the fix as before...

Sherry Jiang

unread,
Jul 9, 2015, 1:41:56 PM7/9/15
to hddm-...@googlegroups.com
Hi Thomas,
I followed your instructions on installing HDDM on windows 7, but when I tried to install pymc/kabuki/hddm, I ran into a few errors. I first installed Microsoft Visual C++ 9.0, because the error says that it is required. When I tried to install pymc/kabuki/hddm again, I had some new errors which I do not understand what they mean. Here I attached two snapshots before and after the installation of MS visual C++.
Thanks!
Best,
Sherry
Screenshot 2015-07-09 10.46.26.png
Screenshot 2015-07-09 10.08.43.png

Thomas Wiecki

unread,
Jul 9, 2015, 1:46:10 PM7/9/15
to hddm-...@googlegroups.com
Try installing via conda:
conda install pymc
conda install -c pymc hddm

--

Sherry Jiang

unread,
Jul 13, 2015, 4:15:02 PM7/13/15
to hddm-...@googlegroups.com
Thanks for your reply! I tried that, but when I imported hddm in python in anaconda, it shows "In:", which is the same problem when I imported hddm in Unix system.  But it worked fine with iPython. :)
Thanks again!
Sherry

--
You received this message because you are subscribed to a topic in the Google Groups "hddm-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hddm-users/7idn4VBiSRU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hddm-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages