opencobra / memote

memote – the genome-scale metabolic model test suite
https://memote.readthedocs.io/
Apache License 2.0
125 stars 26 forks source link

memote online command error #637

Open hvdinh16 opened 5 years ago

hvdinh16 commented 5 years ago

Hi,

I have tried using memote to create an online repository. (memote new, then memote online). However, I encountered this following error below.

In addition, how can I add an existing model (e.g., is there a command like memote update /path/to/model)?

Logged in to user 'hvdinh16' created on '2015-11-09 23:33:08'.
Creating token.
Authorizing with TravisCI.
<localpython_path>/lib/python2.7/site-packages/travispy/entities/_entity.py:196 UserWarning: Unknown User attribute avatar_url
<localpython_path>/lib/python2.7/site-packages/travispy/entities/_entity.py:196 UserWarning: Unknown User attribute allow_migration
<localpython_path>/lib/python2.7/site-packages/travispy/entities/_entity.py:196 UserWarning: Unknown User attribute first_logged_in_at
Synchronizing repositories.
critical: Repository could not be found. Is it on GitHub already and spelled correctly?

Thank you, Hoang

System Information ================== OS Linux OS-release 4.4.0-143-generic Python 2.7.14 Package Versions ================ Jinja2 2.10 click 6.7 click-configfile 0.2.3 click-log 0.3.2 cobra 0.15.1 cookiecutter 1.6.0 depinfo 1.4.0 future 0.16.0 gitpython 2.1.11 goodtables 1.0.0 importlib_resources 1.0.2 lxml 4.2.5 memote 0.9.6 numpydoc 0.8.0 pandas 0.23.4 pbr 4.3.0 pip 18.0 pygithub 1.43.3 pylru 1.1.0 pytest 4.0.0 python-libsbml 5.17.0 requests 2.19.1 ruamel.yaml 0.15.71 setuptools 40.4.3 six 1.11.0 sqlalchemy 1.2.14 sympy 1.3 travis-encrypt 1.1.2 travispy 0.3.5 wheel 0.32.1
Midnighter commented 5 years ago

Hi Hoang,

Repairing memote online is part of #616 which will hopefully go in soon.

In addition, how can I add an existing model (e.g., is there a command like memote update /path/to/model)?

When you run memote new, you should have been asked for a path to a model file which would allow you to create a repo for an existing model.

hvdinh16 commented 5 years ago

Hi @Midnighter ,

Thanks for letting me know. I am able to load a model when using memote new now. I wonder what is the different between when memote asking for "model [default]" and "model_path". I put in file name to "model" and "model_path" was generated by + input to "model".

Also, when I run memote online, an online repository is created but no files are uploaded. Can I manually git push memote created local repository using git add, commit, and push? What's the difference between that and memote online command?

Midnighter commented 5 years ago

You can read a little bit more about the whole workflow in the docs. I concede that they could use a bit more detailed explanations. Basically, model_path shows where to find an existing model file so that it can be copied into the repository whereas model is the filename that you want to track. Basically, memote new performs a copy from model_path to model. Additionally, the value for model is written to the memote.ini.

If the memote online command worked, it would push everything to the remote repository at the end. The part that is missing inbetween at the moment (and why the command is failing), is to set up a link between GitHub and Travis CI for the automated test pipeline. So yes, you can use git add, commit, and push but you would also need to link your repository with Travis CI if you want the test suite to run after each commit.