RE: Installation

21 views
Skip to first unread message

Kat

unread,
Jul 9, 2010, 10:12:54 AM7/9/10
to Hooke
Hi,

I am trying to install and use the GUI version of hooke. So far I have
not been sucessful in getting the program to run. I have installed all
the libraries and tried both the required libraries in the zip file
and those that the program was developed with follwing the
installation instructions and those for configobj.I am still unable to
run hooke as the config files do not appear to be identified.

I have limited knowledge of python. Is there something I am missing?

Can anyone help?

Many thanks in advance,

Kat

m.s.

unread,
Jul 9, 2010, 10:34:54 AM7/9/10
to Hooke
Hi Kat,
I'd say a good starting point would be posting the error messages you
get when you try to install/run the program, so we can understand
better what could be your problem.

cheers!
m.

Kat

unread,
Jul 9, 2010, 11:28:13 AM7/9/10
to Hooke
Hi,
Here is the message i get when trying to start hooke:
Traceback <most recent call last>:
File "hooke.py", line 21, in <module>
import wxmpl
Import error: No module named wxmpl

I have no installed this module as i am trying to use the GUI.

Do i need to install it anyway?

Many thanks

Kat

m.s.

unread,
Jul 9, 2010, 11:36:15 AM7/9/10
to Hooke
On Jul 9, 4:28 pm, Kat <kat.blo...@gmail.com> wrote:
> Hi,
> Here is the message i get when trying to start hooke:
> Traceback <most recent call last>:
> File "hooke.py", line 21, in <module>
> import wxmpl
> Import error: No module named wxmpl
>
> I have no installed this module as i am trying to use the GUI.
>
> Do i need to install it anyway?

I'd say yes. :)

I notice that it is not your fault, the Wiki page on the GUI branch
doesn't list it in the deps for the GUI. So, since I didn't follow the
development of the GUI branch closely, I couldn't say if it's really
needed or not, but I think it doesn't hurt.

m.

Kat

unread,
Jul 9, 2010, 12:05:19 PM7/9/10
to Hooke
Hi,
Adding the wxmpl has allowed me to open the CLI version but not the
GUI. Any suggestions?

Many thanks,

Kat

m.s.

unread,
Jul 9, 2010, 12:13:18 PM7/9/10
to Hooke


On Jul 9, 5:05 pm, Kat <kat.blo...@gmail.com> wrote:
> Hi,
> Adding the wxmpl has allowed me to open the CLI version but not the
> GUI. Any suggestions?

Again, error message is?

Kat

unread,
Jul 21, 2010, 7:35:05 AM7/21/10
to Hooke
Hi, there is no error message just that the GUI doesnt start!

Many thanks

Kat

unread,
Jul 14, 2010, 6:05:17 AM7/14/10
to Hooke
Hi,
Do you know if there is anyone I can contact about the GUI?

Many thanks

Kat

unread,
Jul 10, 2010, 6:09:56 AM7/10/10
to Hooke
There is no error message just that the CLI runs in place of the GUI.

m.s.

unread,
Jul 21, 2010, 7:52:08 AM7/21/10
to Hooke
Kat,
Sorry for my delay.

On Jul 14, 11:05 am, Kat <kat.blo...@gmail.com> wrote:
> Hi,
> Do you know if there is anyone I can contact about the GUI?

You should contact rschmidt [at] alcor.concordia.ca , probably. That
the GUI doesn't start seems odd. Are you sure to have downloaded the
right version?

Kathryn Blount

unread,
Jul 21, 2010, 1:32:54 PM7/21/10
to hookes...@googlegroups.com
Sorry didn't see the message in the group so wasnt sure it had gone through. Thanks for the email address. I believe I have downloaded the correct version it is the latest 213 version. However, I have also tried the previous version available from the download section of the hooke website.

Many thanks

Kat

--
You received this message because you are subscribed to the Google Groups "Hooke" group.
To post to this group, send email to hookes...@googlegroups.com.
To unsubscribe from this group, send email to hookesoftwar...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hookesoftware?hl=en.


m.s.

unread,
Jul 21, 2010, 1:46:50 PM7/21/10
to Hooke
Uuuh, now I understand the problem.

As I suspected, you actually just downloaded the command line version
of Hooke. What is deceptive is that in the HookeGUI page, it is not
indicated that you actually have to use SVN to download the latest
development version (*not* the .zips in "Download"), and then install
the content of the "illysam" SVN branch.

Sorry for not making this clear, our fault. I will update the
documentation now.

On Jul 21, 6:32 pm, Kathryn Blount <kat.blo...@gmail.com> wrote:
> Sorry didn't see the message in the group so wasnt sure it had gone through.
> Thanks for the email address. I believe I have downloaded the correct
> version it is the latest 213 version. However, I have also tried the
> previous version available from the download section of the hooke website.
>
> Many thanks
>
> Kat
>
> > hookesoftwar...@googlegroups.com<hookesoftware%2Bunsu...@googlegroups.com>
> > .

W. Trevor King

unread,
Jul 23, 2010, 8:24:03 PM7/23/10
to hookes...@googlegroups.com
On Wed, Jul 21, 2010 at 10:46:50AM -0700, m.s. wrote:
> you actually have to use SVN to download the latest development
> version (*not* the .zips in "Download"), and then install the
> content of the "illysam" SVN branch.

If you don't have SVN, you can also download tarballs/zips/etc. from
my Mercurial repository. The tip of the illysam branch is
http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/73fc951770f5
Tarballs etc. are linked in the bar on the left.

I'd like to post my mercurial repository to the Google Code page at
some point. I haven't pushed my work back to the SVN server yet,
since Mercurial<->Subversion is awkward (i.e. no round trips unless
you keep rebasing the Mercurial repo, which kind of defeats the
purpose).

I haven't had much time in the past month, but I hope to get my merged
version of the GUI and command line up and running soon
http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/shortlog/tip

--
This email may be signed or encrypted with GPG (http://www.gnupg.org).
The GPG signature (if present) will be attached as 'signature.asc'.
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

My public key is at http://www.physics.drexel.edu/~wking/pubkey.txt

Kat

unread,
Aug 9, 2010, 10:37:13 AM8/9/10
to Hooke
Hi

Sorry to bother you again.
I don't have SVN so i downloaded the GUI version from the mercurial
repository in Zip format as suggested. I have tried to run hooke and
recieved the following error message:

C:\hooke.py
Tracback <most recent call last>:
File "C:\hooke\hooke.py" , line 1394, in <module>
app = Hooke<redirect=redirect>
File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
line 7978
, in _init_
self._BootstrapApp<>
File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
line 7552
, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs>
File "C:\hooke\hooke.py", line 143, in OnInit
__import__<plugin_name>
File "C:\hooke\plugins\fit.py", line 24, in <module>
import scipy.stats
File C:\Python26\lib\site-packages\scipy\stats\__init__.py, line 7, in
<module>
from stats import *
File "C:\Python26\lib\site-packages\scipy\stats\stats.py", line 203,
in <module>
from morestats import find_repeats #is only reference to scipy.stats
File "C:\Python26\lib\site-packages\scipy\stats\morestats.py", line 7,
in <module>
import distributions
File "C:\ Python26\lib\site-packages\scipy\stats\distributions.py",
line 27, in <module>
import vonmises_cython
File "numpy.pxd".line 30, in scipy.stats.vonmises.cython <scipy\stats
\vonmises_cython.c:2939>
ValueError: numpy.dtype does not appear to be in the correct type
object

I am attempting to run hooke using windows xp
Python 2.6.4
wxpython 2.8.10.1
wxPropertyGrid 1.4.10
matplotlib 0.99.1
scipy 0.7.1
configobj 4.6.0
and i have tried numpy 1.3.0, 1.4.1 and 1.5.1 as 1.4.0 was pulled.

Any suggestions

Many thanks

Kathryn Blount

W. Trevor King

unread,
Aug 10, 2010, 1:56:59 PM8/10/10
to hookes...@googlegroups.com
On Mon, Aug 09, 2010 at 07:37:13AM -0700, Kat wrote:
> C:\hooke.py
> Tracback <most recent call last>:
> ...

> File "C:\hooke\plugins\fit.py", line 24, in <module>
> import scipy.stats
> ...

This doesn't look like a Hooke problem. What happens if you try to
import scipy stats without Hooke:
python -c 'import scipy.stats'
You can check your scipy installation by running its test suite
python -c 'import scipy; scipy.test()'

> scipy 0.7.1


> and i have tried numpy 1.3.0, 1.4.1 and 1.5.1 as 1.4.0 was pulled.

From its INSTALL.txt, scipy 0.7.1 only reqires numpy >= 1.2.0, so all
of those numpy versions should be OK, but perhaps changes in numpy
are breaking compatibility. You could try upgrading scipy
http://sourceforge.net/projects/scipy/files/
or downgrading numpy
http://sourceforge.net/projects/numpy/files/
to see if that helps. For one-stop shopping, the Enthought Python
Distribution 6.2
http://www.enthought.com/products/epdlibraries.php
matches scipy 0.8.0.dev6485 with numpy 1.4.0.

Kathryn Blount

unread,
Aug 11, 2010, 10:14:17 AM8/11/10
to hookes...@googlegroups.com


Thank you I appear to have managed to get compatilble versions of Scipy and Numpy installed from the Enthought Python Distribution 6.2 that you recomended. However I seem to have found another problem that appears to completely hooke related.
On trying to run hooke I got the following error message:



C:\hooke>python hooke.py

Traceback (most recent call last):

  File "hooke.py", line 1394, in <module>

    app = Hooke(redirect=redirect)

  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7978

, in __init__

    self._BootstrapApp()

  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7552

, in _BootstrapApp

    return _core_.PyApp__BootstrapApp(*args, **kwargs)

  File "hooke.py", line 153, in OnInit

    frame = make_command_class(*plugin_objects)(parent=None, id=wx.ID_ANY, title

='Hooke', pos=window_position, size=window_size)

  File "hooke.py", line 304, in __init__

    self.CreateMenuBar()

  File "hooke.py", line 585, in CreateMenuBar

    self.UpdatePerspectivesMenu()

  File "hooke.py", line 1263, in UpdatePerspectivesMenu

    self._SavePerspectiveToFile('Default', perspective)

  File "hooke.py", line 419, in _SavePerspectiveToFile

    perspectivesFile = open(filename, 'w')

IOError: [Errno 2] No such file or directory: 'C:\\hooke\\perspectives\\Default

.txt'


Many thanks




W. Trevor King

unread,
Aug 11, 2010, 2:42:15 PM8/11/10
to hookes...@googlegroups.com
On Wed, Aug 11, 2010 at 03:14:17PM +0100, Kathryn Blount wrote:
> C:\hooke>python hooke.py
>
> Traceback (most recent call last):
> ...

> File "hooke.py", line 419, in _SavePerspectiveToFile
> perspectivesFile = open(filename, 'w')
> IOError: [Errno 2] No such file or directory:
> 'C:\\hooke\\perspectives\\Default.txt'

That does indeed look like a Hooke error. Hooke is trying to save the
default perspective, but the directory it wants to save into doesn't
exist. Actually, it's something a Mercurial-vs-SVN issue, since
Mercurial doesn't track the empty directory that exists in the SVN
repo:
http://code.google.com/p/hooke/source/browse/#svn/branches/illysam/perspectives

As a quick hack to get that version of Hooke working, you should just
create the missing directory by hand
$ mkdir C:\hooke\perspectives

The ideal workaround would be to automatically create the directory if
it is missing (patch attached), but I don't really see the point of
committing a fix to the illysam branch because
1) the fix no longer applies to my wtk branch
http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/914891a4c898#l1.103
2) Applying the fix in my Mercurial repository will make it difficult
for me to track future changes in the SVN version of the illysam
branch.
Of course, if people feel like SVN development of the illysam branch
is dead (bumps Massimo on SVN->Mercurial transition ;), point 2
doesn't apply, and I'll commit the fix.

As an alternative on the user side, you could switch to my wtk branch
instead of the illysam branch ;). amantedpaz has been helping me work
out a few Windows and Mercurial issues
http://code.google.com/p/hooke/issues/detail?id=40
but development is still proceeding rapidly, so it's not as stable as
illysam.

Cheers,
Trevor

W. Trevor King

unread,
Aug 11, 2010, 2:53:45 PM8/11/10
to hookes...@googlegroups.com
On Wed, Aug 11, 2010 at 02:42:15PM -0400, W. Trevor King wrote:
> The ideal workaround would be to automatically create the directory if
> it is missing (patch attached)...

Oops, here's the patch.

missing-perspective-dir.patch
Reply all
Reply to author
Forward
0 new messages