-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
virtualenv procedure in Readme file #26
Comments
I've just been trying to set the repo up in a virtualenv on OS X. Particularly there seem to be some fragile corners around setting up matplotlib. Documentation would be useful if you're willing! Thanks. |
Oh, a way I found around the matplotlib issue described in that link was to install a 1.4 version. So within the virtual env: Maybe there's a neater way of using 1.5 but as a temporary solution this works for me. |
good idea. here are my notes, happy to contribute a PR or have someone steal this into theirs.. Running sms-tools with virtualenv(this works particularly well for MacOSX users) Let's assume you aready have virtualenv installed. The purpose of virtualenv is to isolate software installations to their own "virtual environment", which can help avoid dependency conflicts and environment-related bugs. It seems (so far) the However, special considerations are required due to restrictions of the matplotlib library used in the python code - see Working with Matplotlib in Virtual environments. The simplest technique that seems to work, is to not activate the virtual environment while using Setup - PYTHONHOME approachFirst, choose a place to create the virtualenv folder. One level above the sms-tools folder is a good idea, and Create the venv folder, activate it and make sure it has an up-to-date pip installed (not required, but generally a good idea):
Note the critical step: Instead, set the
Install the sms-tools dependencies (currently there is no requirements.txt for this), and compile the
Now test it out with First you will need to apply a minor edit for
.. and the sms-tools models GUI should pop up and be fully functional. |
this is not an sms-tools problem, closing. |
Hello,
Perhaps using
virtualenv
for the installation would be better since it creates an environment that is segregated from the system wide installations. It would also be the same procedure for Mac OS X.I can gladly work on a PR to update the README file, would that be of interest?
The text was updated successfully, but these errors were encountered: