Bug 1303538 - ImportError: No module named runmote
Summary: ImportError: No module named runmote
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: mote
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Chaoyi Zha
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-01 08:50 UTC by Parag Nemade
Modified: 2016-02-01 20:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-01 20:22:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Parag Nemade 2016-02-01 08:50:33 UTC
Description of problem:
I was looking for some binary in /usr/bin and found mote. so thought let's try what this mote provides. I get this
$ mote --help
Traceback (most recent call last):
  File "/usr/bin/mote", line 9, in <module>
    load_entry_point('mote==0.4.2', 'console_scripts', 'mote')()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ImportError: No module named runmote


Version-Release number of selected component (if applicable):
mote-0.4.3-2.fc23.noarch

How reproducible:
always

Steps to Reproduce:
1.mote --help
2.
3.

Actual results:
traceback as given above

Expected results:
should not give traceback or pull required packages automatically.

Additional info:

Comment 1 Chaoyi Zha 2016-02-01 20:22:57 UTC
What specifically were you trying to achieve? The mote package adds its configuration to Apache, and uses mod_wsgi to execute the Python application.

It looks like the mote binary was trying to run the development server that comes with Flask, but it isn't really the point of the package. For development, it is preferable to clone the Git repository and run `runmote.py` from there. I think I may remove this, because it doesn't serve much purpose in the context of the package, meant to be ran on Fedora infrastructure or in production.

You can use gunicorn to run mote if you don't want to use mod_wsgi and Apache.


Note You need to log in before you can comment on or make changes to this bug.