-
Notifications
You must be signed in to change notification settings - Fork 19
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
"Cannot locate s2m files on path." error #1
Comments
@champierre Could you please try starting the program with:
This should provide a path to where the files are thought to be. If you cd into that directory you should see the s2m files. Could you please let me know if the files are there or not? Below is the output on a linux box. It should be very similar for the mac.
|
@champierre An additional thought. Did you install using pip AND sudo? You can find instructions at https://mryslab.github.io/s2m/install/#installing-s2m. |
@MrYsLab I got the following error message when I ran "s2m -d true".
|
I just released v 1.06. Please try updating to this release. If you are still having issues, please look at the contents of You should see s2m.py. If you do, do you also see a scratch_files directory? If not, does the following directory exist and does it contain a scratch_files directory: Until we have things sorted out with your existing problem, you can try running things manually by following the instructions at this link: https://mryslab.github.io/s2m/usage/#manually-starting-s2m-and-scratch Please let me know what you see in the directories and if you try the manual start, does that work for you. |
After I updated to v 1.06, I still see the same error. Under /usr/local/lib/python2.7/site-packages/s2m/, both s2m.py and scratch_files exists.
I followed the manual install, but got the same error:
|
I have released version 1.07 that should now allow you to manually start s2m and scratch. Please give that a try. I would also like to understand what is going on with the path so you do not have to start manually. Could you please try starting s2m with the sudo command:
Please let me know if that works. If not, could you please running the following Python script and attach the output here.
|
Version 1.07 works fine if I do manual install. Running "sudo s2m" gives the same "Cannot locate s2m files on path." error. Here is the output that your debug script gives.
|
I am glad that it is working manually. I don't know why /usr/local/lib/python2.7/site-packages/s2m/ You could try using the -b option to see if Scratch will auto launch:
|
This may help. If you open up a command window, the type:
And then type s2m, hopefully this will make things work. Thanks. |
works, but I got another error.
To run Scratch 2 Offline Editor from terminal on Mac, you need to run:
I found that "sys.prefix" returns "/System/Library/Frameworks/Python.framework/Versions/2.7", which is different from s2m location. So, removing "if prefix in p:" line from your debug script gives the correct python path: Python path = /usr/local/lib/python2.7/site-packages/s2m |
Version 1.08 incorporates the paths you mentioned above. Could you please try installing it and let me know if s2m now successfully starts using
as the command? Thanks. |
Yeah!! Everything works perfectly.
|
Great!!!! Thanks for your patience and help. |
I think I properly followed the installation guide https://mryslab.github.io/s2m/install/.
When I started "s2m", I got "Cannot locate s2m files on path." as below.
What could it be wrong?
I use MacOS Sierra 10.12.6(16G29).
The text was updated successfully, but these errors were encountered: