Giter VIP home page Giter VIP logo

runner's Issues

Release error when no --file argument supplied in the CLI

Hey, giving the release branch a play.

I get this error:

protocols git:(provision_fix) ✗ transcriptic release "package-id"                                 
Traceback (most recent call last):
  File "/Users/Ben/anaconda/bin/transcriptic", line 9, in <module>
    load_entry_point('transcriptic==1.2.0', 'console_scripts', 'transcriptic')()
  File "/Users/Ben/anaconda/lib/python2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/Users/Ben/anaconda/lib/python2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/Users/Ben/anaconda/lib/python2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/Ben/anaconda/lib/python2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/Ben/anaconda/lib/python2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "build/bdist.macosx-10.5-x86_64/egg/transcriptic.py", line 198, in release
    @click.argument('protocol_name')
  File "build/bdist.macosx-10.5-x86_64/egg/transcriptic.py", line 157, in upload
    click.echo('Creating empty manifest.json...')
  File "/Users/Ben/anaconda/lib/python2.7/posixpath.py", line 121, in basename
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

However if I provide the name of an existing archive via the --file argument.

It zips up all the files and uploads the most recent version, however the actual specified existing archive uploads with an error. So below an archive called release_v1.5.2.zip was created and uploaded just fine

transcriptic release "package-id" -f release_1.5.1.zip
Creating archive with all files within this directory...
Uploading to package with id package-id
Validating package...
Package uploaded successfully! Visit https://secure.transcriptic.com/ellis_lab/packages/package-id to publish.

Sorry I would try and fix it if my python was a little better!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.