How to install 6S on linux or mac os?

58 views
Skip to first unread message

Mengmeng Yang

unread,
Apr 24, 2021, 4:51:05 AM4/24/21
to Py6S
Dear Robin,

Thank you very much for providing the Py6S. I am a beginner of Py6S and 6S and I am trying to install 6S on ubuntu with a virtualbox on my macbook. 
However, according to the "Py6S Documentation", it seems that the UNIX tools (windows only) are required to install 6S. So I wonder if there is any way to install 6S on ubuntu or mac os?

Thank you in advance.

Kind regards,
Mengmeng.

Robin Wilson

unread,
Apr 24, 2021, 5:48:11 AM4/24/21
to py...@googlegroups.com
Hi,

The recommended way to install 6S on any operating system is to use Conda - there are instructions at https://py6s.readthedocs.io/en/latest/installation.html that should get you going on any operating system.

Best regards,

Robin
--
You received this message because you are subscribed to the Google Groups "Py6S" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py6s+uns...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/py6s/201a88cb-51ee-443e-9d1a-afaf702b4f1cn%40googlegroups.com.

Mengmeng Yang

unread,
Apr 24, 2021, 6:39:49 AM4/24/21
to Py6S
Dear Robin,

Thank you for your quick reply. I got it.

Kind regards,
Mengmeng.

Mengmeng Yang

unread,
Apr 24, 2021, 8:06:16 AM4/24/21
to Py6S
Hi Robin,

When I ran the full test suite to verify that both 6S and Py6S have been installed correctly, I got an error bellow:
Error.png

Could you tell me how to fix it? Thank you in advance.

Kind regards,
Mengmeng.
在2021年4月24日星期六 UTC+9 下午6:48:11<ro...@rtwilson.com> 写道:

Robin Wilson

unread,
Apr 24, 2021, 8:14:33 AM4/24/21
to py...@googlegroups.com
Hi,

That's strange - I don't know why that error is occurring, the code it is running is a built-in Python function.

You can remove the print statement from that line - it's just for debugging purposes - so the line should just be `import Py6S`.

Robin
525ec75e-e128-46c9-b4e4-fa4727346305.png

Mengmeng Yang

unread,
Apr 24, 2021, 9:03:14 AM4/24/21
to Py6S
Hi Robin,

Thank you for your reply. I ran 'import Py6S' without the print statement from that line and got no error. 

Then I tried to run py.test in the <PATH_TO_PY6S_MODULE>. I suppose this path in my case is /home/mmy/anaconda3/envs/py6s-env/bin/, but I did not find the py.test file.
So I wonder where is the py.test?

Thank you in advance.
Kind regards,
Mengmeng.

Mengmeng Yang

unread,
Apr 24, 2021, 11:28:57 PM4/24/21
to Py6S
Hi Robin,

I found two py.test files in these two paths: ~/anaconda3/pkgs/pytest-6.1.1-py38_0/bin  and  ~/anaconda3/bin
I am not sure which one I should run, but I can plot the default graph of 6S, which suggests that I have installed 6S and Py6S correctly.

Sorry for my trivial questions, but I appreciate your replies a lot.

Kind regards,
Mengmeng.
在2021年4月24日星期六 UTC+9 下午9:14:33<ro...@rtwilson.com> 写道:

Robin Wilson

unread,
Apr 25, 2021, 2:46:09 PM4/25/21
to py...@googlegroups.com
Hi,

Don't worry about running pytest - that's mostly for developers or people who need to run the full test suite for some reason.

If running `SixS.test()` works, and plotting a graph works, then it is all installed fine.

Thanks,

Robin

Mengmeng Yang

unread,
Apr 25, 2021, 7:02:45 PM4/25/21
to Py6S
I see, thanks.

Kind regards,
Mengmeng.

Daniel Clewley

unread,
Apr 26, 2021, 4:05:34 AM4/26/21
to py...@googlegroups.com

Hi Robin,

 

I’m not sure if it is a Windows only function or if it was removed at some stage but I also have an error with:

 

os.path.dirpath

 

on my mac and Linux. Using:

 

os.path.dirname

 

instead works.

 

Thanks,

 

Dan

 

From: py...@googlegroups.com <py...@googlegroups.com> on behalf of Robin Wilson <ro...@rtwilson.com>
Date: Saturday, 24 April 2021 at 13:14
To: py...@googlegroups.com <py...@googlegroups.com>
Subject: Re: [Py6S] How to install 6S on linux or mac os?

Hi,

 

That's strange - I don't know why that error is occurring, the code it is running is a built-in Python function.

 

You can remove the print statement from that line - it's just for debugging purposes - so the line should just be `import Py6S`.

 

Robin

 

 

 

On 24 April 2021 at 13:06:20, Mengmeng Yang (mengmen...@gmail.com) wrote:

Hi Robin,

 

When I ran the full test suite to verify that both 6S and Py6S have been installed correctly, I got an error bellow:

Reply all
Reply to author
Forward
0 new messages