Source Installation error

40 views
Skip to first unread message

Gatehouse, Alfie B

unread,
Mar 15, 2021, 5:48:45 AM3/15/21
to mos...@nist.gov
Hi whoever it may concern, 

My name is Alfie Gatehouse a PhD student of Joshua Edel and Alex Ivanov at Imperial College, London.

I am trying to install MOSAIC from source to my Mac, running OS Catalina. However, I keep getting the following error.:


(base) Alfie-Gatehouse-Mac:MOSAIC alfiegatehouse$ pip install mosaic-nist
Collecting mosaic-nist
  Using cached mosaic-nist-1.3.5.tar.gz (7.0 MB)
    ERROR: Command errored out with exit status 1:
     command: /opt/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/gj/4v_4z1b13gvcl54_zmxy14fm0000gn/T/pip-install-1qwt1bn5/mosaic-nist/setup.py'"'"'; __file__='"'"'/private/var/folders/gj/4v_4z1b13gvcl54_zmxy14fm0000gn/T/pip-install-1qwt1bn5/mosaic-nist/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 /private/var/folders/gj/4v_4z1b13gvcl54_zmxy14fm0000gn/T/pip-pip-egg-info-rt1frtoj
         cwd: /private/var/folders/gj/4v_4z1b13gvcl54_zmxy14fm0000gn/T/pip-install-1qwt1bn5/mosaic-nist/
    Complete output (12 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/gj/4v_4z1b13gvcl54_zmxy14fm0000gn/T/pip-install-1qwt1bn5/mosaic-nist/setup.py", line 2, in <module>
        import mosaic
      File "/private/var/folders/gj/4v_4z1b13gvcl54_zmxy14fm0000gn/T/pip-install-1qwt1bn5/mosaic-nist/mosaic/__init__.py", line 1, in <module>
        from ._version import __version__
      File "/private/var/folders/gj/4v_4z1b13gvcl54_zmxy14fm0000gn/T/pip-install-1qwt1bn5/mosaic-nist/mosaic/_version.py", line 2, in <module>
        from mosaic.utilities.resource_path import resource_path
      File "/private/var/folders/gj/4v_4z1b13gvcl54_zmxy14fm0000gn/T/pip-install-1qwt1bn5/mosaic-nist/mosaic/utilities/resource_path.py", line 83
        print resource_path('.settings')
              ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


I have tried using previous versions but I get the same error. 

Any help would be much appreciated.

Best, 

Alfie

Balijepalli, Arvind K. (Fed)

unread,
Mar 15, 2021, 9:34:53 AM3/15/21
to mosaic

Hi Alfie,

 

The error appears to be related to using Python 3 with an older version of MOSAIC that was built with Python 2. I will have to check if the pip repository was updated for ver. 2. I would suggest installing from the Git repository instead. Instructions are here: https://pages.nist.gov/mosaic//html/doc/InstallOSX.html#installosx. Please feel free to email me if you still run into problems.

 

Thanks,

Arvind

--
View the MOSAIC documentation at https://pages.nist.gov/mosaic
---
You received this message because you are subscribed to the Google Groups "mosaic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mosaic+un...@list.nist.gov.
To view this discussion on the web visit https://groups.google.com/a/list.nist.gov/d/msgid/mosaic/136E81E3-3D3C-42F1-87EE-873EC0C39B5E%40ic.ac.uk.

Alfie Gatehouse

unread,
Mar 15, 2021, 11:37:41 AM3/15/21
to mos...@list.nist.gov
Hi Arvind, 

Thanks for getting back so quick.

I tried what you suggested and I am now attempting to install via the source downloaded from GitHub, which seems to have fixed the previous error However, now an error is returned saying the module ‘uncertainties’ cannot be found:

(base) Alfie-Gatehouse-Mac:~ alfiegatehouse$ cd ~/projects/MOSAIC
(base) Alfie-Gatehouse-Mac:MOSAIC alfiegatehouse$ python setup.py mosaic_deps
Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    import mosaic
  File "/Users/alfiegatehouse/projects/MOSAIC/mosaic/__init__.py", line 14, in <module>
    import mosaic.partition.metaEventPartition
  File "/Users/alfiegatehouse/projects/MOSAIC/mosaic/partition/metaEventPartition.py", line 42, in <module>
    import uncertainties
ModuleNotFoundError: No module named 'uncertainties'
(base) Alfie-Gatehouse-Mac:MOSAIC alfiegatehouse$ 

Again, your help is much appreciated.

Alfie

Reply all
Reply to author
Forward
0 new messages