Hi Carlos
On 19/04/12 07:14, Carlos Mauro Cardenas Fernandez wrote:
Some tips o question ?
I use the xcode, git, svn and I have managed to download the package
from source ASCEND "trunk". All good. In the next step Download the
jhbuild as Linux started to install the packages, everything is
installed gtk / inst / *, then i installed the scons from sources to
the folder gtk / inst to keep things that way of development. I
installed from Easy_ way too.
When compiling ASCEND I realized I had some shortcomings but
overlooked but using test.py having the default version of
python2.7 and python version of gtk / inst / bin always were
asking me to have both a file test.py2.7 so test.py.27 copied
the file, yet after spending called test.py that the
environment variables, and then stopped because the modules
called and ascpy dl. So good to recompile the 2.7 I thought
there was the problem.
Don't worry too much about the 'test.py' code. Start with the CUnit
tests first of all, and make sure they're OK. Then try the couple of C++
test programs that are in ascxx directory. Then test the GUI. We can
work on fixing up the test.py tests, but they are definitely in need of
maintenance.
Then look on the internet here where for January and February
also had similar problems to mine so look in python and also
note that the dl is deprecated: "Deprecated since version 2.6:
The dl module Has Been removed in Python 3.0. Use the ctypes
module instead. "
You should investigate where the Python 'dl' module is being used in
ASCEND. As I recall it was only to provide a value of a constant, not
actually executing code. But you should try to check that.
So in my proposal will be passed to use ctype dl. But to get
by copy of version 2.5 or 2.6 dl the version of python version
2.7 now installed jhbuild. And I got out of step, but even so
I Salian some problems related to PAHT_PKGCONFIG of graphviz
library and as I had not install pkg-config, so recompile
ASCEND and I notice that also dint found sundails swig. Then i
installed them both with the dependence pcre-8.30.zip.
Creo que usted esta usando el Google Translate, verdad? Hay cosas en lo
que escribe que no salen bien. Si no hablas ingles, pues, prefiero que
hablamos en espanol, sobre todo cuando hablamos solo nosotros.
Wow you had to install PCRE as well? What was requiring that one? SWIG?
With them ASCEND compilation looks much better. But I continue
to have problems with the execution of test.py
Now I have this error:
Traceback (most recent call last):
File "/ Users/lucialoyola/ascen/test.py2.7", line 1696, in
<module>
unittest.main ()
File "/
System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py",
line 94, in __ init__
self.parseArgs (argv)
File "/
System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py",
line 149, in parseArgs
self.createTests ()
File "/
System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py",
line 158, in createTests
self.module)
File "/
System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py",
line 128, in loadTestsFromNames
suites = [self.loadTestsFromName (name, module) for name
in names]
File "/
System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py",
line 100, in loadTestsFromName
parent, obj = obj, getattr (obj, part)
AttributeError: 'module' object has no attribute''
Logically if I comment the line 1969 and I get no error .
This looks like a bug in the usage of 'unittest', don't you think? Try a
small standalone test (write it yourself) to maybe check that.
To use the ascend / pygtk / ascend I get the following:
ASCENDSOLVERS = / Users / lucialoyola / ascending :/ Users
/ lucialoyola / ascending / pygtk / Solvers
('PYTHON =', '/ usr / bin / python')
('Script =', '/ Users / lucialoyola / ascending / pygtk /
PyGTK.bundle / python / ascend')
ascend: Could not resolve realpath "/ Users / lucialoyola /
ascending / pygtk / PyGTK.bundle / python / ascend"
Since this reacionado to unittest and is where I stayed and I
need help getting out of this step.
You should only use the 'pygtk/ascend' script from the final installed
location. If running from inside your working directory, use
'pygtk/ascdev' instead.
I also saw a suggestion of John Pye on going from
LD_LIBRARY_PATH to DYLD_LIBRARY_PATH in the code I made.
That doesn't look like the problem there.
Now I have a better ide of where I go in the project so that
opens some bug in the system of mantis. I found only 3 are
still open Aque John yet, but not related to this.
??? "Aque"?
I am using Xcode 4.2 (828) on a MacBook Air Intel Core i5 with
Lion. 10.7.
Cheers
JP
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Ascend-sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ascend-sim-users