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

Trouble with path on command line #4

Closed
caleb-easterly opened this issue Nov 29, 2018 · 1 comment
Closed

Trouble with path on command line #4

caleb-easterly opened this issue Nov 29, 2018 · 1 comment

Comments

@caleb-easterly
Copy link
Collaborator

I moved cli.py into metaquantome/metaquantome to help with packaging (commit 0dfdc3c) , but that causes problems on the command line. This is from the Travis log testing testCLI.py:

> python3 metaquantome/cli.py expand -m f --pep_colname_int peptide --pep_colname_func peptide --outfile /home/travis/build/galaxyproteomics/metaquantome/metaquantome/data/test/cli_mult_out.tab -i metaquantome/data/test/int_ttest.tab --func_file metaquantome/data/test/multiple_func.tab  --func_colname cog --ontology cog  --samps '{"s1": ["int1", "int2", "int3"], "s2": ["int4", "int5", "int6"]}' 
Traceback (most recent call last):
  File "metaquantome/cli.py", line 5, in <module>
    from metaquantome.analysis.expand import expand
ImportError: No module named 'metaquantome'
FTraceback (most recent call last):
  File "metaquantome/cli.py", line 5, in <module>
    from metaquantome.analysis.expand import expand
ImportError: No module named 'metaquantome'
@caleb-easterly
Copy link
Collaborator Author

Got it working! Not sure if this is the best way, but I added the parent directory (i.e., parent metaquantome) to the path from inside cli.py (see dd48d3b)

I also re-added setup.py and made sure to include the viz.R file separately.

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

No branches or pull requests

1 participant