Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chanjo generates errors instead of help text #187

Open
henrikstranneheim opened this issue Apr 24, 2017 · 6 comments
Open

chanjo generates errors instead of help text #187

henrikstranneheim opened this issue Apr 24, 2017 · 6 comments

Comments

@henrikstranneheim
Copy link
Contributor

$chanjo
Traceback (most recent call last):
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/bin/chanjo", line 11, in <module>
    load_entry_point('chanjo==4.0.0', 'console_scripts', 'chanjo')()
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/click/core.py", line 695, in main
    with self.make_context(prog_name, args, **extra) as ctx:
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/click/core.py", line 620, in make_context
    self.parse_args(ctx, args)
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/click/core.py", line 1009, in parse_args
    echo(ctx.get_help(), color=ctx.color)
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/click/core.py", line 495, in get_help
    return self.command.get_help(self)
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/click/core.py", line 824, in get_help
    self.format_help(ctx, formatter)
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/click/core.py", line 839, in format_help
    self.format_options(ctx, formatter)
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/click/core.py", line 950, in format_options
    self.format_commands(ctx, formatter)
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/click/core.py", line 995, in format_commands
    cmd = self.get_command(ctx, subcommand)
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/chanjo/cli.py", line 42, in get_command
    return commands[name].load()
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2291, in load
    return self.resolve()
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2297, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/mnt/hds/proj/cust003/develop/modules/miniconda2/envs/mip4.1/lib/python2.7/site-packages/chanjo/init/cli.py", line 6, in <module>
    from path import path
ImportError: cannot import name path
@moonso
Copy link
Contributor

moonso commented Apr 24, 2017

This is because path is not installed. Try pip install path and try again.
We should include this in requirements if it is not already done

@henrikstranneheim
Copy link
Contributor Author

pip install path
Downloading/unpacking path
  Could not find any downloads that satisfy the requirement path
Cleaning up...
No distributions at all found for path
Storing complete log in /home/henrik.stranneheim/.pip/pip.log

@moonso
Copy link
Contributor

moonso commented Apr 25, 2017

Sorry, it should probably be pip install Path

@henrikstranneheim
Copy link
Contributor Author

Nope 😄

$ pip install Path
Downloading/unpacking Path
  Could not find any downloads that satisfy the requirement Path
Cleaning up...
No distributions at all found for Path
Storing complete log in /home/henrik.stranneheim/.pip/pip.log

@moonso
Copy link
Contributor

moonso commented Apr 25, 2017

Ok let's wait for @robinandeer then

@robinandeer
Copy link
Contributor

yeah it's called path.py but we need to update the code to correct the import

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants