-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execute s3a on Mac computer #20
Comments
Hi Edson, Let me make some assumptions, and please verify with the Mac users that these are correct:
If any of this is incorrect let me know. Now to a little background on how python manages the installation of packages. Pip uses the "instructions" contained in the setup.py file that is part of the package. The s3-extend package takes advantage of a feature called "entry_points". An entry_point allows a python script to be executed as an executable (a .exe in Windows terms). It places the .exe or executable file on the user's standard executable path. So clearly, at a minimum, the s3a executable was not placed in the executable path. Now on to some possible diagnostics.
On linux, which should be similar to macOS, this returns:
This will prove that the package was actually installed properly and we can move on to the next step. To do this, a user would enter:
Here is the output on Linux, and should be similar to the Mac:
The user can type "n" to abort the uninstall. If you look at the output, you will see the path of the executables, and in the case of s3a for the Linux installation, the full path is "/usr/local/bin/s3a". So if execute the following command in the terminal:
I should see /usr/local/bin appear within the path and indeed it does:
Most likely the path that s3-extend is using is not part of the user's path and the path environment variable will need to have the path amended to include the path s3-extend is using. Normally this is done by modifying the path variable in the user's .bashrc file. I think this true in macOS also, but I am not sure. If you need some help with this, let me know. Please let me know if any of this helps, or if you need further explanation. Stay safe and stay well. |
BTW, the user's guide describes the installation procedure. Hopefully, using Google translate, non-English speakers can get a meaningful translation. The documentation talks about Python 3.7 but the latest version of Python 3 should be used. There is no need to go back to Python 3.7. |
Hi Alan, hope you and your family are healthy and safe as well. I am going to contact them. Actually, they attended a virtual workshop (for Scratchmonth) when my wife and I presented S3onegpio extension. Thank you very much for these hints. As soon as I have an answer I get back to you. Thanks and keep safe. |
I have been reading about the situation in Brazil over the past several weeks. I wish I had words of wisdom but don't. Just stay safe and well. I found an article on updating the path for macOS. It explains how to modify the path for a single user or for all users. |
Hi Alan, hope everything is doing well. I had a remote check in their computer and I found the following: Today after some days of 'rebooting' :o) came up with a different message and by this I can assume that the Path is not the current issue - Is it make sense?
In the end I just follow your steps and here is the output:
Name: s3-extend
Password:
/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin I also asked to run the following command: Arduino IDE is also OK to upload express. Thanks! |
Thanks. As you mentioned, the path is not the issue. Looking at the error, it appears that the mac is having problems dealing with a library that I use in s3a that allows me to see what processes are currently running, however, that might not be the actual cause of the error. If you could scroll down to the troubleshooting section of this page of the user's guide and follow the instructions to launch the individual components, that would tell me if the issue is in the s3a script or in one of the components it launches. The purpose of the s3a script is to make starting the application easier for the user. It does all the steps contained in the troubleshooting section. Please let me know if any of the steps failed and if there was an exception stack trace in the console. Please provide the exception trace. Also, did the users type:
or
when they installed the package? Thanks, |
Hi Alan,
About the individual steps, described on troubleshooting section, I did it in the first day. This time I forgot. Everything was installed on May, 26th. I will check it and back to you as soon as I have the answer. Thanks, Edson |
Hi Alan,
Backplane IP address: 192.168.0.10
Pymata Express Version 1.15 Opening all potential serial ports... Waiting 4 seconds(arduino_wait) for Arduino devices to reset... Searching for an Arduino configured with an arduino_instance = 1 Arduino found and connected to /dev/cu.usbmodemFD121 Arduino Firmware ID: 2.5 FirmataExpress.ino Traceback (most recent call last):
Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Let me know if you need more data. Edson |
Hi Edson,
or you might need:
You should the IP addresses assigned to the computer in use. Please check to see that it is the same IP address is the same one being reported when the backplane starts. Also, the code requires access to 2 IP ports 43124 and 43125. Is it possible that the router they ar using has those ports blocked? Thanks. |
Hi Alan, I send them a message to created 3 different Terminal, however they did not pay attention at this point and the previous test was made in closing the windows - so need to be discarded. They send out a new test considering let the previous window opened and we got the following results. Apparently worked - I have to contact them to see what they are doing as typing s3a is not working. Last test was the ifconfig - this looks greek to me ;o)
Backplane IP address: 192.168.0.10
WebSocket Gateway using Back Plane IP address: 192.168.0.10 WebSocket using: 192.168.0.10:9000
Copyright (c) 2018-2020 Alan Yorinks All rights reserved. Searching for an Arduino configured with an arduino_instance = 1
send by mail... Thanks! Edson |
The ifconfig command is similar to the ipconfig command on windows. It shows IP addresses (and other things) that the computer is using for networking. So if bringing up the 3 windows manually worked, and s3a failed, based on the exception reported, it appears that the Mac is having problems with a package called psutil that is used by s3a. Looking at the documentation for this package they may need to install a Mac development package called Xcode. Once that is installed, they can then type:
Hopefully, that will fix the problem. |
Hi Alan, unfortunatelly did not work. But they are happy so far with the option to individually open 3 terminal window and execute. Curiously this message is the same I have reported in my oher issue when I use the Python 32bit version on 64bit system.
|
Here is a shell script that might work. It works on Linux, so perhaps will work on the Mac as well. Hitting Control-C should shut everything down.
I am not trying to create more work for you, so please ignore the following if you like. The following psutil Python script, may help to understand the problem that macOS is having with psutil. It appears from reading things on the internet that macOS has shut down some user level permissions
|
Thanks again for the shell script and also for the psutil program. Thanks! |
Hi Edson. I hope you and the family are well. I am going to close this issue. If we need to reopen it, just place a comment here and we can. |
Everything is fine with my family, hope same with yours.
Sorry for that.
I forgot to be back to you, please to close it.
Thanks as usual
Edson
Em dom., 5 de jul. de 2020 às 11:20, Alan Yorinks <notifications@github.com>
escreveu:
… Hi Edson. I hope you and the family are well. I am going to close this
issue. If we need to reopen it, just place a comment here and we can.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKUSNXKDE2UWS2WHVIXBEYDR2CD2XANCNFSM4NLRQ63A>
.
|
Hi Alan, I just tried to support a couple of teachers in how to install s3-extend in a Mac computer.
Firstly it was my first contact (remote) in a Mac so far and they are not familiar with this kind of thing.
They just share their screen with me and I guide them (as they don´t speak english).
So I followed all the steps but in the end the s3a did not work.
As I realized that Mac has 2 Python version I tried also Python3 s3a and once again did not work.
Maybe is I am not considering something, so I would like and hint from your side.
Thanks!
I tried some command - maybe it helpfull to identify the issue.
Thanks!
Edson
The text was updated successfully, but these errors were encountered: