
from .latticemodel import lmapp

from phantasy_apps import *


from .latticemodel import lmapp

try:
    from phantasy_apps import *
except ImportError:
    print("Package 'python-phantasy-apps' is required.")

Add warning if 'phantasy_apps' cannot be found.
Add warning if 'phantasy_apps' cannot be found.

  
  from .latticemodel import lmapp
  
+ try:
- from phantasy_apps import *
+     from phantasy_apps import *
+ except ImportError:
+     print("Package 'python-phantasy-apps' is required.")
  
Add warning if 'phantasy_apps' cannot be found.
## Code Before:

from .latticemodel import lmapp

from phantasy_apps import *

## Instruction:
Add warning if 'phantasy_apps' cannot be found.
## Code After:

from .latticemodel import lmapp

try:
    from phantasy_apps import *
except ImportError:
    print("Package 'python-phantasy-apps' is required.")
