Repository navigation
Fix install on cloudshell - #20
Conversation
|
@rgardler, |
|
This should fix #19 |
|
@rgardler How can I remove all traces of simdem and try new installation? |
|
If I run main.py directly, I get this: |
|
Thanks for testing. Can you try again, I think I resolved the failed symlink issue now. Note, the new install script creates a Python Virtual environment, this needs to be activated before you can run Simdem. I've updated the readme to reflect this but the short version is to run |
|
I don't know what I'm doing wrong: |
|
It doesn't look like you are doing anything wrong, it's just that you are the first person I know of trying this install in cloudshell step. You're finding the bugs (I probably did some manual step I forgot about). Now you are doing the virtualenv you should be able to run using Simdem should have been installed into You should also have Can you please see which one of those conditions is not satisfied (my guess would be the last one) |
|
$PATH inside of a virtualenv is: |
|
Looks like your path is not setup as needed. Please run If this works I'll update this PR to make this setting permanent. (Thanks for persevering with me on this) |
|
after modifying $PATH and starting a virtualenv, it finally works: |
|
I've created a directory simdemos and one .md file with a couple of commands and try to run it with: What happens is that command |
|
Yay for getting you up and running - and thanks for your patience. I'll update this PR to make that permanent and merge it soon. Regarding your second comment, that's expected as you are running in "demo" mode. Hit a key and it should "type" the first command in your .md file. See https://github.com/Azure/simdem#demo-mode If you want to see descriptive text and instructions run in "tutorial" mode by replacing "demo" with tutorial. Other modes are available, see the readme linked above. |
|
Those instructions are for running commands in a container and I get an error that docker deamon is not started. |
|
Sorry, yes, I should update those commands to reflect CLI use but the modes they describe are the same. To run your script in tutorial mode…
`simdem -p cloudrive/simdemos tutorial`
Demo mode:
`simdem -p cloudrive/simdemos demo`
Learn mode:
`simdem -p cloudrive/simdemos learn`
And so on…
From: Aleksandar Nikolić [mailto:notifications@github.com]
Sent: Tuesday, August 15, 2017 4:02 PM
To: Azure/simdem <simdem@noreply.github.com>
Cc: Ross Gardler <Ross.Gardler@microsoft.com>; Mention <mention@noreply.github.com>
Subject: Re: [Azure/simdem] Fix install on cloudshell (#20)
Those instructions are for running commands in a container and I get an error that docker deamon is not started.
What is the right command in Cloud Shell to start a demo (or tutorial) if I have a README.md file with a couple of commands in the ~/clouddrive/simdemos directory?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fsimdem%2Fpull%2F20%23issuecomment-322612574&data=02%7C01%7Cross.gardler%40microsoft.com%7C58f1a824b99e409dbda008d4e431a76f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636384349321455330&sdata=QrrSCBeLpXXakIl9rj2qIjQECTQKZPA0cQiAoQZCy20%3D&reserved=0>, or mute the thread<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAPRgMp9qWAijoB8yA3o8RbJHN2cyntjks5sYiNugaJpZM4O14du&data=02%7C01%7Cross.gardler%40microsoft.com%7C58f1a824b99e409dbda008d4e431a76f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636384349321455330&sdata=ykhY0LvIYnsAdemYqkFLco4iGTC2%2FidHcQ%2FYVaMtpVg%3D&reserved=0>.
|
|
I'm making some progress. :) Commands in my README.md weren't correctly written. I've used an inline single backticks instead of three backticks in new lines. Now I have a new issue. My |
|
Can you open up a new issue for this. Can you test that the command you want to run works outside of SimDem. |
|
Yes, a command works outside of simdem. I'll open a new issue. |
…version that works in CloudShell and updated install instructions. This is a temporary measure to unblock users in CloudShell.
need to include the LICENSE file, otherwise pypi installs are broken …
Reinstate check for running in Docker container and don't use sudo if we are
Use virtualenv
Hopefully this addresses #19, but since my own cloudshell environment is set up correctly already it is hard to test. Would appreciate some testing on this PR