-
Notifications
You must be signed in to change notification settings - Fork 7
Resolving Import errors
#* (Developer Stack)
The Developer Stack shows the error message in the terminal. Whether the terminal is monitoring one of the following commands[comma separated]:
paver devstack studio , paver devstack lms , ruby app.rb -p 18080
If you have encountered from analyticsclient.exceptions import ClientError ImportError: No module named exceptions you can take the following steps to solve the problem [Afterwards you can do the ‘exit’ command to return to the Vagrant user (Vagrant user is the ssh user from vagrant ssh)]:
- sudo -H -u edxapp bash
- source /edx/app/edxapp/edxapp_env
- cd /edx/app/edxapp/venvs/edxapp/src
- pip uninstall edx-analytics-api-client
If after successfully uninstalling this import and running the LMS or CMS and seeing a warning about missing table columns, do a database migration.
The Production Stack on the other hand may return an error via a webpage. To find out what the error is, open a new terminal and use:
- sudo tail -f /edx/var/log/{lms,cms,nginx}/*log
If you have encountered ImportError: No module named csvs you can take the following steps to solve the problem [Afterwards you can do the ‘exit’ command to return to the Vagrant user (Vagrant user is the ssh user from vagrant ssh)]:
- sudo -H -u edxapp bash
- source /edx/app/edxapp/edxapp_env
- cd /edx/app/edxapp/edx-platform
- pip uninstall analytics-python