Comments (13)
Dear Gerryjj,
my research assistant will come back to you with a better solution. Have
you installed abce?
http://davoudtaghawinejad.github.io/abce/installation.html#installation-of-stable-version-windows
particularly:
pip install abce-0.3.1.tar.gz
/ The hackish solution would be copying the abce/abce direcory into the
same directory start.py of the simulation is.
Davoud
On Thu, Aug 28, 2014 at 1:33 AM, Gerryjj [email protected] wrote:
probably finger trouble at my end as a newbie to Python & abce. I hope you
can help...
i am using win 8.1.
The \doc reads a little differently to the readme..
the readme states:
copy abce/example to your_model_path::
cd your_model_path
cp ../abce/template/* .
2.In line 3 of start.py: adjust sys.path.append('your_path_to/abce/lib')
Not sure what you mean by your model path but you can see in the TREE
command below what i inferred.
Regarding 2. i don't see "sys.path.append" in start.py.
You can see from the path command below how i have set up paths.When i run start.py from the copied templates i get...
C:\Programs\abce-master\template>start.py
Traceback (most recent call last):
File "C:\Programs\abce-master\template\start.py", line 2, in
from firm import Firm
File "C:\Programs\abce-master\template\firm.py", line 2, in
import abce
ImportError: No module named abcePlease advise what steps or changes i am missing, thanks...
The path and tree commands follow.....abce path
C:\Windows\System32>path
PATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;
C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;
C:\Program Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;
C:\MinGW32-xy\bin;
C:\Programs\abce-master\abce\lib;
C:\Program Files
(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expWorkbenchabce-tree
C:\Windows\System32>tree c:\programs\abce-master /f
Folder PATH listing for volume Windows
Volume serial number is 0000000A EE6A:1709
C:\PROGRAMS\ABCE-MASTER
│ .gitignore
│ abce-master.zip
│ ABCE.pdf
│ MANIFEST.in
│ README.rst
│ setup.py
│
├───abce
│ │ abcelogger.py
│ │ agent.py
│ │ database.py
│ │ db.py
│ │ firm.py
│ │ firmmultitechnologies.py
│ │ from_gams.py
│ │ household.py
│ │ logger.py
│ │ messaging.py
│ │ postprocess.py
│ │ postprocess.R
│ │ subround.py
│ │ tools.py
│ │ trade.py
│ │ init.py
│ │
│ └───lib
│ └───template
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───doc
│ abcetools.rst
│ Agent_class.rst
│ amazon_ec2.rst
│ conf.py
│ Database.rst
│ examples.rst
│ files.rst
│ Firm.rst
│ FirmMultiTechnologies.rst
│ Household.rst
│ index.rst
│ installation.rst
│ introduction.rst
│ make.bat
│ Makefile
│ messagemodel.jpg
│ Messaging.rst
│ parameters.rst
│ simulation.rst
│ simulation_results.rst
│ sphinxarticle.cls
│ Trade.rst
│ unit_testing.rst
│ Walk_through.rst
│
├───example
│ │ README.rst
│ │
│ ├───2sectors
│ │ agents_parameters.csv
│ │ config.py
│ │ firm.py
│ │ household.py
│ │ script.R
│ │ simulation_parameters.csv
│ │ start.py
│ │
│ └───one_household_one_firm
│ config.py
│ firm.py
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───template
│ abce_templates-0.3.zip
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
└───unittest
agents_parameters.csv
buy.py
config.py
endowment.py
give.py
logger.py
nohup.out
quote_buy.py
sell.py
simulation_parameters.csv
start.py—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1.
from abce.
reply to this email
On Thu, Aug 28, 2014 at 1:33 AM, Gerryjj [email protected] wrote:
probably finger trouble at my end as a newbie to Python & abce. I hope you
can help...
i am using win 8.1.
The \doc reads a little differently to the readme..
the readme states:
copy abce/example to your_model_path::
cd your_model_path
cp ../abce/template/* .
2.In line 3 of start.py: adjust sys.path.append('your_path_to/abce/lib')
Not sure what you mean by your model path but you can see in the TREE
command below what i inferred.
Regarding 2. i don't see "sys.path.append" in start.py.
You can see from the path command below how i have set up paths.When i run start.py from the copied templates i get...
C:\Programs\abce-master\template>start.py
Traceback (most recent call last):
File "C:\Programs\abce-master\template\start.py", line 2, in
from firm import Firm
File "C:\Programs\abce-master\template\firm.py", line 2, in
import abce
ImportError: No module named abcePlease advise what steps or changes i am missing, thanks...
The path and tree commands follow.....abce path
C:\Windows\System32>path
PATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;
C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;
C:\Program Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;
C:\MinGW32-xy\bin;
C:\Programs\abce-master\abce\lib;
C:\Program Files
(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expWorkbenchabce-tree
C:\Windows\System32>tree c:\programs\abce-master /f
Folder PATH listing for volume Windows
Volume serial number is 0000000A EE6A:1709
C:\PROGRAMS\ABCE-MASTER
│ .gitignore
│ abce-master.zip
│ ABCE.pdf
│ MANIFEST.in
│ README.rst
│ setup.py
│
├───abce
│ │ abcelogger.py
│ │ agent.py
│ │ database.py
│ │ db.py
│ │ firm.py
│ │ firmmultitechnologies.py
│ │ from_gams.py
│ │ household.py
│ │ logger.py
│ │ messaging.py
│ │ postprocess.py
│ │ postprocess.R
│ │ subround.py
│ │ tools.py
│ │ trade.py
│ │ init.py
│ │
│ └───lib
│ └───template
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───doc
│ abcetools.rst
│ Agent_class.rst
│ amazon_ec2.rst
│ conf.py
│ Database.rst
│ examples.rst
│ files.rst
│ Firm.rst
│ FirmMultiTechnologies.rst
│ Household.rst
│ index.rst
│ installation.rst
│ introduction.rst
│ make.bat
│ Makefile
│ messagemodel.jpg
│ Messaging.rst
│ parameters.rst
│ simulation.rst
│ simulation_results.rst
│ sphinxarticle.cls
│ Trade.rst
│ unit_testing.rst
│ Walk_through.rst
│
├───example
│ │ README.rst
│ │
│ ├───2sectors
│ │ agents_parameters.csv
│ │ config.py
│ │ firm.py
│ │ household.py
│ │ script.R
│ │ simulation_parameters.csv
│ │ start.py
│ │
│ └───one_household_one_firm
│ config.py
│ firm.py
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───template
│ abce_templates-0.3.zip
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
└───unittest
agents_parameters.csv
buy.py
config.py
endowment.py
give.py
logger.py
nohup.out
quote_buy.py
sell.py
simulation_parameters.csv
start.py—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1.
from abce.
Davoud,
i always regard the readme file as definitive for installs and so i
followed that. It's different to the doc html. That's ok, i renamed abce to
OLD and started again. I suggest you change the readme to either reflect
the doc, or point to it.
Anyway.
the setup can't find R (it's in the path as Program Files\R now, it was
originally in a sub folder as R-3.1.1). i can't see what to change in your
,py so abce can find it). I only installed the 32 bit.
The file structure finishes up with Programs\abce\abce\abce-0.3
i use Programs as the place to put new programs in 8.1 to get round
problems with write permissions for things like models.
(ps. The download is 0.3 not 0.3.1.tar.gz as in doc.)
In the readme sequence the templates were already copied, but i haven't got
to that step in the re-run.
The log of relevant parts of pip install abce-0.3.tar.gz
is attached.
C:\Programs\abce>path
PATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program
Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;C:\Program
Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;C:\MinGW32-xy\bin;C:\Programs\abce\abce-0.3\abce;C:\Program
Files\R;C:\Program Files
(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expW
orkbench
regards
Gerry
On Fri, Aug 29, 2014 at 7:35 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:
Dear Gerryjj,
my research assistant will come back to you with a better solution. Have
you installed abce?http://davoudtaghawinejad.github.io/abce/installation.html#installation-of-stable-version-windows
particularly:
pip install abce-0.3.1.tar.gz/ The hackish solution would be copying the abce/abce direcory into the
same directory start.py of the simulation is.
DavoudOn Thu, Aug 28, 2014 at 1:33 AM, Gerryjj [email protected]
wrote:probably finger trouble at my end as a newbie to Python & abce. I hope
you
can help...
i am using win 8.1.
The \doc reads a little differently to the readme..
the readme states:
copy abce/example to your_model_path::
cd your_model_path
cp ../abce/template/* .
2.In line 3 of start.py: adjust sys.path.append('your_path_to/abce/lib')
Not sure what you mean by your model path but you can see in the TREE
command below what i inferred.
Regarding 2. i don't see "sys.path.append" in start.py.
You can see from the path command below how i have set up paths.When i run start.py from the copied templates i get...
C:\Programs\abce-master\template>start.py
Traceback (most recent call last):
File "C:\Programs\abce-master\template\start.py", line 2, in
from firm import Firm
File "C:\Programs\abce-master\template\firm.py", line 2, in
import abce
ImportError: No module named abcePlease advise what steps or changes i am missing, thanks...
The path and tree commands follow.....abce path
C:\Windows\System32>path
PATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;
C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;
C:\Program Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;
C:\MinGW32-xy\bin;
C:\Programs\abce-master\abce\lib;
C:\Program Files(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expWorkbench
abce-tree
C:\Windows\System32>tree c:\programs\abce-master /f
Folder PATH listing for volume Windows
Volume serial number is 0000000A EE6A:1709
C:\PROGRAMS\ABCE-MASTER
│ .gitignore
│ abce-master.zip
│ ABCE.pdf
│ MANIFEST.in
│ README.rst
│ setup.py
│
├───abce
│ │ abcelogger.py
│ │ agent.py
│ │ database.py
│ │ db.py
│ │ firm.py
│ │ firmmultitechnologies.py
│ │ from_gams.py
│ │ household.py
│ │ logger.py
│ │ messaging.py
│ │ postprocess.py
│ │ postprocess.R
│ │ subround.py
│ │ tools.py
│ │ trade.py
│ │ init.py
│ │
│ └───lib
│ └───template
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───doc
│ abcetools.rst
│ Agent_class.rst
│ amazon_ec2.rst
│ conf.py
│ Database.rst
│ examples.rst
│ files.rst
│ Firm.rst
│ FirmMultiTechnologies.rst
│ Household.rst
│ index.rst
│ installation.rst
│ introduction.rst
│ make.bat
│ Makefile
│ messagemodel.jpg
│ Messaging.rst
│ parameters.rst
│ simulation.rst
│ simulation_results.rst
│ sphinxarticle.cls
│ Trade.rst
│ unit_testing.rst
│ Walk_through.rst
│
├───example
│ │ README.rst
│ │
│ ├───2sectors
│ │ agents_parameters.csv
│ │ config.py
│ │ firm.py
│ │ household.py
│ │ script.R
│ │ simulation_parameters.csv
│ │ start.py
│ │
│ └───one_household_one_firm
│ config.py
│ firm.py
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───template
│ abce_templates-0.3.zip
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
└───unittest
agents_parameters.csv
buy.py
config.py
endowment.py
give.py
logger.py
nohup.out
quote_buy.py
sell.py
simulation_parameters.csv
start.py—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1.—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1 (comment)
.Unpacking c:\programs\abce\abce-0.3.tar.gz
Running setup.py (path:c:\users\gerald\appdata\local\temp\pip-l9v93e-build\setup.py) egg_inf
o for package from file:///C:/Programs/abce/abce-0.3.tar.gz
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'modules'
warnings.warn(msg)
warning: manifest_maker: MANIFEST.in, line 4: path 'template/' cannot end with '/'
warning: manifest_maker: MANIFEST.in, line 5: path 'unittest/' cannot end with '/'
warning: manifest_maker: MANIFEST.in, line 6: path 'example/' cannot end with '/'
os.name: nt
Downloading/unpacking pyparsing==1.5.7 (from abce==0.3)
Running setup.py (path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\pyparsing\setup.py) egg_info for package pyparsing
Downloading/unpacking rpy2 (from abce==0.3)
Running setup.py (path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py) egg_info for package rpy2
Error: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: Tried to guess R's HOME but no R command in the PATH.
Cleaning up...
Command python setup.py egg_info failed with error code 1 in c:\users\gerald\appdata\local\tem
p\pip_build_Gerald\rpy2
Storing debug log for failure in C:\Users\Gerald\pip\pip.log
-> pip.log.............
Using version 2.4.3 (newest of versions: 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.10, 2.3.9, 2.3.8, 2.3.7, 2.3.6, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.3.1, 2.3.0, 2.2.7, 2.2.6, 2.2.5, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0, 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 2.0.8)
Downloading from URL https://pypi.python.org/packages/source/r/rpy2/rpy2-2.4.3.tar.gz#md5=57e3fda409226dffb543c913c8553cdc (from https://pypi.python.org/simple/rpy2/)
Running setup.py (path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py) egg_info for package rpy2
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info
from abce.
Davoud,
some progress.
pip install rpy2 doesn't work.
it get's 'tried to guess R's HOME...' - seems to be a windows or rp2
problem.
easy_install rp2 also failed the same way.
So installed from http://www.lfd.uci.edu/~gohlke/pythonlibs/#rpy2
manually. Then
import rpy2
rpy2.path
['C:\Python27\lib\site-packages\rpy2']
then
pip install abce-0.3.tar.gz
ran ok with some warning messages.
Next is to copy templates and examples. The intended directory structure
isn't clear.
in abce-0.3 directory the readme says..
<
Make a working copy
-
copy abce/example to your_model_path::
cd your_model_path
cp ../abce/template/* . -
In line 3 of
start.py
: adjust sys.path.append('your_path_to/abce/lib')
start.py
the specified code is NOT in start.py
if i run the installed start.py from abce/abce-0.3/abce/template i get
an error because it is looking for R.dll which is in a lower directory of R
so after changing the PATH again
import rpy2.rinterface as rinterface
File "C:\Python27\lib\site-packages\rpy2\rinterface__init__.py", line
90, in
raise RuntimeError("Unable to locate R.dll within %s" % R_HOME)
RuntimeError: Unable to locate R.dll within C:\Program Files\R\bin
and after changing R_HOME=
File "C:\Python27\lib\site-packages\rpy2\rinterface__init__.py", line 90,
in
raise RuntimeError("Unable to locate R.dll within %s" % R_HOME)
RuntimeError: Unable to locate R.dll within C:\Program Files\R\bin\i386
So i give up...just what needs to be specified as system environment and
user environment variables?
The R.dll is in R\bib\i386.
Does start.py need to be changed?
The path looks like...
PATH=C:\Program
Files\R\bin\i386;C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\rpy2;C:\Python27\Lib\site-pa
ckages\PyQt4;C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\D
LLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;C:\Program Files
(x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files (x86)\p
ythonxy\console;C:\MinGW32-xy\bin;C:\Programs\abce\abce-0.3\abce;C:\Program
Files\R\bin;C:\Program Files (x86)\Vensim\Ven
ple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EM
Aworkbench-master\src\expWorkbench
regards
Gerry
from abce.
Hello,
- Thank you, I will change as soon as possible. I am traveling.
- You can open setup.py and delete all references to R. Its actually a bit
of a bug, because the current version, which you are using, does not neet
R, but I forgot to delete it from setup.py
Davoud
On Aug 28, 2014 11:01 PM, "Gerryjj" [email protected] wrote:
Davoud,
i always regard the readme file as definitive for installs and so i
followed that. It's different to the doc html. That's ok, i renamed abce
to
OLD and started again. I suggest you change the readme to either reflect
the doc, or point to it.
Anyway.the setup can't find R (it's in the path as Program Files\R now, it was
originally in a sub folder as R-3.1.1). i can't see what to change in your
,py so abce can find it). I only installed the 32 bit.
The file structure finishes up with Programs\abce\abce\abce-0.3
i use Programs as the place to put new programs in 8.1 to get round
problems with write permissions for things like models.
(ps. The download is 0.3 not 0.3.1.tar.gz as in doc.)
In the readme sequence the templates were already copied, but i haven't
got
to that step in the re-run.
The log of relevant parts of pip install abce-0.3.tar.gz
is attached.C:\Programs\abce>path
PATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program
Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;C:\ProgramFiles (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;C:\MinGW32-xy\bin;C:\Programs\abce\abce-0.3\abce;*C:\ProgramFiles\R*;C:\Program Files
(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expWorkbench
regards
GerryOn Fri, Aug 29, 2014 at 7:35 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:Dear Gerryjj,
my research assistant will come back to you with a better solution. Have
you installed abce?http://davoudtaghawinejad.github.io/abce/installation.html#installation-of-stable-version-windows
particularly:
pip install abce-0.3.1.tar.gz/ The hackish solution would be copying the abce/abce direcory into the
same directory start.py of the simulation is.
DavoudOn Thu, Aug 28, 2014 at 1:33 AM, Gerryjj [email protected]
wrote:probably finger trouble at my end as a newbie to Python & abce. I hope
you
can help...
i am using win 8.1.
The \doc reads a little differently to the readme..
the readme states:
copy abce/example to your_model_path::
cd your_model_path
cp ../abce/template/* .
2.In line 3 of start.py: adjust sys.path.append('your_path_to/abce/lib')
Not sure what you mean by your model path but you can see in the TREE
command below what i inferred.
Regarding 2. i don't see "sys.path.append" in start.py.
You can see from the path command below how i have set up paths.When i run start.py from the copied templates i get...
C:\Programs\abce-master\template>start.py
Traceback (most recent call last):
File "C:\Programs\abce-master\template\start.py", line 2, in
from firm import Firm
File "C:\Programs\abce-master\template\firm.py", line 2, in
import abce
ImportError: No module named abcePlease advise what steps or changes i am missing, thanks...
The path and tree commands follow.....abce path
C:\Windows\System32>pathPATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;
C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;
C:\Program Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;
C:\MinGW32-xy\bin;
C:\Programs\abce-master\abce\lib;
C:\Program Files(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expWorkbench
abce-tree
C:\Windows\System32>tree c:\programs\abce-master /f
Folder PATH listing for volume Windows
Volume serial number is 0000000A EE6A:1709
C:\PROGRAMS\ABCE-MASTER
│ .gitignore
│ abce-master.zip
│ ABCE.pdf
│ MANIFEST.in
│ README.rst
│ setup.py
│
├───abce
│ │ abcelogger.py
│ │ agent.py
│ │ database.py
│ │ db.py
│ │ firm.py
│ │ firmmultitechnologies.py
│ │ from_gams.py
│ │ household.py
│ │ logger.py
│ │ messaging.py
│ │ postprocess.py
│ │ postprocess.R
│ │ subround.py
│ │ tools.py
│ │ trade.py
│ │ init.py
│ │
│ └───lib
│ └───template
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───doc
│ abcetools.rst
│ Agent_class.rst
│ amazon_ec2.rst
│ conf.py
│ Database.rst
│ examples.rst
│ files.rst
│ Firm.rst
│ FirmMultiTechnologies.rst
│ Household.rst
│ index.rst
│ installation.rst
│ introduction.rst
│ make.bat
│ Makefile
│ messagemodel.jpg
│ Messaging.rst
│ parameters.rst
│ simulation.rst
│ simulation_results.rst
│ sphinxarticle.cls
│ Trade.rst
│ unit_testing.rst
│ Walk_through.rst
│
├───example
│ │ README.rst
│ │
│ ├───2sectors
│ │ agents_parameters.csv
│ │ config.py
│ │ firm.py
│ │ household.py
│ │ script.R
│ │ simulation_parameters.csv
│ │ start.py
│ │
│ └───one_household_one_firm
│ config.py
│ firm.py
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───template
│ abce_templates-0.3.zip
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
└───unittest
agents_parameters.csv
buy.py
config.py
endowment.py
give.py
logger.py
nohup.out
quote_buy.py
sell.py
simulation_parameters.csv
start.py—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1.—
Reply to this email directly or view it on GitHub
<
https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53804517>.
Unpacking c:\programs\abce\abce-0.3.tar.gz
Running setup.py
(path:c:\users\gerald\appdata\local\temp\pip-l9v93e-build\setup.py) egg_inf
o for package from file:///C:/Programs/abce/abce-0.3.tar.gz
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution
option: 'modules'
warnings.warn(msg)
warning: manifest_maker: MANIFEST.in, line 4: path 'template/' cannot end
with '/'
warning: manifest_maker: MANIFEST.in, line 5: path 'unittest/' cannot end
with '/'
warning: manifest_maker: MANIFEST.in, line 6: path 'example/' cannot end
with '/'
os.name: nt
Downloading/unpacking pyparsing==1.5.7 (from abce==0.3)
Running setup.py
(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\pyparsing\setup.py)
egg_info for package pyparsing
Downloading/unpacking rpy2 (from abce==0.3)
Running setup.py
(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
Error: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: Tried to guess R's HOME but no R command in the PATH.
Cleaning up...
Command python setup.py egg_info failed with error code 1 in
c:\users\gerald\appdata\local\tem
p\pip_build_Gerald\rpy2
Storing debug log for failure in C:\Users\Gerald\pip\pip.log-> pip.log.............
Using version 2.4.3 (newest of versions: 2.4.3, 2.4.2, 2.4.1, 2.4.0,
2.3.10, 2.3.9, 2.3.8, 2.3.7, 2.3.6, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.3.1,
2.3.0, 2.2.7, 2.2.6, 2.2.5, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0, 2.1.9,
2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 2.0.8)
Downloading from URL
https://pypi.python.org/packages/source/r/rpy2/rpy2-2.4.3.tar.gz#md5=57e3fda409226dffb543c913c8553cdc
(from https://pypi.python.org/simple/rpy2/)
Running setup.py
(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not foundError: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1 (comment)
.
from abce.
Davoud,
changing setup.py didn't make any difference. Still looking for R.dll, it
must be referenced indirectly.
i deleted anything that looked like R from modules and requires. See how it
looks below.
Also some of the templates zip files in the web referenced process you
asked me to follow are older than the full zip in the walkthrough.
May i suggest that when you have time, you perform a clean install on
windows and send me the console from python and windows.
Can i uninstall R?
thanks.
Gerry
SETUP.PY
from setuptools import setup
import os
setup(
name='abce',
version='0.3',
author='Davoud Taghawi-Nejad',
author_email='[email protected]',
description='Agent-Based Complete Economy modelling platform',
url='https://github.com/DavoudTaghawiNejad/abce/downloads',
package_dir = {'abce': 'abce'},
packages=['abce'],
modules=['abce_db', 'abcetools', 'postprocess'],
long_description=open('README.rst').read(),
install_requires=['pyparsing==1.5.7', 'numpy','scipy', 'pyzmq'],
data_files=[('abce')],
include_package_data = True,
)
On Sun, Aug 31, 2014 at 4:08 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:
Hello,
- Thank you, I will change as soon as possible. I am traveling.
- You can open setup.py and delete all references to R. Its actually a
bit
of a bug, because the current version, which you are using, does not neet
R, but I forgot to delete it from setup.pyDavoud
On Aug 28, 2014 11:01 PM, "Gerryjj" [email protected] wrote:Davoud,
i always regard the readme file as definitive for installs and so i
followed that. It's different to the doc html. That's ok, i renamed abce
to
OLD and started again. I suggest you change the readme to either reflect
the doc, or point to it.
Anyway.the setup can't find R (it's in the path as Program Files\R now, it
was
originally in a sub folder as R-3.1.1). i can't see what to change in
your
,py so abce can find it). I only installed the 32 bit.
The file structure finishes up with Programs\abce\abce\abce-0.3
i use Programs as the place to put new programs in 8.1 to get round
problems with write permissions for things like models.
(ps. The download is 0.3 not 0.3.1.tar.gz as in doc.)
In the readme sequence the templates were already copied, but i haven't
got
to that step in the re-run.
The log of relevant parts of pip install abce-0.3.tar.gz
is attached.C:\Programs\abce>path
PATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program
Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;C:\Program
Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;C:\MinGW32-xy\bin;C:\Programs\abce\abce-0.3\abce;*C:\Program
Files\R*;C:\Program Files
(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expW
orkbench
regards
GerryOn Fri, Aug 29, 2014 at 7:35 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:Dear Gerryjj,
my research assistant will come back to you with a better solution.
Have
you installed abce?http://davoudtaghawinejad.github.io/abce/installation.html#installation-of-stable-version-windows
particularly:
pip install abce-0.3.1.tar.gz/ The hackish solution would be copying the abce/abce direcory into
the
same directory start.py of the simulation is.
DavoudOn Thu, Aug 28, 2014 at 1:33 AM, Gerryjj [email protected]
wrote:probably finger trouble at my end as a newbie to Python & abce. I
hope
you
can help...
i am using win 8.1.
The \doc reads a little differently to the readme..
the readme states:
copy abce/example to your_model_path::
cd your_model_path
cp ../abce/template/* .
2.In line 3 of start.py: adjust
sys.path.append('your_path_to/abce/lib')
Not sure what you mean by your model path but you can see in the
TREE
command below what i inferred.
Regarding 2. i don't see "sys.path.append" in start.py.
You can see from the path command below how i have set up paths.When i run start.py from the copied templates i get...
C:\Programs\abce-master\template>start.py
Traceback (most recent call last):
File "C:\Programs\abce-master\template\start.py", line 2, in
from firm import Firm
File "C:\Programs\abce-master\template\firm.py", line 2, in
import abce
ImportError: No module named abcePlease advise what steps or changes i am missing, thanks...
The path and tree commands follow.....abce path
C:\Windows\System32>pathPATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;
C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;
C:\Program Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;
C:\MinGW32-xy\bin;
C:\Programs\abce-master\abce\lib;
C:\Program Files(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expWorkbench
abce-tree
C:\Windows\System32>tree c:\programs\abce-master /f
Folder PATH listing for volume Windows
Volume serial number is 0000000A EE6A:1709
C:\PROGRAMS\ABCE-MASTER
│ .gitignore
│ abce-master.zip
│ ABCE.pdf
│ MANIFEST.in
│ README.rst
│ setup.py
│
├───abce
│ │ abcelogger.py
│ │ agent.py
│ │ database.py
│ │ db.py
│ │ firm.py
│ │ firmmultitechnologies.py
│ │ from_gams.py
│ │ household.py
│ │ logger.py
│ │ messaging.py
│ │ postprocess.py
│ │ postprocess.R
│ │ subround.py
│ │ tools.py
│ │ trade.py
│ │ init.py
│ │
│ └───lib
│ └───template
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───doc
│ abcetools.rst
│ Agent_class.rst
│ amazon_ec2.rst
│ conf.py
│ Database.rst
│ examples.rst
│ files.rst
│ Firm.rst
│ FirmMultiTechnologies.rst
│ Household.rst
│ index.rst
│ installation.rst
│ introduction.rst
│ make.bat
│ Makefile
│ messagemodel.jpg
│ Messaging.rst
│ parameters.rst
│ simulation.rst
│ simulation_results.rst
│ sphinxarticle.cls
│ Trade.rst
│ unit_testing.rst
│ Walk_through.rst
│
├───example
│ │ README.rst
│ │
│ ├───2sectors
│ │ agents_parameters.csv
│ │ config.py
│ │ firm.py
│ │ household.py
│ │ script.R
│ │ simulation_parameters.csv
│ │ start.py
│ │
│ └───one_household_one_firm
│ config.py
│ firm.py
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───template
│ abce_templates-0.3.zip
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
└───unittest
agents_parameters.csv
buy.py
config.py
endowment.py
give.py
logger.py
nohup.out
quote_buy.py
sell.py
simulation_parameters.csv
start.py—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1.—
Reply to this email directly or view it on GitHub
<https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53804517>
.
Unpacking c:\programs\abce\abce-0.3.tar.gz
Running setup.py
(path:c:\users\gerald\appdata\local\temp\pip-l9v93e-build\setup.py)
egg_inf
o for package from file:///C:/Programs/abce/abce-0.3.tar.gz
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution
option: 'modules'
warnings.warn(msg)
warning: manifest_maker: MANIFEST.in, line 4: path 'template/' cannot
end
with '/'
warning: manifest_maker: MANIFEST.in, line 5: path 'unittest/' cannot
end
with '/'
warning: manifest_maker: MANIFEST.in, line 6: path 'example/' cannot end
with '/'
os.name: nt
Downloading/unpacking pyparsing==1.5.7 (from abce==0.3)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\pyparsing\setup.py)
egg_info for package pyparsing
Downloading/unpacking rpy2 (from abce==0.3)
Running setup.py
(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
Error: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: Tried to guess R's HOME but no R command in the PATH.
Cleaning up...
Command python setup.py egg_info failed with error code 1 in
c:\users\gerald\appdata\local\tem
p\pip_build_Gerald\rpy2
Storing debug log for failure in C:\Users\Gerald\pip\pip.log-> pip.log.............
Using version 2.4.3 (newest of versions: 2.4.3, 2.4.2, 2.4.1, 2.4.0,
2.3.10, 2.3.9, 2.3.8, 2.3.7, 2.3.6, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.3.1,
2.3.0, 2.2.7, 2.2.6, 2.2.5, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0, 2.1.9,
2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 2.0.8)
Downloading from URLhttps://pypi.python.org/packages/source/r/rpy2/rpy2-2.4.3.tar.gz#md5=57e3fda409226dffb543c913c8553cdc
(from https://pypi.python.org/simple/rpy2/)
Running setup.py
(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not foundError: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info—
Reply to this email directly or view it on GitHub
<
https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53829334>.
—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1 (comment)
.
from abce.
Davoud,
Are you intending to do anything regarding this windows install problem?
On Sun, Aug 31, 2014 at 2:02 PM, gerald jensen [email protected] wrote:
Davoud,
changing setup.py didn't make any difference. Still looking for R.dll, it
must be referenced indirectly.
i deleted anything that looked like R from modules and requires. See how
it looks below.
Also some of the templates zip files in the web referenced process you
asked me to follow are older than the full zip in the walkthrough.May i suggest that when you have time, you perform a clean install on
windows and send me the console from python and windows.
Can i uninstall R?thanks.
GerrySETUP.PY
from setuptools import setup
import ossetup(
name='abce',
version='0.3',
author='Davoud Taghawi-Nejad',
author_email='[email protected]',
description='Agent-Based Complete Economy modelling platform',
url='https://github.com/DavoudTaghawiNejad/abce/downloads',
package_dir = {'abce': 'abce'},
packages=['abce'],
modules=['abce_db', 'abcetools', 'postprocess'],
long_description=open('README.rst').read(),
install_requires=['pyparsing==1.5.7', 'numpy','scipy', 'pyzmq'],
data_files=[('abce')],
include_package_data = True,
)On Sun, Aug 31, 2014 at 4:08 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:Hello,
- Thank you, I will change as soon as possible. I am traveling.
- You can open setup.py and delete all references to R. Its actually a
bit
of a bug, because the current version, which you are using, does not neet
R, but I forgot to delete it from setup.pyDavoud
On Aug 28, 2014 11:01 PM, "Gerryjj" [email protected] wrote:Davoud,
i always regard the readme file as definitive for installs and so i
followed that. It's different to the doc html. That's ok, i renamed
abce
to
OLD and started again. I suggest you change the readme to either
reflect
the doc, or point to it.
Anyway.the setup can't find R (it's in the path as Program Files\R now, it
was
originally in a sub folder as R-3.1.1). i can't see what to change in
your
,py so abce can find it). I only installed the 32 bit.
The file structure finishes up with Programs\abce\abce\abce-0.3
i use Programs as the place to put new programs in 8.1 to get round
problems with write permissions for things like models.
(ps. The download is 0.3 not 0.3.1.tar.gz as in doc.)
In the readme sequence the templates were already copied, but i haven't
got
to that step in the re-run.
The log of relevant parts of pip install abce-0.3.tar.gz
is attached.C:\Programs\abce>path
PATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program
Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;C:\Program
Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;C:\MinGW32-xy\bin;C:\Programs\abce\abce-0.3\abce;*C:\Program
Files\R*;C:\Program Files
(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expW
orkbench
regards
GerryOn Fri, Aug 29, 2014 at 7:35 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:Dear Gerryjj,
my research assistant will come back to you with a better solution.
Have
you installed abce?http://davoudtaghawinejad.github.io/abce/installation.html#installation-of-stable-version-windows
particularly:
pip install abce-0.3.1.tar.gz/ The hackish solution would be copying the abce/abce direcory into
the
same directory start.py of the simulation is.
DavoudOn Thu, Aug 28, 2014 at 1:33 AM, Gerryjj [email protected]
wrote:probably finger trouble at my end as a newbie to Python & abce. I
hope
you
can help...
i am using win 8.1.
The \doc reads a little differently to the readme..
the readme states:
copy abce/example to your_model_path::
cd your_model_path
cp ../abce/template/* .
2.In line 3 of start.py: adjust
sys.path.append('your_path_to/abce/lib')
Not sure what you mean by your model path but you can see in the
TREE
command below what i inferred.
Regarding 2. i don't see "sys.path.append" in start.py.
You can see from the path command below how i have set up paths.When i run start.py from the copied templates i get...
C:\Programs\abce-master\template>start.py
Traceback (most recent call last):
File "C:\Programs\abce-master\template\start.py", line 2, in
from firm import Firm
File "C:\Programs\abce-master\template\firm.py", line 2, in
import abce
ImportError: No module named abcePlease advise what steps or changes i am missing, thanks...
The path and tree commands follow.....abce path
C:\Windows\System32>pathPATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;
C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;
C:\Program Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;
C:\MinGW32-xy\bin;
C:\Programs\abce-master\abce\lib;
C:\Program Files(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expWorkbench
abce-tree
C:\Windows\System32>tree c:\programs\abce-master /f
Folder PATH listing for volume Windows
Volume serial number is 0000000A EE6A:1709
C:\PROGRAMS\ABCE-MASTER
│ .gitignore
│ abce-master.zip
│ ABCE.pdf
│ MANIFEST.in
│ README.rst
│ setup.py
│
├───abce
│ │ abcelogger.py
│ │ agent.py
│ │ database.py
│ │ db.py
│ │ firm.py
│ │ firmmultitechnologies.py
│ │ from_gams.py
│ │ household.py
│ │ logger.py
│ │ messaging.py
│ │ postprocess.py
│ │ postprocess.R
│ │ subround.py
│ │ tools.py
│ │ trade.py
│ │ init.py
│ │
│ └───lib
│ └───template
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───doc
│ abcetools.rst
│ Agent_class.rst
│ amazon_ec2.rst
│ conf.py
│ Database.rst
│ examples.rst
│ files.rst
│ Firm.rst
│ FirmMultiTechnologies.rst
│ Household.rst
│ index.rst
│ installation.rst
│ introduction.rst
│ make.bat
│ Makefile
│ messagemodel.jpg
│ Messaging.rst
│ parameters.rst
│ simulation.rst
│ simulation_results.rst
│ sphinxarticle.cls
│ Trade.rst
│ unit_testing.rst
│ Walk_through.rst
│
├───example
│ │ README.rst
│ │
│ ├───2sectors
│ │ agents_parameters.csv
│ │ config.py
│ │ firm.py
│ │ household.py
│ │ script.R
│ │ simulation_parameters.csv
│ │ start.py
│ │
│ └───one_household_one_firm
│ config.py
│ firm.py
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───template
│ abce_templates-0.3.zip
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
└───unittest
agents_parameters.csv
buy.py
config.py
endowment.py
give.py
logger.py
nohup.out
quote_buy.py
sell.py
simulation_parameters.csv
start.py—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1.—
Reply to this email directly or view it on GitHub
<https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53804517>
.
Unpacking c:\programs\abce\abce-0.3.tar.gz
Running setup.py
(path:c:\users\gerald\appdata\local\temp\pip-l9v93e-build\setup.py)
egg_inf
o for package from file:///C:/Programs/abce/abce-0.3.tar.gz
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown
distribution
option: 'modules'
warnings.warn(msg)
warning: manifest_maker: MANIFEST.in, line 4: path 'template/' cannot
end
with '/'
warning: manifest_maker: MANIFEST.in, line 5: path 'unittest/' cannot
end
with '/'
warning: manifest_maker: MANIFEST.in, line 6: path 'example/' cannot
end
with '/'
os.name: nt
Downloading/unpacking pyparsing==1.5.7 (from abce==0.3)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\pyparsing\setup.py)
egg_info for package pyparsing
Downloading/unpacking rpy2 (from abce==0.3)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
Error: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: Tried to guess R's HOME but no R command in the PATH.
Cleaning up...
Command python setup.py egg_info failed with error code 1 in
c:\users\gerald\appdata\local\tem
p\pip_build_Gerald\rpy2
Storing debug log for failure in C:\Users\Gerald\pip\pip.log-> pip.log.............
Using version 2.4.3 (newest of versions: 2.4.3, 2.4.2, 2.4.1, 2.4.0,
2.3.10, 2.3.9, 2.3.8, 2.3.7, 2.3.6, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.3.1,
2.3.0, 2.2.7, 2.2.6, 2.2.5, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0, 2.1.9,
2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 2.0.8)
Downloading from URLhttps://pypi.python.org/packages/source/r/rpy2/rpy2-2.4.3.tar.gz#md5=57e3fda409226dffb543c913c8553cdc
(from https://pypi.python.org/simple/rpy2/)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not foundError: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info—
Reply to this email directly or view it on GitHub
<
https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53829334>.
—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1 (comment)
.
from abce.
I pushed an updated version to master. I am currently traveling, so I have
no access to a windows machine.
I hope this helps.
Davoud
On Sun, Aug 31, 2014 at 6:02 AM, Gerryjj [email protected] wrote:
Davoud,
changing setup.py didn't make any difference. Still looking for R.dll, it
must be referenced indirectly.
i deleted anything that looked like R from modules and requires. See how
it
looks below.
Also some of the templates zip files in the web referenced process you
asked me to follow are older than the full zip in the walkthrough.May i suggest that when you have time, you perform a clean install on
windows and send me the console from python and windows.
Can i uninstall R?thanks.
GerrySETUP.PY
from setuptools import setup
import ossetup(
name='abce',
version='0.3',
author='Davoud Taghawi-Nejad',
author_email='[email protected]',
description='Agent-Based Complete Economy modelling platform',
url='https://github.com/DavoudTaghawiNejad/abce/downloads',
package_dir = {'abce': 'abce'},
packages=['abce'],
modules=['abce_db', 'abcetools', 'postprocess'],
long_description=open('README.rst').read(),
install_requires=['pyparsing==1.5.7', 'numpy','scipy', 'pyzmq'],
data_files=[('abce')],
include_package_data = True,
)On Sun, Aug 31, 2014 at 4:08 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:Hello,
- Thank you, I will change as soon as possible. I am traveling.
- You can open setup.py and delete all references to R. Its actually a
bit
of a bug, because the current version, which you are using, does not
neet
R, but I forgot to delete it from setup.pyDavoud
On Aug 28, 2014 11:01 PM, "Gerryjj" [email protected] wrote:Davoud,
i always regard the readme file as definitive for installs and so i
followed that. It's different to the doc html. That's ok, i renamed
abce
to
OLD and started again. I suggest you change the readme to either
reflect
the doc, or point to it.
Anyway.the setup can't find R (it's in the path as Program Files\R now, it
was
originally in a sub folder as R-3.1.1). i can't see what to change in
your
,py so abce can find it). I only installed the 32 bit.
The file structure finishes up with Programs\abce\abce\abce-0.3
i use Programs as the place to put new programs in 8.1 to get round
problems with write permissions for things like models.
(ps. The download is 0.3 not 0.3.1.tar.gz as in doc.)
In the readme sequence the templates were already copied, but i
haven't
got
to that step in the re-run.
The log of relevant parts of pip install abce-0.3.tar.gz
is attached.C:\Programs\abce>path
PATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program
Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;C:\Program
Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;C:\MinGW32-xy\bin;C:\Programs\abce\abce-0.3\abce;*C:\Program
Files\R*;C:\Program Files
(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expW
orkbench
regards
GerryOn Fri, Aug 29, 2014 at 7:35 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:Dear Gerryjj,
my research assistant will come back to you with a better solution.
Have
you installed abce?http://davoudtaghawinejad.github.io/abce/installation.html#installation-of-stable-version-windows
particularly:
pip install abce-0.3.1.tar.gz/ The hackish solution would be copying the abce/abce direcory into
the
same directory start.py of the simulation is.
DavoudOn Thu, Aug 28, 2014 at 1:33 AM, Gerryjj [email protected]
wrote:probably finger trouble at my end as a newbie to Python & abce. I
hope
you
can help...
i am using win 8.1.
The \doc reads a little differently to the readme..
the readme states:
copy abce/example to your_model_path::
cd your_model_path
cp ../abce/template/* .
2.In line 3 of start.py: adjust
sys.path.append('your_path_to/abce/lib')
Not sure what you mean by your model path but you can see in the
TREE
command below what i inferred.
Regarding 2. i don't see "sys.path.append" in start.py.
You can see from the path command below how i have set up paths.When i run start.py from the copied templates i get...
C:\Programs\abce-master\template>start.py
Traceback (most recent call last):
File "C:\Programs\abce-master\template\start.py", line 2, in
from firm import Firm
File "C:\Programs\abce-master\template\firm.py", line 2, in
import abce
ImportError: No module named abcePlease advise what steps or changes i am missing, thanks...
The path and tree commands follow.....abce path
C:\Windows\System32>pathPATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;
C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;
C:\Program Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;
C:\MinGW32-xy\bin;
C:\Programs\abce-master\abce\lib;
C:\Program Files(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expWorkbench
abce-tree
C:\Windows\System32>tree c:\programs\abce-master /f
Folder PATH listing for volume Windows
Volume serial number is 0000000A EE6A:1709
C:\PROGRAMS\ABCE-MASTER
│ .gitignore
│ abce-master.zip
│ ABCE.pdf
│ MANIFEST.in
│ README.rst
│ setup.py
│
├───abce
│ │ abcelogger.py
│ │ agent.py
│ │ database.py
│ │ db.py
│ │ firm.py
│ │ firmmultitechnologies.py
│ │ from_gams.py
│ │ household.py
│ │ logger.py
│ │ messaging.py
│ │ postprocess.py
│ │ postprocess.R
│ │ subround.py
│ │ tools.py
│ │ trade.py
│ │ init.py
│ │
│ └───lib
│ └───template
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───doc
│ abcetools.rst
│ Agent_class.rst
│ amazon_ec2.rst
│ conf.py
│ Database.rst
│ examples.rst
│ files.rst
│ Firm.rst
│ FirmMultiTechnologies.rst
│ Household.rst
│ index.rst
│ installation.rst
│ introduction.rst
│ make.bat
│ Makefile
│ messagemodel.jpg
│ Messaging.rst
│ parameters.rst
│ simulation.rst
│ simulation_results.rst
│ sphinxarticle.cls
│ Trade.rst
│ unit_testing.rst
│ Walk_through.rst
│
├───example
│ │ README.rst
│ │
│ ├───2sectors
│ │ agents_parameters.csv
│ │ config.py
│ │ firm.py
│ │ household.py
│ │ script.R
│ │ simulation_parameters.csv
│ │ start.py
│ │
│ └───one_household_one_firm
│ config.py
│ firm.py
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───template
│ abce_templates-0.3.zip
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
└───unittest
agents_parameters.csv
buy.py
config.py
endowment.py
give.py
logger.py
nohup.out
quote_buy.py
sell.py
simulation_parameters.csv
start.py—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1.—
Reply to this email directly or view it on GitHub
<https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53804517>
.
Unpacking c:\programs\abce\abce-0.3.tar.gz
Running setup.py
(path:c:\users\gerald\appdata\local\temp\pip-l9v93e-build\setup.py)
egg_inf
o for package from file:///C:/Programs/abce/abce-0.3.tar.gz
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown
distribution
option: 'modules'
warnings.warn(msg)
warning: manifest_maker: MANIFEST.in, line 4: path 'template/' cannot
end
with '/'
warning: manifest_maker: MANIFEST.in, line 5: path 'unittest/' cannot
end
with '/'
warning: manifest_maker: MANIFEST.in, line 6: path 'example/' cannot
end
with '/'
os.name: nt
Downloading/unpacking pyparsing==1.5.7 (from abce==0.3)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\pyparsing\setup.py)
egg_info for package pyparsing
Downloading/unpacking rpy2 (from abce==0.3)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
Error: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: Tried to guess R's HOME but no R command in the PATH.
Cleaning up...
Command python setup.py egg_info failed with error code 1 in
c:\users\gerald\appdata\local\tem
p\pip_build_Gerald\rpy2
Storing debug log for failure in C:\Users\Gerald\pip\pip.log-> pip.log.............
Using version 2.4.3 (newest of versions: 2.4.3, 2.4.2, 2.4.1, 2.4.0,
2.3.10, 2.3.9, 2.3.8, 2.3.7, 2.3.6, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.3.1,
2.3.0, 2.2.7, 2.2.6, 2.2.5, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0, 2.1.9,
2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 2.0.8)
Downloading from URL(from https://pypi.python.org/simple/rpy2/)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not foundError: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info—
Reply to this email directly or view it on GitHub
<https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53829334>
.
—
Reply to this email directly or view it on GitHub
<
https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53965900>.
—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1 (comment)
.
from abce.
Davoud,
thanks for the update, you may close this.
However there is a separate problem and i will raise another issue when i
get time to document it.
Please let me know if you prefer to go offline to github or when when you
are back from travelling.
On Wed, Sep 10, 2014 at 8:20 PM, Davoud Taghawi-Nejad <
[email protected]> wrote:
I pushed an updated version to master. I am currently traveling, so I have
no access to a windows machine.
I hope this helps.Davoud
On Sun, Aug 31, 2014 at 6:02 AM, Gerryjj [email protected]
wrote:Davoud,
changing setup.py didn't make any difference. Still looking for R.dll,
it
must be referenced indirectly.
i deleted anything that looked like R from modules and requires. See how
it
looks below.
Also some of the templates zip files in the web referenced process you
asked me to follow are older than the full zip in the walkthrough.May i suggest that when you have time, you perform a clean install on
windows and send me the console from python and windows.
Can i uninstall R?thanks.
GerrySETUP.PY
from setuptools import setup
import ossetup(
name='abce',
version='0.3',
author='Davoud Taghawi-Nejad',
author_email='[email protected]',
description='Agent-Based Complete Economy modelling platform',
url='https://github.com/DavoudTaghawiNejad/abce/downloads',
package_dir = {'abce': 'abce'},
packages=['abce'],
modules=['abce_db', 'abcetools', 'postprocess'],
long_description=open('README.rst').read(),
install_requires=['pyparsing==1.5.7', 'numpy','scipy', 'pyzmq'],
data_files=[('abce')],
include_package_data = True,
)On Sun, Aug 31, 2014 at 4:08 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:Hello,
- Thank you, I will change as soon as possible. I am traveling.
- You can open setup.py and delete all references to R. Its actually
a
bit
of a bug, because the current version, which you are using, does not
neet
R, but I forgot to delete it from setup.pyDavoud
On Aug 28, 2014 11:01 PM, "Gerryjj" [email protected] wrote:Davoud,
i always regard the readme file as definitive for installs and so i
followed that. It's different to the doc html. That's ok, i renamed
abce
to
OLD and started again. I suggest you change the readme to either
reflect
the doc, or point to it.
Anyway.the setup can't find R (it's in the path as Program Files\R now,
it
was
originally in a sub folder as R-3.1.1). i can't see what to change
in
your
,py so abce can find it). I only installed the 32 bit.
The file structure finishes up with Programs\abce\abce\abce-0.3
i use Programs as the place to put new programs in 8.1 to get round
problems with write permissions for things like models.
(ps. The download is 0.3 not 0.3.1.tar.gz as in doc.)
In the readme sequence the templates were already copied, but i
haven't
got
to that step in the re-run.
The log of relevant parts of pip install abce-0.3.tar.gz
is attached.C:\Programs\abce>path
PATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program
Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;C:\Program
Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;C:\MinGW32-xy\bin;C:\Programs\abce\abce-0.3\abce;*C:\Program
Files\R*;C:\Program Files
(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expW
orkbench
regards
GerryOn Fri, Aug 29, 2014 at 7:35 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:Dear Gerryjj,
my research assistant will come back to you with a better
solution.
Have
you installed abce?http://davoudtaghawinejad.github.io/abce/installation.html#installation-of-stable-version-windows
particularly:
pip install abce-0.3.1.tar.gz/ The hackish solution would be copying the abce/abce direcory
into
the
same directory start.py of the simulation is.
DavoudOn Thu, Aug 28, 2014 at 1:33 AM, Gerryjj [email protected]
wrote:
probably finger trouble at my end as a newbie to Python & abce.
I
hope
you
can help...
i am using win 8.1.
The \doc reads a little differently to the readme..
the readme states:
copy abce/example to your_model_path::
cd your_model_path
cp ../abce/template/* .
2.In line 3 of start.py: adjust
sys.path.append('your_path_to/abce/lib')
Not sure what you mean by your model path but you can see in the
TREE
command below what i inferred.
Regarding 2. i don't see "sys.path.append" in start.py.
You can see from the path command below how i have set up paths.When i run start.py from the copied templates i get...
C:\Programs\abce-master\template>start.py
Traceback (most recent call last):
File "C:\Programs\abce-master\template\start.py", line 2, in
from firm import Firm
File "C:\Programs\abce-master\template\firm.py", line 2, in
import abce
ImportError: No module named abcePlease advise what steps or changes i am missing, thanks...
The path and tree commands follow.....abce path
C:\Windows\System32>pathPATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;
C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;
C:\Program Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;
C:\MinGW32-xy\bin;
C:\Programs\abce-master\abce\lib;
C:\Program Files(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expWorkbench
abce-tree
C:\Windows\System32>tree c:\programs\abce-master /f
Folder PATH listing for volume Windows
Volume serial number is 0000000A EE6A:1709
C:\PROGRAMS\ABCE-MASTER
│ .gitignore
│ abce-master.zip
│ ABCE.pdf
│ MANIFEST.in
│ README.rst
│ setup.py
│
├───abce
│ │ abcelogger.py
│ │ agent.py
│ │ database.py
│ │ db.py
│ │ firm.py
│ │ firmmultitechnologies.py
│ │ from_gams.py
│ │ household.py
│ │ logger.py
│ │ messaging.py
│ │ postprocess.py
│ │ postprocess.R
│ │ subround.py
│ │ tools.py
│ │ trade.py
│ │ init.py
│ │
│ └───lib
│ └───template
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───doc
│ abcetools.rst
│ Agent_class.rst
│ amazon_ec2.rst
│ conf.py
│ Database.rst
│ examples.rst
│ files.rst
│ Firm.rst
│ FirmMultiTechnologies.rst
│ Household.rst
│ index.rst
│ installation.rst
│ introduction.rst
│ make.bat
│ Makefile
│ messagemodel.jpg
│ Messaging.rst
│ parameters.rst
│ simulation.rst
│ simulation_results.rst
│ sphinxarticle.cls
│ Trade.rst
│ unit_testing.rst
│ Walk_through.rst
│
├───example
│ │ README.rst
│ │
│ ├───2sectors
│ │ agents_parameters.csv
│ │ config.py
│ │ firm.py
│ │ household.py
│ │ script.R
│ │ simulation_parameters.csv
│ │ start.py
│ │
│ └───one_household_one_firm
│ config.py
│ firm.py
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───template
│ abce_templates-0.3.zip
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
└───unittest
agents_parameters.csv
buy.py
config.py
endowment.py
give.py
logger.py
nohup.out
quote_buy.py
sell.py
simulation_parameters.csv
start.py—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1.—
Reply to this email directly or view it on GitHub
<https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53804517>
.
Unpacking c:\programs\abce\abce-0.3.tar.gz
Running setup.py
(path:c:\users\gerald\appdata\local\temp\pip-l9v93e-build\setup.py)
egg_inf
o for package from file:///C:/Programs/abce/abce-0.3.tar.gz
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown
distribution
option: 'modules'
warnings.warn(msg)
warning: manifest_maker: MANIFEST.in, line 4: path 'template/'
cannot
end
with '/'
warning: manifest_maker: MANIFEST.in, line 5: path 'unittest/'
cannot
end
with '/'
warning: manifest_maker: MANIFEST.in, line 6: path 'example/' cannot
end
with '/'
os.name: nt
Downloading/unpacking pyparsing==1.5.7 (from abce==0.3)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\pyparsing\setup.py)
egg_info for package pyparsing
Downloading/unpacking rpy2 (from abce==0.3)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
Error: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: Tried to guess R's HOME but no R command in the PATH.
Cleaning up...
Command python setup.py egg_info failed with error code 1 in
c:\users\gerald\appdata\local\tem
p\pip_build_Gerald\rpy2
Storing debug log for failure in C:\Users\Gerald\pip\pip.log-> pip.log.............
Using version 2.4.3 (newest of versions: 2.4.3, 2.4.2, 2.4.1, 2.4.0,
2.3.10, 2.3.9, 2.3.8, 2.3.7, 2.3.6, 2.3.5, 2.3.4, 2.3.3, 2.3.2,
2.3.1,
2.3.0, 2.2.7, 2.2.6, 2.2.5, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0,
2.1.9,
2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.0,
2.0.8)
Downloading from URL(from https://pypi.python.org/simple/rpy2/)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not foundError: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info—
Reply to this email directly or view it on GitHub
<https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53829334>
.
—
Reply to this email directly or view it on GitHub
<https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53965900>
.
—
Reply to this email directly or view it on GitHub
<
https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53977586>.
—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1 (comment)
.
from abce.
Dear Gerry,
the last couple of weeks I tried intensively to bring forward the windows
version of ABCE. I had no success. So I am afraid I will for now stop
windows development efforts.
Sorry to wast your time
Davoud
On Fri Sep 12 2014 at 10:53:26 PM Gerryjj [email protected] wrote:
Davoud,
thanks for the update, you may close this.
However there is a separate problem and i will raise another issue when i
get time to document it.
Please let me know if you prefer to go offline to github or when when you
are back from travelling.On Wed, Sep 10, 2014 at 8:20 PM, Davoud Taghawi-Nejad <
[email protected]> wrote:I pushed an updated version to master. I am currently traveling, so I
have
no access to a windows machine.
I hope this helps.Davoud
On Sun, Aug 31, 2014 at 6:02 AM, Gerryjj [email protected]
wrote:Davoud,
changing setup.py didn't make any difference. Still looking for R.dll,
it
must be referenced indirectly.
i deleted anything that looked like R from modules and requires. See
how
it
looks below.
Also some of the templates zip files in the web referenced process you
asked me to follow are older than the full zip in the walkthrough.May i suggest that when you have time, you perform a clean install on
windows and send me the console from python and windows.
Can i uninstall R?thanks.
GerrySETUP.PY
from setuptools import setup
import ossetup(
name='abce',
version='0.3',
author='Davoud Taghawi-Nejad',
author_email='[email protected]',
description='Agent-Based Complete Economy modelling platform',
url='https://github.com/DavoudTaghawiNejad/abce/downloads',
package_dir = {'abce': 'abce'},
packages=['abce'],
modules=['abce_db', 'abcetools', 'postprocess'],
long_description=open('README.rst').read(),
install_requires=['pyparsing==1.5.7', 'numpy','scipy', 'pyzmq'],
data_files=[('abce')],
include_package_data = True,
)On Sun, Aug 31, 2014 at 4:08 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:Hello,
- Thank you, I will change as soon as possible. I am traveling.
- You can open setup.py and delete all references to R. Its
actually
a
bit
of a bug, because the current version, which you are using, does not
neet
R, but I forgot to delete it from setup.pyDavoud
On Aug 28, 2014 11:01 PM, "Gerryjj" [email protected]
wrote:Davoud,
i always regard the readme file as definitive for installs and so
i
followed that. It's different to the doc html. That's ok, i
renamed
abce
to
OLD and started again. I suggest you change the readme to either
reflect
the doc, or point to it.
Anyway.the setup can't find R (it's in the path as Program Files\R now,
it
was
originally in a sub folder as R-3.1.1). i can't see what to change
in
your
,py so abce can find it). I only installed the 32 bit.
The file structure finishes up with Programs\abce\abce\abce-0.3
i use Programs as the place to put new programs in 8.1 to get
round
problems with write permissions for things like models.
(ps. The download is 0.3 not 0.3.1.tar.gz as in doc.)
In the readme sequence the templates were already copied, but i
haven't
got
to that step in the re-run.
The log of relevant parts of pip install abce-0.3.tar.gz
is attached.C:\Programs\abce>path
PATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program
Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;C:\Program
Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;C:\MinGW32-xy\bin;C:\Programs\abce\abce-0.3\abce;*C:\Program
Files\R*;C:\Program Files
(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expW
orkbench
regards
GerryOn Fri, Aug 29, 2014 at 7:35 AM, Davoud Taghawi-Nejad <
[email protected]> wrote:Dear Gerryjj,
my research assistant will come back to you with a better
solution.
Have
you installed abce?http://davoudtaghawinejad.github.io/abce/installation.html#installation-of-stable-version-windows
particularly:
pip install abce-0.3.1.tar.gz/ The hackish solution would be copying the abce/abce direcory
into
the
same directory start.py of the simulation is.
DavoudOn Thu, Aug 28, 2014 at 1:33 AM, Gerryjj <
[email protected]>wrote:
probably finger trouble at my end as a newbie to Python &
abce.
I
hope
you
can help...
i am using win 8.1.
The \doc reads a little differently to the readme..
the readme states:
copy abce/example to your_model_path::
cd your_model_path
cp ../abce/template/* .
2.In line 3 of start.py: adjust
sys.path.append('your_path_to/abce/lib')
Not sure what you mean by your model path but you can see in
the
TREE
command below what i inferred.
Regarding 2. i don't see "sys.path.append" in start.py.
You can see from the path command below how i have set up
paths.When i run start.py from the copied templates i get...
C:\Programs\abce-master\template>start.py
Traceback (most recent call last):
File "C:\Programs\abce-master\template\start.py", line 2, in
from firm import Firm
File "C:\Programs\abce-master\template\firm.py", line 2, in
import abce
ImportError: No module named abcePlease advise what steps or changes i am missing, thanks...
The path and tree commands follow.....abce path
C:\Windows\System32>pathPATH=C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PyQt4;
C:\Programs\Pure;C:\Programs\Pure\lib;C:\Program Files
(x86)\Java\jdk1.7.0_65\bin;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\gnuplot\binary;
C:\Program Files (x86)\pythonxy\SciTE-3.3.2-3;C:\Program Files
(x86)\pythonxy\console;
C:\MinGW32-xy\bin;
C:\Programs\abce-master\abce\lib;
C:\Program Files(x86)\Vensim\Venple.exe;C:\Programs\Pure;C:\Programs\EMAworkbench-master\src;C:\Programs\EMAworkbench-master\src\examples;C:\Programs\EMAworkbench-master\src\expWorkbench
abce-tree
C:\Windows\System32>tree c:\programs\abce-master /f
Folder PATH listing for volume Windows
Volume serial number is 0000000A EE6A:1709
C:\PROGRAMS\ABCE-MASTER
│ .gitignore
│ abce-master.zip
│ ABCE.pdf
│ MANIFEST.in
│ README.rst
│ setup.py
│
├───abce
│ │ abcelogger.py
│ │ agent.py
│ │ database.py
│ │ db.py
│ │ firm.py
│ │ firmmultitechnologies.py
│ │ from_gams.py
│ │ household.py
│ │ logger.py
│ │ messaging.py
│ │ postprocess.py
│ │ postprocess.R
│ │ subround.py
│ │ tools.py
│ │ trade.py
│ │ init.py
│ │
│ └───lib
│ └───template
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───doc
│ abcetools.rst
│ Agent_class.rst
│ amazon_ec2.rst
│ conf.py
│ Database.rst
│ examples.rst
│ files.rst
│ Firm.rst
│ FirmMultiTechnologies.rst
│ Household.rst
│ index.rst
│ installation.rst
│ introduction.rst
│ make.bat
│ Makefile
│ messagemodel.jpg
│ Messaging.rst
│ parameters.rst
│ simulation.rst
│ simulation_results.rst
│ sphinxarticle.cls
│ Trade.rst
│ unit_testing.rst
│ Walk_through.rst
│
├───example
│ │ README.rst
│ │
│ ├───2sectors
│ │ agents_parameters.csv
│ │ config.py
│ │ firm.py
│ │ household.py
│ │ script.R
│ │ simulation_parameters.csv
│ │ start.py
│ │
│ └───one_household_one_firm
│ config.py
│ firm.py
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
├───template
│ abce_templates-0.3.zip
│ agents_parameters.csv
│ config.py
│ firm.py
│ firm.pyc
│ household.py
│ script.R
│ simulation_parameters.csv
│ start.py
│
└───unittest
agents_parameters.csv
buy.py
config.py
endowment.py
give.py
logger.py
nohup.out
quote_buy.py
sell.py
simulation_parameters.csv
start.py—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1.—
Reply to this email directly or view it on GitHub
<https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53804517>
.
Unpacking c:\programs\abce\abce-0.3.tar.gz
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip-l9v93e-build\setup.py)
egg_inf
o for package from file:///C:/Programs/abce/abce-0.3.tar.gz
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown
distribution
option: 'modules'
warnings.warn(msg)
warning: manifest_maker: MANIFEST.in, line 4: path 'template/'
cannot
end
with '/'
warning: manifest_maker: MANIFEST.in, line 5: path 'unittest/'
cannot
end
with '/'
warning: manifest_maker: MANIFEST.in, line 6: path 'example/'
cannot
end
with '/'
os.name: nt
Downloading/unpacking pyparsing==1.5.7 (from abce==0.3)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\pyparsing\setup.py)
egg_info for package pyparsing
Downloading/unpacking rpy2 (from abce==0.3)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
Error: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to
pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: Tried to guess R's HOME but no R command in the PATH.
Cleaning up...
Command python setup.py egg_info failed with error code 1 in
c:\users\gerald\appdata\local\tem
p\pip_build_Gerald\rpy2
Storing debug log for failure in C:\Users\Gerald\pip\pip.log-> pip.log.............
Using version 2.4.3 (newest of versions: 2.4.3, 2.4.2, 2.4.1,
2.4.0,
2.3.10, 2.3.9, 2.3.8, 2.3.7, 2.3.6, 2.3.5, 2.3.4, 2.3.3, 2.3.2,
2.3.1,
2.3.0, 2.2.7, 2.2.6, 2.2.5, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0,
2.1.9,
2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.0,
2.0.8)
Downloading from URL(from https://pypi.python.org/simple/rpy2/)
Running setup.py(path:c:\users\gerald\appdata\local\temp\pip_build_Gerald\rpy2\setup.py)
egg_info for package rpy2
running egg_info
creating pip-egg-info\rpy2.egg-info
writing pip-egg-info\rpy2.egg-info\PKG-INFO
writing top-level names to
pip-egg-info\rpy2.egg-info\top_level.txt
writing dependency_links to
pip-egg-info\rpy2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\rpy2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not foundError: Tried to guess R's HOME but no R command in the PATH.
Complete output from command python setup.py egg_info:
running egg_info—
Reply to this email directly or view it on GitHub
<https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53829334>
.
—
Reply to this email directly or view it on GitHub
<https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53965900>
.
—
Reply to this email directly or view it on GitHub
<https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-53977586>
.
—
Reply to this email directly or view it on GitHub
<
https://github.com/DavoudTaghawiNejad/abce/issues/1#issuecomment-55096614>.
—
Reply to this email directly or view it on GitHub
DavoudTaghawiNejad#1 (comment)
.
from abce.
Hi Davoud,
I saw the installation instructions for Ubuntu and Windows.
I suppose that means it does not run on Mac then, does it?
Thanks & Regards,
Tina
from abce.
Adding to the above, installation on mac worked on the first attempt...Thanks, T
from abce.
Hello,
ABCE has been substantially rewritten and this issue is resolved. ABCE 0.5 is currently in an alpha release.
from abce.
Related Issues (20)
- space in the title for graph log variable HOT 1
- Issue when running jupyter example HOT 1
- abce firms 50000 example HOT 1
- issue with printing offer
- Problem with hashing HOT 1
- Increase performance HOT 1
- Integrate ABsinthCE into a processorgroup
- is there link agent like the one in Netlogo? HOT 2
- simulation.graphs() HOT 4
- Trade logging error HOT 4
- Walk Trough doc page is not correct/outdated? HOT 1
- Individual trade log throws an exception HOT 7
- Walkthrough not updated in https://abce.readthedocs.io HOT 3
- Issue when building agents HOT 4
- Error when running abcEconomics using the latest flexx version (0.80) HOT 9
- OverflowError: Python int too large to convert to C long HOT 4
- abcEconomics.Trade is undefined. HOT 2
- Mesa example not working HOT 3
- Jupyter Tutorial: dealer not selling on round 0 HOT 5
- NotEnoughGoods called without needed arguments in Firm produce() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abce.