Skip to content

Issue while running Craft Command #435

@ghost

Description

Describe the bug
If you use any command with craft it gives an error.

Traceback (most recent call last):
  File "craft", line 12, in <module>
    from wsgi import container
  File "/Users/yubarajshrestha/Python Projects/blog/wsgi.py", line 36, in <module>
    located_provider.load_app(container).register()
  File "/Users/yubarajshrestha/Python Projects/blog/venv/lib/python3.8/site-packages/masonite/providers/AppProvider.py", line 58, in register
    self._autoload(config("application.autoload"))
  File "/Users/yubarajshrestha/Python Projects/blog/venv/lib/python3.8/site-packages/masonite/providers/AppProvider.py", line 67, in _autoload
    Autoload(self.app).load(directories)
  File "/Users/yubarajshrestha/Python Projects/blog/venv/lib/python3.8/site-packages/masonite/autoload.py", line 49, in load
    self._get_module_members(module_loader, name)
  File "/Users/yubarajshrestha/Python Projects/blog/venv/lib/python3.8/site-packages/masonite/autoload.py", line 173, in _get_module_members
    return importlib.import_module(
  File "/usr/local/Cellar/python@3.8/3.8.10/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py", line 122, in import_module
    raise TypeError(msg.format(name))
TypeError: the 'package' argument is required to perform a relative import for '.Users.yubarajshrestha.Python Projects.blog.app.User'

Desktop (please complete the following information):

  • OS: Mac

Additional context
Python Version: 3.8.10
M3 (Masonite v3)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions