Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Coscine Python SDK Coscine Python SDK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Coscine
  • community features
  • Coscine Python SDKCoscine Python SDK
  • Issues
  • #3
Closed
Open
Created Jun 16, 2021 by Niklas Siemer@niklassiemer

Upload of data fails if not in verbose mode

I just tried to upload data to CoScInE using the API in the non-verbose mode and encountered a

NameError: free variable 'bar' referenced before assignment in enclosing scope

the variable bar is only populated in the verbose mode, however, used in all cases in the lambda function causing the error: https://git.rwth-aachen.de/coscine/docs/public/coscine-python-client/-/blob/master/src/coscine/coscine.py#L588-592

For now, I just use client.verbose= True; client.upload... ; client.verbose=False as a workaround.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking