Closed AntArch closed 9 years ago
The problem is likely that you do not have the latest version of UrbanSim. MNLDiscreteChoiceModel
is in Urbansim 2.0+.
That looks about right:
print(urbansim.version)
gives 1.3.
I've removed it from Anaconda
conda remove urbansim
and then installed it using pip instead
pip install urbansim
This gave a version of 2.0.1
_However, I installed this from using the synthicity conda channel_. using the following commands:
conda config --add channels synthicity
conda install urbansim
The binstar repository gives the impression that the released version of urbansim via conda is 2.0.1 and not 1.3.
Our conda channel is out of date at the moment. A bug in either binstar or conda (https://github.com/Binstar/binstar/issues/150) has blocked me from uploading urbansim builds for platforms other than Mac OS X. Once that's fixed I'll be able to upload packages for Linux and Windows.
In the meantime you can probably install UrbanSim using pip since you likely have all the prerequisites already installed. You can try that with pip install urbansim
.
Yep. All done. Code tested and working. Many thanks
:+1:
Hi,
I've been going through the UrbanSim getting started pages and have set up my Anaconda instance as per your guidelines. I've then downloaded this repository.
Whenever I import the local python file: utils.py it sends the following command:
This produces the following error:
I've removed the dependency for MNLDiscreteChoiceModel and SegmentedMNLDiscreteChoiceModel but these are used within the example Ipython code - so that doesn't help.
Am I doing something stupid in terms of my environment or do these models not exist in the library any more (or are they referenced in a different way).
Thanks
Ant
Environment: