EN-FORUM.AT-43.COM Forum Index

Official AT-43 forum by RACKHAM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pyAT43, linux/mac/windows calculator (29/07 pyAT43-v2-alpha)

Goto page 1, 2, 3, 4, 5, 6, 7  Next  
 
Post new topic   Reply to topic    EN-FORUM.AT-43.COM Forum Index -> Strategy, armies and battle reports
View previous topic :: View next topic  
Author Message
DiCiCat



Joined: 19 Feb 2008
Posts: 128
Location: France

PostPosted: Thu Jun 12, 2008 1:01 pm    Post subject: pyAT43, linux/mac/windows calculator (29/07 pyAT43-v2-alpha) Reply with quote

pyAT43 is a calculator/company generator for AT43.
It is not as much complete than the well known Easy-at43 of Nazgul, but it works on Linux, mac (and secondary windows).

The software permit to create rules conform company and return a simple pdf file.
All versions are downloadable from here:
http://homepage.mac.com/michaton/pyre/

-------------------------------------------------------------
On Linux, you must install

-python 2.4 (or newer) (already installed on all major distributions)

Moreover, software needs:
- python-wxgtk (to instal wxpython)
- python-reportlab
- python-imaging

All this should be downloadable in your favorites distribution's packages.
Download pyAT43-vX.Y.Z.zip
Unzip it where you want and clic on startup.py.

You can also use deb or rpm file.

-------------------------------------------------------------------------
On macosx, python and wxpython are already installed. You just have to add reportlab, which is a simple folder to move on the right place in your system, and start pyAT43.

A script do this for you.
Download pyAT43-vX.Y.Z-osx and clic on StartuppyAT43.

------------------------------------------------------------------------
For windows, you can use this package. The displayed soft is somewhat ugly, and it looks better with sources, but this package permit to use the soft without any installations and without specific permissions on the computer (you can use it from an USB key on your office's PC for exemple).
Download pyAT43-vX.Y.Z-win.zip


Last edited by DiCiCat on Thu Jul 29, 2010 4:50 pm; edited 79 times in total
Back to top
View user's profile Send private message
DiCiCat



Joined: 19 Feb 2008
Posts: 128
Location: France

PostPosted: Thu Jun 12, 2008 1:05 pm    Post subject: Reply with quote

This is the first multilingual version, so, the translation is probably not perfect.
If you find some strange messages or error in the interface, juste reply with the modifications to apply :p
Back to top
View user's profile Send private message
Basileus



Joined: 13 Jan 2007
Posts: 805
Location: Hamburg, Germany

PostPosted: Thu Jun 12, 2008 1:14 pm    Post subject: Reply with quote

('aight, lets download this...) Uh, finally something for Mac!!! Yes! Now, keep improving this thing please and don't let it be forgotten down the grid Very Happy
_________________
The archive and my own stuff.
Back to top
View user's profile Send private message Visit poster's website
DiCiCat



Joined: 19 Feb 2008
Posts: 128
Location: France

PostPosted: Thu Jun 12, 2008 1:21 pm    Post subject: Reply with quote

In fact it is not really designed for mac but for Linux.
I use it for my personnal use for more than one month now but i only diffuse it for less than 2 weeks on french version.
English version is only beta and be finished this morning, so....

The choosed technologie make the software usable on linux (sure it was designed for :p), windows (i provide a all-in-one binarie for this platform cause python/gtk is really painfull to install on win) and on mac.
But for mac, it's not confirmed because nobody on french forum have tried to use it for now on a mac, and i don't have one to test. Normally it should works. If not, juste tell me the problem.
Back to top
View user's profile Send private message
Basileus



Joined: 13 Jan 2007
Posts: 805
Location: Hamburg, Germany

PostPosted: Thu Jun 12, 2008 1:26 pm    Post subject: Reply with quote

I am also failing to install it on my Mac. Actually, I can't even find that software you're talking about and which needs to be installed first Embarassed Embarassed Well, too early to cheer up Wink
_________________
The archive and my own stuff.
Back to top
View user's profile Send private message Visit poster's website
DiCiCat



Joined: 19 Feb 2008
Posts: 128
Location: France

PostPosted: Thu Jun 12, 2008 1:33 pm    Post subject: Reply with quote

Edit: suppress to avoid confusion

Last edited by DiCiCat on Fri Jun 26, 2009 10:07 am; edited 1 time in total
Back to top
View user's profile Send private message
CCotD



Joined: 27 Oct 2006
Posts: 510
Location: Corridor 159

PostPosted: Thu Jun 12, 2008 2:38 pm    Post subject: Reply with quote

People actually use Python? Wow.

Thanks though for providing an alternative for those who use alternative OSes.

What would be great is if there were a website that had this all through a web interface. Then anyone, with any OS could use it as long as they had a browser.

Greatly appreciate your efforts and will definitely download and check it out.

CCotD'
_________________
As I was growing up I was told I could be anything I wanted..... so I became an Asshole.
Back to top
View user's profile Send private message Visit poster's website
Havoc



Joined: 30 Dec 2006
Posts: 2089
Location: Stockholm, Sweden

PostPosted: Thu Jun 12, 2008 3:26 pm    Post subject: Reply with quote

CCotD wrote:
People actually use Python? Wow.


I think the most famous use of Python is EVE Online.
Back to top
View user's profile Send private message
Gurth



Joined: 07 Jun 2007
Posts: 478
Location: Zoutelande, Netherlands

PostPosted: Thu Jun 12, 2008 4:32 pm    Post subject: Re: pyAT43, AT43 calculator for Linux/mac Reply with quote

DiCiCat wrote:
On mac, you also have to install gkt, python and the required modules.

Python comes as standard with Mac OS X:
Code:
Shadowland:~ gurth$ python -V
Python 2.5.1
Shadowland:~ gurth$

This is under OS X 10.5.3 (the current version), but even 10.3 had Python 2.something as well; I don't know about 10.2 or before, but I doubt many people still use that anyway. You would have to get GTK and the Python modules, though, as they don't come pre-installed AFAIK. Now if only I could be bothered to mess with Fink after my very disappointing experiences with it some years ago Smile

Still, good work, my compliments on actually getting something like this finished Smile

CCotD wrote:
People actually use Python? Wow.

How is that remarkable? IMHO it's one of the easier languages to get into, yet it's powerful enough to write real and complex programs in — not to mention it's very portable.

CCotD wrote:
What would be great is if there were a website that had this all through a web interface. Then anyone, with any OS could use it as long as they had a browser.

That might be doable using DiCiCat's code, since it's pretty easy to write CGI scripts in Python — depending on how the program is actually put together, it could be fairly easy to turn it into one of those.
_________________
… I know all this and more …

Another AT-43 website, which also happens to hold the M.Ind company creation programme
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DiCiCat



Joined: 19 Feb 2008
Posts: 128
Location: France

PostPosted: Thu Jun 12, 2008 4:47 pm    Post subject: Reply with quote

argggg!!!
you affraid me!
i'm not a devellopers but a system administrator and in fact, this soft is my first code for 10 years :/
If someone have the capacity to icluding it on automatised installation or on website etc.. no pb for me, but it's totally outside my skills in the domain Smile.

The code itself is totally independant of the platform, the only difficulty is to install pyhton/gtk and the 3 needed modules. On linux, it's really easy, on windows it's difficult but i have created a binarie (i have again access to windows).

It seems to be complicated to install for mac users. I really think it was simplier and that a majority of mac user know how tu use fink or macports.
As it seem not to be the case, i will TRY to install a virtual macosx on my computer and create an all-in-on application for mac... I don't know if it will be possible with my hardware.
I give me one week for test this.

But normally with fink or macport it should work.
Back to top
View user's profile Send private message
Gurth



Joined: 07 Jun 2007
Posts: 478
Location: Zoutelande, Netherlands

PostPosted: Fri Jun 13, 2008 12:37 pm    Post subject: Reply with quote

DiCiCat wrote:
i'm not a devellopers but a system administrator

FWIW, I'm not a developer either, just a self-taught amateur who happens to like Python Smile

DiCiCat wrote:
If someone have the capacity to icluding it on automatised installation or on website etc.. no pb for me, but it's totally outside my skills in the domain Smile.

If/when I get the time, I might look into it. Beware that I've never made a real CGI program, just one or two "This is a test"-type things Smile

DiCiCat wrote:
It seems to be complicated to install for mac users. I really think it was simplier and that a majority of mac user know how tu use fink or macports.

Most probably won't — most Mac users rarely ever mess with anything that isn't a real OS X program, and the vast majority won't ever have even started up Terminal.app. Speaking for myself, I used to be a Linux user before I bought an iMac, so I know what I'm supposed to do with it Smile The reason I gave up on Fink was because I could get very few programs to work properly, and soon found Mac equivalents for just about everything I needed.

DiCiCat wrote:
As it seem not to be the case, i will TRY to install a virtual macosx on my computer

That's easier said than done, AFAIK. However, if someone were to put some effort in, it should be possible to create a Mac front-end for your code. The current version of Xcode (Apple's own developer's suite, which comes free with any Mac) supports Python applications that can access all native OS X functions (GUI and others) using PyObjC, so all it would probably take is to create a GUI and put a Python script behind it that interfaces with your code.

DiCiCat wrote:
But normally with fink or macport it should work.

It should, but most Mac users will probably never have even heard of that, and even fewer will likely go to the trouble of installing them …
_________________
… I know all this and more …

Another AT-43 website, which also happens to hold the M.Ind company creation programme
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Qchem
Sentinel
Sentinel


Joined: 20 Oct 2006
Posts: 1529
Location: Pullman, WA

PostPosted: Fri Jun 13, 2008 3:25 pm    Post subject: Reply with quote

I just fired up fink and found there were no binaries of GTK kicking around. I don't have time to let fink compile it right now but I'll try to remember and do it over the weekend.

I guess it's pretty well tested under linux, but if you want me to try it out for feedback just let me know - I've got lots of boxes kicking around.
Back to top
View user's profile Send private message Visit poster's website
DiCiCat



Joined: 19 Feb 2008
Posts: 128
Location: France

PostPosted: Fri Jun 13, 2008 4:44 pm    Post subject: Reply with quote

No problem Wink
Under linux it's effectively ok, i use it for my own. But the english translation is probably not perfect and all reports will be apreciate (small bugs or translation problems)

If you try it on mac os and that is ok, you can perhaps make a "compiled" version for macos.
I will try to do it myself if i can start an osx system on my PC, but it's not an easy operation.
Back to top
View user's profile Send private message
Gurth



Joined: 07 Jun 2007
Posts: 478
Location: Zoutelande, Netherlands

PostPosted: Sat Jun 14, 2008 8:11 am    Post subject: Reply with quote

Qchem wrote:
I don't have time to let fink compile it right now

MacPorts has GTK.

Edit: However, I've been trying to install it, and using MacPorts to get package py-gtk2 results in errors:
Code:
Shadowland:~ gurth$ sudo port install py-gtk2
--->  Fetching libglade2
--->  Attempting to fetch libglade-2.6.2.tar.bz2 from http://mandril.creatis.insa-lyon.fr/linux/gnome.org/sources/libglade/2.6/
--->  Verifying checksum(s) for libglade2
--->  Extracting libglade2
--->  Configuring libglade2
--->  Building libglade2 with target all
--->  Staging libglade2 into destroot
--->  Installing libglade2 2.6.2_0
--->  Activating libglade2 2.6.2_0
--->  Cleaning libglade2
--->  Fetching fftw-3
--->  Attempting to fetch fftw-3.1.2.tar.gz from http://www.fftw.org/
--->  Verifying checksum(s) for fftw-3
--->  Extracting fftw-3
--->  Configuring fftw-3
--->  Building fftw-3 with target all
--->  Staging fftw-3 into destroot
--->  Installing fftw-3 3.1.2_5
--->  Activating fftw-3 3.1.2_5
--->  Cleaning fftw-3
--->  Fetching python24
--->  Attempting to fetch Python-2.4.5.tgz from http://www.python.org/ftp/python/2.4.5/
--->  Verifying checksum(s) for python24
--->  Extracting python24
--->  Applying patches to python24
--->  Configuring python24
--->  Building python24 with target all libpython2.4.dylib
--->  Staging python24 into destroot
--->  Installing python24 2.4.5_1+darwin_9+macosx
--->  Activating python24 2.4.5_1+darwin_9+macosx
--->  Cleaning python24
--->  Fetching py-numpy
--->  Attempting to fetch numpy-1.1.0.tar.gz from http://downloads.sourceforge.net/numpy
--->  Verifying checksum(s) for py-numpy
--->  Extracting py-numpy
--->  Applying patches to py-numpy
--->  Configuring py-numpy
--->  Building py-numpy with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-numpy/work/numpy-1.1.0" && /opt/local/bin/python2.4 setup.py build " returned error 1
Command output: Running from numpy source directory.
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2_5237
blas_opt_info:
  FOUND:
    extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
    define_macros = [('NO_ATLAS_INFO', 3)]
    extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']

lapack_opt_info:
  FOUND:
    extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
    define_macros = [('NO_ATLAS_INFO', 3)]
    extra_compile_args = ['-msse3']

running build
running scons
customize UnixCCompiler
Could not locate executable -fno-strict-aliasing
error: Could not find compiler executable info for scons

Error: The following dependencies failed to build: py-cairo py-numpy py-gobject libxslt
Error: Status 1 encountered during processing.

I have no idea why it wants to install Python 2.4.5 when I already have 2.5.1 on my system, though.

Anyway, this of course results in:
Code:
Shadowland:pyAT43 gurth$ ./pyAT43.py
Traceback (most recent call last):
  File "./pyAT43.py", line 4, in <module>
    import gtk
ImportError: No module named gtk


Anyone have any ideas how to resolve this?
_________________
… I know all this and more …

Another AT-43 website, which also happens to hold the M.Ind company creation programme
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DiCiCat



Joined: 19 Feb 2008
Posts: 128
Location: France

PostPosted: Sun Jun 15, 2008 7:59 am    Post subject: Reply with quote

Edit: suppress to avoid confusion

Last edited by DiCiCat on Fri Jun 26, 2009 10:08 am; edited 1 time in total
Back to top
View user's profile Send private message
Gurth



Joined: 07 Jun 2007
Posts: 478
Location: Zoutelande, Netherlands

PostPosted: Sun Jun 15, 2008 8:23 am    Post subject: Reply with quote

DiCiCat wrote:
I know that python can be installed several times in differents versions on the same os. So it's possible you have python 2.5 and python 2.4 on your systeme.

Yes, I know that. IIRC, the installer makes a symlink called python to the latest version, but you can reach any of the others by using the command pythonX.Y where X.Y is the version number.

But unfortunately, that doesn't work either:
Code:
Shadowland:pyAT43 gurth$ python2.4 pyAT43.py
Traceback (most recent call last):
  File "pyAT43.py", line 4, in ?
    import gtk
ImportError: No module named gtk


DiCiCat wrote:
but, this line
Code:
Error: The following dependencies failed to build: py-cairo py-numpy py-gobject libxslt

seems to tell that pygtk isn't correctly installed.

Clearly — what I pasted into my message is the complete output of the installer when I tried to install py-gtk2, and it didn't even get to the actual py-gtk2. py-numpy is apparently required but fails to install, causing the installer to abort entirely. I think I'll try one of the other GTK packages available via MacPorts and see what happens …

Well, it turns out there is a package called py25-gtk as well — I'm trying to install that now and will report success or failure later Smile What I can tell already is that this is currently trying to install Python 2.5.2 … ! What is the problem with the people who put these packages together anyway?!

Edit: Well, that failed as well. Now with:
Code:
...
--->  Cleaning python25
--->  Fetching py25-hashlib
--->  Verifying checksum(s) for py25-hashlib
--->  Extracting py25-hashlib
--->  Configuring py25-hashlib
--->  Building py25-hashlib with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-hashlib/work/Python-2.5.2/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: running build
running build_ext
building '_hashlib' extension
creating build
creating build/temp.macosx-10.3-i386-2.5
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/python2.5 -c _hashopenssl.c -o build/temp.macosx-10.3-i386-2.5/_hashopenssl.o
unable to execute -DNDEBUG: No such file or directory
error: command '-DNDEBUG' failed with exit status 1

Error: The following dependencies failed to build: py25-cairo py25-numpy py25-hashlib py25-gobject libxslt
Error: Status 1 encountered during processing.

I'm getting tired of this — it's one of the reasons I bought a Mac instead of upgrading my Linux PC a few years ago, after all … Maybe I'll try again later, but not just yet. Instead, I'll go and find out how to get rid of those Python versions I never asked for Smile
_________________
… I know all this and more …

Another AT-43 website, which also happens to hold the M.Ind company creation programme
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DiCiCat



Joined: 19 Feb 2008
Posts: 128
Location: France

PostPosted: Sun Jun 15, 2008 6:25 pm    Post subject: Reply with quote

I have succeed to install a macos version on my computer today.
I will make somes test with pyAT43, and if it's ok, i will try to make an all in one version with py2app.
Back to top
View user's profile Send private message
Gurth



Joined: 07 Jun 2007
Posts: 478
Location: Zoutelande, Netherlands

PostPosted: Mon Jun 16, 2008 2:49 pm    Post subject: Reply with quote

That would be cool — keep us posted Smile
_________________
… I know all this and more …

Another AT-43 website, which also happens to hold the M.Ind company creation programme
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DiCiCat



Joined: 19 Feb 2008
Posts: 128
Location: France

PostPosted: Tue Jun 17, 2008 8:00 am    Post subject: Reply with quote

Edit: suppress to avoid confusion

Last edited by DiCiCat on Fri Jun 26, 2009 10:08 am; edited 1 time in total
Back to top
View user's profile Send private message
DiCiCat



Joined: 19 Feb 2008
Posts: 128
Location: France

PostPosted: Tue Jun 17, 2008 1:46 pm    Post subject: Reply with quote

Edit: suppress to avoid confusion

Last edited by DiCiCat on Fri Jun 26, 2009 10:09 am; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    EN-FORUM.AT-43.COM Forum Index -> Strategy, armies and battle reports All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7  Next  
Page 1 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group