Unable to install Opal

37 views
Skip to first unread message

triton62674

unread,
Jan 7, 2018, 12:26:30 PM1/7/18
to OHC-OPAL
Hi, I'm new to using django and I've run into a problem when installing Opal.

I've used "pip install opal" but I can't use "opal startnewproject" or "opal --version" and the only response I get back is that "opal" isn't an operation or batch file etc.

Any help would be greatly appreciated!

Stephen Allsopp

unread,
Jan 7, 2018, 1:23:55 PM1/7/18
to triton62674, OHC-OPAL
Easy questions first.

If you type "python -V" (capital V) at the command prompt, what do you get? It's possible that your default python isn't the same as the version that pip is assuming...

Stephen

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

David Miller

unread,
Jan 7, 2018, 1:24:44 PM1/7/18
to triton62674, OHC-OPAL
Hi there,

Sounds like either the pip install step is failing, or it's putting the opal script somewhere that's not on your path....

Could you pastebin the output of the following command?

pip freeze

Best

David

On Sun, 7 Jan 2018 at 17:26 triton62674 <ryan....@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "OHC-OPAL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ohc-opal+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
--------------------
David Miller
Open Health Care

Stephen Allsopp

unread,
Jan 7, 2018, 1:24:47 PM1/7/18
to triton62674, OHC-OPAL
Probably also worth doing "pip -V" too, and comparing the results...

triton62674

unread,
Jan 8, 2018, 12:00:26 PM1/8/18
to OHC-OPAL
Sure, https://pastebin.com/1m3nDfXa

Thanks for the prompt reply.

triton62674

unread,
Jan 8, 2018, 12:01:03 PM1/8/18
to OHC-OPAL

David Miller

unread,
Jan 8, 2018, 1:20:52 PM1/8/18
to triton62674, OHC-OPAL
Hi there,

So a couple of things:

The literal explanation of the error is that although Opal is installed (you can tell from the output of pip freeze) the opal script is not on your %PATH%.

Although you can presumably manage this yourself (I'm not particularly expert working on Windows myself so couldn't tell you) I would suspect that using Virtualenv - a tool for creating isolated python programming environments would manage it for you.

More broadly, Opal is currently known not to work on Windows - we've never had a Windows maintainer and don't do development or deployment there ourselves.

However - we do anticipate changing this very soon!

We're expecting to start work this week to fix the known Windows-only bugs and then set up CI so that we know that tests pass as a minimum.

The work on that will probably be updated in this ticket if you want to stay in the loop.

Until that's fixed, your best bet will be to find a way to work with Opal from a *nix environment.

Hope that helps !

Best

David

David Miller

unread,
Apr 8, 2018, 3:42:53 AM4/8/18
to OHC-OPAL
Quick bump to this thread: 

The recent 0.10.0 Opal release (More details: http://openhealthcare.org.uk/blog/2018/04/07/opal-10/) should now support Windows so if you've struggled to install it there please do test it out !
To unsubscribe from this group and stop receiving emails from it, send an email to ohc-opal+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages