Skip to content

Download using python client #15

Open

Description

@che625

I'm having some difficulties downloading a file using the python client on my computer and I think the problem is with my config file. Below is what is in my config file and the error message I'm getting:

[sqlshare]
host=rest.sqlshare.escience.washington.edu
user=che625@washington.edu
password=5234162537ce6a35236569c28ab62f65


d-69-91-135-106:tools claireolson$ python fetchdata.py -d "[che625@washington.edu].[Unmethylated_Over5xcoverage]" -f tsv -o /Users/claireolson/Desktop/Unmethylated_Over5xcoverage.txt
Traceback (most recent call last):
File "fetchdata.py", line 76, in
main()
File "fetchdata.py", line 71, in main
data = fetchdata(args.sql, args.format, args.output)
File "fetchdata.py", line 29, in fetchdata
conn = sqlshare.SQLShare()
File "build/bdist.macosx-10.7-intel/egg/sqlshare/init.py", line 70, in init
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 576, in get
ConfigParser.NoOptionError: No option 'user' in section: 'sqlshare'
d-69-91-135-106:tools claireolson$

Activity

  1. dhalperi commented on Dec 18, 2013

    @dhalperi
    Member

    Hi Claire,

    My guess is that the configuration file is located in the wrong place, as
    it looks correct. To double check:

     ls -l ~/.sqlshare/config
    

    (should show the configuration file)

     cat ~/.sqlshare/config
    

    (should show its contents).

    If one of those fails, try and move the file to the right place?

    Thanks,
    Dan

    On Wed, Dec 18, 2013 at 10:58 AM, che625 notifications@github.com wrote:

    I'm having some difficulties downloading a file using the python client on
    my computer and I think the problem is with my config file. Below is what
    is in my config file and the error message I'm getting:

    [sqlshare]
    host=rest.sqlshare.escience.washington.edu
    user=che625@washington.edu

    password=5234162537ce6a35236569c28ab62f65

    d-69-91-135-106:tools claireolson$ python fetchdata.py -d "[
    che625@washington.edu].[Unmethylated_Over5xcoverage]" -f tsv -o
    /Users/claireolson/Desktop/Unmethylated_Over5xcoverage.txt
    Traceback (most recent call last):
    File "fetchdata.py", line 76, in
    main()
    File "fetchdata.py", line 71, in main
    data = fetchdata(args.sql, args.format, args.output)
    File "fetchdata.py", line 29, in fetchdata
    conn = sqlshare.SQLShare()
    File "build/bdist.macosx-10.7-intel/egg/sqlshare/init.py", line 70, in
    init
    File
    "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py",
    line 576, in get
    ConfigParser.NoOptionError: No option 'user' in section: 'sqlshare'
    d-69-91-135-106:tools claireolson$

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/15
    .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions