Skip to content
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

memote new should accept a relative path to the model #52

Closed
phantomas1234 opened this issue Mar 24, 2017 · 2 comments
Closed

memote new should accept a relative path to the model #52

phantomas1234 opened this issue Mar 24, 2017 · 2 comments

Comments

@phantomas1234
Copy link
Contributor

phantomas1234 commented Mar 24, 2017

[2] % memote new ~/Dev
We highly recommend keeping your model in a git repository. It allows you to track changes and easily collaborate with others via online platforms such as https://github.com.

full_name [Nikolaus Sonnenschein]:
email [niko.sonnenschein@gmail.com]:
github_username [phantomas1234]:
project_name [Memote model repository]: test_memote_repo
project_slug [test_memote_repo]:
project_short_description [Create a repository for a genome-scale metabolic model.]:
release_date [2017-03-24]:
year [2017]:
version [0.1.0]:
model [model.xml]: /Users/niso/Dev/cameo/tests/data/EcoliCore.xml
Traceback (most recent call last):
File "/Users/niso/anaconda3/bin/memote", line 11, in
load_entry_point('memote', 'console_scripts', 'memote')()
File "/Users/niso/anaconda3/lib/python3.5/site-packages/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/Users/niso/anaconda3/lib/python3.5/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/Users/niso/anaconda3/lib/python3.5/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/niso/anaconda3/lib/python3.5/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/niso/anaconda3/lib/python3.5/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/Users/niso/anaconda3/lib/python3.5/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/niso/Dev/memote/memote/suite/runner.py", line 297, in new
output_dir=ctx.obj.get("directory", "."))
File "/Users/niso/anaconda3/lib/python3.5/site-packages/cookiecutter/main.py", line 91, in cookiecutter
output_dir=output_dir
File "/Users/niso/anaconda3/lib/python3.5/site-packages/cookiecutter/generate.py", line 269, in generate_files
overwrite_if_exists
File "/Users/niso/anaconda3/lib/python3.5/site-packages/cookiecutter/generate.py", line 190, in render_and_create_dir
os.path.join(output_dir, rendered_dirname)
File "/Users/niso/anaconda3/lib/python3.5/posixpath.py", line 89, in join
genericpath._check_arg_types('join', a, *p)
File "/Users/niso/anaconda3/lib/python3.5/genericpath.py", line 143, in _check_arg_types
(funcname, s.class.name)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'

@Midnighter
Copy link
Member

If you want to give it a directory then it is: memote --directory <path> new.

@Midnighter
Copy link
Member

TODO: The cookiecutter should accept relative paths to the model file.

@Midnighter Midnighter changed the title memote new chokes on provided model path memote new should accept a relative path to the model Sep 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants