linzhp / Codevo3

Software evolution simulation
2 stars 1 forks source link

problem with simpy #3

Closed monperrus closed 8 years ago

monperrus commented 8 years ago

Hi,

I try to run python3 codevo/simulate.py 200000 and get the following error:

ImportError: No module named simpy

On my Linux machine, python is case-sensitive and import SimPy is a fix.

However, then it fails at env = simpy.Environment() and env = SimPy.Environment() is not a valid fix.

Any idea?

linzhp commented 8 years ago

Sorry for late reply. Did you install the SimPy package?

monperrus commented 8 years ago

Yes:

$ python
Python 2.7.11 (default, Dec  9 2015, 00:29:25) 
[GCC 5.3.1 20151205] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import SimPy
>>> SimPy.__version__
'2.3.1'
>>> 

is that correct?

linzhp commented 8 years ago

Did you install simpy for Python 3?

monperrus commented 8 years ago

python3-simpy3 is the solution!

created a PR to clarify.

Thanks, --Martin

linzhp commented 8 years ago

Glad you figured it out. Thanks for #4