Comments (7)
Kevin opened an Anaconda Prompt and installed with: “conda install -c asteroid-institute adam”
No problems
Kevin was not able to execute “adamctl login”. 'adamctl' not recognized.
We had to find the adamctl file location in order to execute the command: navigate to C:\Users\journ\Anaconda3\pkgs\adam-0.0.0.dev403+42ec1a2-py_0\python-scripts
Make sure you are using a Google account.
Initially, Kevin wanted to use but could not retrieve a token.
John created a workspace ID for this account but it will not be used.
Switched email to and was able to retrieve a token.
Carise gave me his workspace ID in our Slack channel.
Copy and Paste the token (user will not see the token in the prompt window)
The token was not accepted.
We found that .config/adam/config was not populated. Carise gave Kevin the correct format and information to paste and save into config.
envs:
prod:
token: …
url: https://pro-equinox-162418.appspot.com/_ah/api/adam/v1
workspace: …
no {} around info
no file extension when saved
/.config/adam/config
python adamctl config (to test if it worked)
Execute this command: adamctl config envs.prod.workspace "uuid-received-from-carise"
Worked!
Execute “jupyter notebook” from C:/User/Journ/Adam_home.
Navigate to ‘demos’ folder and execute ‘single_run_demo.ipynb’
Worked!
from adam_home.
I'm not sure why adamctl was putting an empty json in the config file. Couldn't reproduce that issue unfortunately.
The issue about not being able to find adamctl is a real one. I think this issue might be talking about the problem, but it looks like for now, we'd have to do the workaround you did (finding the adamctl script in the installed adam package and calling it via python).
The copy-paste issue is probably an artifact of the underlying Windows command prompt. Ctrl-V by default won't copy stuff into a password-like prompt, which the Token prompt is. To get around that, set up copy-paste as per these instructions: https://stackoverflow.com/questions/52154271/how-do-i-copy-paste-in-anaconda-prompt
Then using crl-shift-v should allow pasting of the token.
Otherwise, a shorter way to get around these issues is to create file named "config" (no extension) in the user's home directory (usually: C:\Users[username]), in the path .config\adam.
The config file should contain some yaml, similar to the following:
envs:
some_environment_name:
token: YOUR_TOKEN_HERE
url: ADAM_SERVER_URL
workspace: YOUR_WORKSPACE_ID
from adam_home.
Interesting -- we never decided if we're supporting native windows as a platform (I assumed we weren't). If we are, let's upgrade the CI to test on Windows as well. Supporting it will cause special-casing of code that depends on well-known locations in the file system (e.g. storing of config files and similar). Not sure about other differences, it's been awhile since I worked on Win.
from adam_home.
Before we start writing code to address the Windows setup, I am wondering: would it be fine for us to just require that people using Windows set up WSL in order to use ADAM from Jupyter?
from adam_home.
I'm not familiar with WSL. How do tokens get passed to ADAM from WSL? Do will still need the config?
from adam_home.
WSL is a compatibility layer for running Linux binaries natively in Windows 10, so in theory, you would be able to run the adamctl setup instructions from the README directly without special workarounds (which we had to do for Powershell).
The token would still be pasted into the command prompt, and the config should be automatically created in whatever the home directory is under WSL.
from adam_home.
Upate:
- The issue with the {} and having to manually create a config file can be fixed by providing a default dict, {'envs': {}} when the config file path cannot be found using.
- adamctl CLI utility not being directly accessible in Powershell. The conda recipe needs to include the console script entry point.
See #134
from adam_home.
Related Issues (20)
- Fix test or API: integration_tests/anonymous_test.py HOT 1
- Create a notebook using 2018VP1
- Make it clear from the batch module .run() method whether the run completes or not
- Convert Monte Carlo Examples down to one notebook
- Containerization using Docker HOT 9
- Expose enableLogCloseApproaches setting in the ADAM python
- Investigate: Is there a way to clean up Monte Carlo batch jobs?
- Fix and re-enable integration tests
- Update documentation and provide documentation on how to generate new docs
- Move tests outside of the adam package
- Windows: ConfigManager.set_default_env() will fail when renaming the config
- If adamctl login has more than just the `login` argument, require both the profile name and server url
- Divide-by-zero Error HOT 1
- Investigate: Cartesian state vector + covariance triggers hypercube batch run HOT 1
- The close approach distance in the example notebook is not clear HOT 1
- Invalid SSL Certificate on Domain Link in README.md
- Hypercube: should all parts of batch have same ephem after running the job? HOT 1
- Integration tests take a long time to run HOT 2
- Fix test: integration_tests/reference_frame_test.py:test_sun_ememe
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adam_home.