python initialisation not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
modules (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
An init script for using environment modules inside python is available in the package but it doesn't work for me.
For example:
$ python
Python 2.7.6 (default, Jan 12 2014, 08:16:39)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> execfile(
>>> module('list')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/share/
(output, error) = subprocess.
TypeError: not all arguments converted during string formatting
when I was expecting this:
$ python
Python 2.7.6 (default, Jan 12 2014, 08:16:39)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> execfile(
>>> module('list')
Currently Loaded Modulefiles:
>>>
Here are the versions I'm using
$ lsb_release -rd
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04
$ apt-cache policy environment-modules
environment-
Installed: 3.2.10-8
Candidate: 3.2.10-8
Version table:
*** 3.2.10-8 0
500 http://
100 /var/lib/
A small change to the init script /usr/share/
Changed in modules (Ubuntu): | |
importance: | Undecided → Low |
Changed in modules (Ubuntu): | |
status: | Confirmed → Fix Released |
Thanks for taking your time to report this issue and help making Ubuntu better.
I got the same error message when following the steps to reproduce this issue on Ubuntu Trusty.
I also noticed that the attachement was not flagged as a patch, so I've checked the patch flag for it. In the future when submitting patches please use the patch checkbox as there are some Launchpad searches that use this feature. You can learn more about the patch workflow at https:/ /wiki.ubuntu. com/Bugs/ Patches.