OpenREM 0.10.0 installation

39 views
Skip to first unread message

Þór Hjálmar

unread,
Nov 2, 2020, 11:01:24 AM11/2/20
to ope...@googlegroups.com

Hi,

 

I am new to OpenREM so I’m just trying to follow the installation manual for OpenREM 0.10.0 but have run into a problem.  I’m using this installastion guide https://docs.openrem.org/en/0.10.0-docs/install.html  When I run the following command for pynetdicom

 
pip install https://bitbucket.org/edmcdonagh/pynetdicom/get/default.tar.gz#egg=pynetdicom-0.8.2b2
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8un_apb3/pynetdicom-0.8.2b2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8un_apb3/pynetdicom-0.8.2b2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-8un_apb3/pynetdicom-0.8.2b2/pip-egg-info
         cwd: /tmp/pip-install-8un_apb3/pynetdicom-0.8.2b2/
    Complete output (6 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-8un_apb3/pynetdicom-0.8.2b2/setup.py", line 6
        print __version__
              ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print(__version__)?
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
 

I get the following error and am unable to resolve it.  I have tryed to download the default.tar.gz file, edit the setup.py file and run pip install default.tar.gz#egg=pynetdicom-0.8.2b2 command but still get an error

 

pip install default.tar.gz

Processing ./default.tar.gz

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-879zucic/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-879zucic/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-879zucic/pip-egg-info

         cwd: /tmp/pip-req-build-879zucic/

    Complete output (5 lines):

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/usr/lib/python3.8/tokenize.py", line 392, in open

        buffer = _builtin_open(filename, 'rb')

    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-879zucic/setup.py'

    ----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

 

I have also tryed the following

root@openremserver:/home/thorhi# pip install default1.tar.gz#egg=pynetdicom-0.8.2b2

ERROR: Invalid requirement: 'default1.tar.gz#egg=pynetdicom-0.8.2b2'

Hint: = is not a valid operator. Did you mean == ?

 

root@openremserver:/home/thorhi# pip install default1.tar.gz#egg==pynetdicom-0.8.2b2

ERROR: Invalid requirement: 'default1.tar.gz#egg==pynetdicom-0.8.2b2'

 

root@openremserver:/home/thorhi# pip install default1.tar.gz#egg==pynetdicom-0.8.2b2

ERROR: Invalid requirement: 'default.tar.gz#egg==pynetdicom-0.8.2b2'

 

So now I‘m stuck.  I have no idea what I‘m doing wrong since I think I have followed the install guide line by line (almost)

 

Im trying to install on a new Ubuntu 20.04.1-LTS with python 3.8 and 2.7 installed but with python 3 as my main python software.

 

 

With regards,

Thor Hjalmar Ingolfsson

 

 

jaap....@gmail.com

unread,
Nov 2, 2020, 11:38:26 AM11/2/20
to OpenREM
Hi Thor,

an error about parentheses and print usually comes from a mismatch in python version and code. In python 2.x you can use print 'string' (with spaces), in python 3.x you need to use print('string') (with parentheses).
You need to use python 2.7 and not 3.8.

Good luck with the installation,

Jaap Groen



Op maandag 2 november 2020 om 17:01:24 UTC+1 schreef tho...@raforninn.is:

Ed McDonagh

unread,
Nov 2, 2020, 11:40:12 AM11/2/20
to Þór Hjálmar, ope...@googlegroups.com
Hi Þór, welcome to the OpenREM community.

Sorry you are having issues - I think they relate to using Python 3.

Did you follow the pre-installation instructions at docs.openrem.org/en/0.10.0-docs/install-prep.html?

Also, if you have an Ubuntu machine to use then you might find following the instructions at docs.openrem.org/en/0.10.0-docs/quick_start_linux.html better to follow.

We are working hard on getting version 1.0 ready for release - I am hoping that this release will make installation a much easier experience, as everything is wrapped up in a few Docker containers! And if you find OpenREM suits your needs, you might like to translate the interface and/or the documentation into Icelandic! See docs.openrem.org/en/latest/translations.html for details.

(And thanks Jaap - you got there first!)

Kind regards

Ed

--
You received this message because you are subscribed to the Google Groups "OpenREM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrem+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openrem/D073835D-3817-42D0-8E32-535C80995075%40hxcore.ol.

Þór Hjálmar Ingólfsson

unread,
Nov 11, 2020, 10:36:41 AM11/11/20
to OpenREM
Hi,

I decided to scrap this installation and start a new server. I have now OpneREM up and running but I do still have a problem.  That is just another story of it self.  Will post the outcome here if and when I can get this solved with all of your help.
Reply all
Reply to author
Forward
0 new messages