Skip to content

cannot import name mapmri  #4

@soichih

Description

@soichih

I tried to run this app and ran into following issue.

Traceback (most recent call last):
  File "/N/dc2/scratch/brlife/karst-workflows/5a4e98fd3c6325002f5430af/5a4e98fd3c6325002f5430b0/main.py", line 1, in <module>
    from dipy.reconst import mapmri
ImportError: cannot import name mapmri

real	0m5.700s
user	0m0.075s
sys	0m0.303s

I recommend making following changes.

  1. Remove start/stop/status hook and use the new main based execution model. It's documented here > http://www.brainlife.io/warehouse/helloworld
  2. The error message seems to be caused by incompatible dipy installed on the resource where this application is running. The best way to overcome dependency issue is to use Docker container. We recommend using this container that's already built (https://hub.docker.com/r/brainlife/dipy) or use it as a base image to install other dependencies needed. Then, main can run the main python script with appropriate configuration parameters similar to https://github.com/brain-life/app-dipy/blob/master/main

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