Pages: [1] 2 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Seriously Bored
Minmatar
|
Posted - 2009.08.26 20:47:00 -
[1]
For those of you who just wish there was a native EFT, this thread has been going on in the Ships and Modules forum:
Python Fitting Assistant v0.3.6
It's still clunky and coming together, but if a few people with programming knowledge and a healthy love for both EVE and OSX decided to help, we might end up with something like EFT running great without Crossover or Parallels.
I haven't gotten it running under OSX yet, but I'm going to give it another shot tonight.
|

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.26 22:42:00 -
[2]
Edited by: Drake Draconis on 26/08/2009 22:44:04 Edited by: Drake Draconis on 26/08/2009 22:42:44 Ok I got it to run on my Mac.
Here's how.
===========WARNING!!!!!!!============ What your about to do is going to take at least 1 to 2 hours. You need to make sure your computer is not busy or distracted running EVE Online or something. This also requires some Terminal time so if your going to do this... follow instructions EXCATLY. I was unable to get far enough to package it all up... but hey... it runs... I have yet to push it but I felt if I post this... more will start using it and test it out.
Requirements - OS-X 10.5.8 XCode (Check Macintosh HD) XCode Tools (Check Macintosh HD... if its not there.. grab your System DVD and pop it in.. you'll find it hiding there and its easy to install) SMC Fan Controls (if your on a Macbook Pro as its going to get a little toasty during its job X11 (Should be preinstalled, check Macintosh HD/Applications/Utilities/ to see if its there) =======================
DISCLAIMER - I will not be held liable for anything your about to do. It's a beta at best folks.
Step 1: Get the package for LINUX http://sourceforge.net/projects/pyfa/files/0.3.6/pyfa-0.3.6-src.tar.bz2/download Step 2: Extract and drop the folder in your Applications Folder. Keep in mind that in its current state.. it will not launch... Step 3: As he said in his readme... you need a couple of things... most notably... Python and GTK. Apple kinda slacked here and your current version of Python is outdated. Go to http://svn.macports.org/repository/macports/downloads/MacPorts-1.7.1/MacPorts-1.7.1-10.5-Leopard.dmg Macports is a automated "Installation" program that you can tell to go "fetch" various things... it also seeks out dependencies... as just installing python will not work. Note: You can get python downloaded from python.org but for some reason this did not work as effectively as before. Granted I didn't have to compile the damn thing but for some reason Macports route is better. Step 4: Install Macports like you would normally install an application on your Mac. Step 5: Here comes the tough part... go to Applications/Utilities/Terminal. Ah yes... the real world of programmers and geeks! You can change the color theme in Preferences if you want. In terminal type the following: sudo port -v install python26
This installs Python version 2.6 under root with verbose logging. Put simply, you will see a crapton of text in about 30 seconds to a minute. You will be required to type in your User Account Password to do this. It may require administrative privileges! (Assuming your the Admin on the computer that is)
======WARNING!======== DO NOT START THIS UNLESS YOUR SURE YOU CAN KEEP THIS UP FOR AN HOUR OR MORE ======================
It will download and compile a crapload of programs... the last being python itself. DO NOT Interrupt it... if you don't see anything... give it a good 10 minutes before aborting. If you abort... you may end up starting the process all over again.
Step 6: Type in the following once the above is completed sudo port -v install python_select
This installs a kickstarter for the python libraries and such. (AFAIK)
Step 7: Type in the following once its done installing... sudo python_select python26
This engages/activates Python 2.6
Step 8: Type in the following... sudo port -v install py26-gtk
This installs the GTK Libraries for Python 2.6 along with all the GTK stuff.... which is also needed. This takes a good deal of time so be warned!
Step 9: Type in the following when you have installed the above... cd /Applications/pyfa-0.3.3-src
Step 10: Type in the following... python downloadData.py
Step 11: Type in the following... python launch.py
If all goes well... you should see X11 Fire up... and you'll be looking at literally the worlds first EFT for Mac. ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.26 22:46:00 -
[3]
Edited by: Drake Draconis on 26/08/2009 22:47:03 Please note that in order to launch the program you have to do the "python launch.py" bit.
I'm sure that can be scripted... I just got it done and I wanted to get it posted as soon as I got here.
References - Macports MacPorts Homepage Installing MacPorts
A rough idea on how I got it to work.
Apple - http://developer.apple.com/TOOLS/Xcode/
PS: I copied the last 2 posts from the thread for ease of use... be sure to give credit to the author. I just was bored and decided to put my mac on the line for a good EFT program. :) ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.27 00:18:00 -
[4]
Some Warnings/Got yah's that you'll encounter.
1: If you hit an OK button thinking its going to.. uh do what you thought it was going to do... it may be waiting for you to put in a name or something... not so obvious.
2: Adding a ship fit is not so obvious... click the new button (looks like a white page)
3: And the worst one yet... do NOT quit X11 or you will lose ALL data you added to it since then. You have to hit the close button on in the lower right corner of the main window to retain it.
So far I've not seen any glaring bugs.
Trying to write up an automator script that will kick in the app when I want it. ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Senyru Suru
Gallente Center for Advanced Studies
|
Posted - 2009.08.27 05:10:00 -
[5]
thanks for the guide Drake, I'm going to give that a go this weekend. it must be possible to embed the python code inside a mac app in Xcode. hook it into Interface Builder for a nice interface and to write the user data to a preferences file so that you can quit the app. probably quite a big job to do, and beyond my abilities.... |

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.27 05:42:00 -
[6]
Originally by: Senyru Suru thanks for the guide Drake, I'm going to give that a go this weekend. it must be possible to embed the python code inside a mac app in Xcode. hook it into Interface Builder for a nice interface and to write the user data to a preferences file so that you can quit the app. probably quite a big job to do, and beyond my abilities....
Yeah... but the first step is getting it to run.
After that.. its just a matter of "packing it up" ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Maar'sha
The Miner's Paradise
|
Posted - 2009.08.27 08:47:00 -
[7]
I'm one of the first user of this software on mac but i've a little problem.
Doubleclicking a module doesn't add it to the fit.
|

Seriously Bored
Minmatar
|
Posted - 2009.08.27 13:06:00 -
[8]
Originally by: Drake Draconis
Originally by: Senyru Suru thanks for the guide Drake, I'm going to give that a go this weekend. it must be possible to embed the python code inside a mac app in Xcode. hook it into Interface Builder for a nice interface and to write the user data to a preferences file so that you can quit the app. probably quite a big job to do, and beyond my abilities....
Yeah... but the first step is getting it to run.
After that.. its just a matter of "packing it up"
I'll second the thanks for the guide. Is it possible to use automator to get it to run with a single click, once it's built?
|

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.27 14:27:00 -
[9]
Originally by: Seriously Bored
Originally by: Drake Draconis
Originally by: Senyru Suru thanks for the guide Drake, I'm going to give that a go this weekend. it must be possible to embed the python code inside a mac app in Xcode. hook it into Interface Builder for a nice interface and to write the user data to a preferences file so that you can quit the app. probably quite a big job to do, and beyond my abilities....
Yeah... but the first step is getting it to run.
After that.. its just a matter of "packing it up"
I'll second the thanks for the guide. Is it possible to use automator to get it to run with a single click, once it's built?
I'll look into writeing a shell script that essentially launches the program... should be done later today. ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.27 14:27:00 -
[10]
Originally by: Maar'sha I'm one of the first user of this software on mac but i've a little problem.
Doubleclicking a module doesn't add it to the fit.
There are a lot of things about it that aren't so obvious... but it does work... I'll see about figureing that out as well when I get the chance. ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |
|

Seriously Bored
Minmatar
|
Posted - 2009.08.27 15:00:00 -
[11]
Drake, you're awesome. Thanks for diving into making this work for the rest of us! I'll be trying to get it to run tonight... if there's anywhere you can post the shell script (or instructions on how to set it up), I'd appreciate a link.
|

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.27 16:55:00 -
[12]
Edited by: Drake Draconis on 27/08/2009 16:58:27 Edited by: Drake Draconis on 27/08/2009 16:56:29 Ok heres a shell script until such time I can figure out how to get automator to do the exact same bloody thing. (For some reason it just flat wouldn't work so I did this the old fashioned way)
Again... be warned... follow instructions exactly.
This is also assuming you followed my previous instructions about installing it in the Applications folder.
Step 1: Go to Applications--->Utilities--->Terminal Step 2: Type in the following... cd /Applications/pyfa-0.3.3-src/
Step 3: Type the following... (The File name can be named whatever you want... so its not critical, just remember it) vim launch_pyfa
vim is a text editor for shell prompt... its my favorite... and easiest to learn. launch_pyfa is a file name I picked out... not sure if its going to be the one you want or not and you could use whatever you want... just keep it simple and consistent.
Step 4: Type the following... those in italics will be commands/keystrokes, each line should be followed by a return carriage or return key. ALL Commands are lowercase!
i #! /bin/sh
cd /Applications/pyfa-0.3.3-src/ python launch.py esc shift : x return
i is to enter into insert mode you treat it like a text edit program like "text edit" You have to tell the computer to change directories as for some reason just "python" to the file without explicitly going there causes it to hang/exit the command.
cd is change directory... you should type in the exact location of the directory in which you have it installed... the first slash is "root" so make sure you get that in there.. including the last slash to imply its a folder and not a file.
And naturally you launch the program on the last line. Dont need an extra carriage return here.
esc key exits insert mode and you now enter "view mode" for VIM or some such.
You should then hit shift : (Colon) and you can now enter commands to VIM.
x saves the file and exits the program.
Step 5: Type the following ls -al
This should list the directory with permissions You should see something like -rw-r--r-- 1 <your_username> staff 0 Aug 27 09:49 launch_pyfa
Somwhere in the list.
Right now its not usable... its just a text file. You can fix that tho.
Type the following...
chmod 755 launch_pyfa
Now it should say -rwxr-xr-x 1 <your_username> staff 0 Aug 27 09:49 launch_pyfa
This makes the file an executable for the owner... group and everyone else while making it read only.
Now if it failed... its likely because you are not an administrator... in that case
sudo chmod 755 launch_pyfa
You may need to type in your admin password...
Step 6: Now quit Terminal (Command-Q) and go to your Applications folder and then the pyfa directory. Inside you should see the file you made... black icon... launch it... and you should see your program fire up with X11.
Presto! Automatic launch.
:) you may now happily build pew pew pew ships Feel free to make an alias/shortcut to that file.
PS: If the download script he has you run is the update trigger... repeat the above process to make an update script.
Congratulations... you are now dangerous enough to script in your mac. <gasp>
PS2/EDIT: When you exit the fitting program... terminal will be idle and waiting in the background.. this is normal... just quit Terminal.
========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.27 17:47:00 -
[13]
Originally by: Maar'sha I'm one of the first user of this software on mac but i've a little problem.
Doubleclicking a module doesn't add it to the fit.
Didn't have a problem.
Are you sure that you created a ship to fit too?
You need to hit the "new fit" button that looks like a "white page" Then you choose a ship... type up a name for the fit in the top of that window... then pick the mod and double click it to add it.
Double click the fitted mod to remove it.
Again some things are not so obvious but it works. ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Maar'sha
The Miner's Paradise
|
Posted - 2009.08.27 20:31:00 -
[14]
I've found my problem 
On my second mac (a MBP) I can doubleclick with the trackpad.
But on my main mac the speed of the double-click is too fast for me.
How to decrease the speed of the double-click inside X11 ?
|

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.27 20:36:00 -
[15]
I Don't have the slightest idea.
I suggest checking system preferences and seeing if that translates over. ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Seriously Bored
Minmatar
|
Posted - 2009.08.28 05:48:00 -
[16]
Edited by: Seriously Bored on 28/08/2009 05:50:39 Hmm, damn. Still running into problems. After install MacPorts, and running the line "sudo port -v install python26" I get this error:
Originally by: My Dumb Mac Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_bzip2/work/bzip2-1.0.5" && make all PREFIX="/opt/local" " returned error 127 Command output: sh: make: command not found
Seems "&&make all PREFIX" is throwing it for a look. Oh well, I'll get this thing running some day soon!
EDIT:
Hmm, should I have installed X11 and XCode before doing this?
|

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.28 06:53:00 -
[17]
Edited by: Drake Draconis on 28/08/2009 06:53:27 Yeah.... but if your running 10.5 it should already be there.
Make sure the extended XCode package is also there... XCode Tools would be the one.
I did list it as a requirement before reaching the part where you start working. :) ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.29 21:56:00 -
[18]
Ok... he's updated the program frequently in the last few days to the week.
Good news... if you have stuff saved... its not in the folder of the main program AFAIK. At least it didn't lose the API data i saved.
Step 1: Get the new update from http://sourceforge.net/projects/pyfa/files/
Step 2: Copy the new extracted files to Applications.
Step 3: Go open the old folder and snatch the launch_pyfa executible you made (or whatever you named it) and move it to the new folder (updated version of PYFA)
Step 4: The executable isn't going to work due to the fact its going to look for the old folder as opposed to the new one. So... open Terminal (Its in Utilities remember?) and type the following:
cd /Applications/pyfa-<current version>-src
Current Version being 0.3.7 for example.
then type
vim launch_pyfa
Or the name of the script you chose
In VIM hit the i key Then move the cursor to the version number and simply change it to the current version.
Hit Esc
Hit Shift : (Colon) Hit x (Thats LOWER CASE x) Hit Return.
Trash the old short cut of the script if you had one on your dock and replace it with the new one.
Shazam! Updated PYFA! ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Ol' Delsai
Caldari Kernel of War Tau Ceti Federation
|
Posted - 2009.08.30 18:47:00 -
[19]
Please note this won't work in Snow Leopard since, python26 won't build in macports (there's a big deep issue with the x86_64 arch)
see http://trac.macports.org/ticket/20284
|

Hagis McBree
Minmatar
|
Posted - 2009.08.31 00:12:00 -
[20]
Originally by: Ol' Delsai Please note this won't work in Snow Leopard since, python26 won't build in macports (there's a big deep issue with the x86_64 arch)
see http://trac.macports.org/ticket/20284
you don't need to build what is all ready there, just install the devtools.
$ python Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
$ pwd /System/Library/Frameworks/Python.framework/Versions
$ ls -la total 8 drwxr-xr-x 6 root wheel 204 Aug 14 21:54 . drwxr-xr-x 6 root wheel 204 Aug 14 21:54 .. drwxr-xr-x 8 root wheel 272 Aug 14 21:54 2.3 drwxr-xr-x 11 root wheel 374 Aug 14 21:54 2.5 drwxr-xr-x 11 root wheel 374 Aug 14 21:54 2.6 lrwxr-xr-x 1 root wheel 3 Aug 14 21:54 Current -> 2.6
Originally by: CCP Fallout Can you upgrade your OS X to Leopard? We don't actually provide support for Tiger.
|
|

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.08.31 06:33:00 -
[21]
Originally by: Hagis McBree
Originally by: Ol' Delsai Please note this won't work in Snow Leopard since, python26 won't build in macports (there's a big deep issue with the x86_64 arch)
see http://trac.macports.org/ticket/20284
you don't need to build what is all ready there, just install the devtools.
$ python Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
$ pwd /System/Library/Frameworks/Python.framework/Versions
$ ls -la total 8 drwxr-xr-x 6 root wheel 204 Aug 14 21:54 . drwxr-xr-x 6 root wheel 204 Aug 14 21:54 .. drwxr-xr-x 8 root wheel 272 Aug 14 21:54 2.3 drwxr-xr-x 11 root wheel 374 Aug 14 21:54 2.5 drwxr-xr-x 11 root wheel 374 Aug 14 21:54 2.6 lrwxr-xr-x 1 root wheel 3 Aug 14 21:54 Current -> 2.6
I was hopping Snow Leopard would come with the new libraries and not need to build them in. Also note that Macports has been working on the problem for the last few months... this is not a recent problem. ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Waagaa Ktlehr
Amarr Evolution IT Alliance
|
Posted - 2009.08.31 09:40:00 -
[22]
For getting rid of the terminal window, this hint might help: http://www.macosxhints.com/article.php?story=20030120062404668
Under bsh, I think it was appending an "&" to the end of a line to continue shell script execution but run the app in a seperate thread. Not sure how this works under MacOSX
|

Seriously Bored
Minmatar
|
Posted - 2009.08.31 22:53:00 -
[23]
Just checking up on what's been going on. I still haven't gotten it to run, but that has more to do with Xcode 3.2 being the only free version available from Apple's website at the moment, and I haven't upgraded to Leopard yet. (Don't have my 10.5 disc, either. *Le sigh*)
Thanks to everyone who's cracked their knuckles and got to work on this. Maybe by the time we're at PyFa 1.0 we'll have something that installs easily on the Mac?
|

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.09.01 16:23:00 -
[24]
Edited by: Drake Draconis on 01/09/2009 16:24:09 Edited by: Drake Draconis on 01/09/2009 16:23:43
Originally by: Seriously Bored Just checking up on what's been going on. I still haven't gotten it to run, but that has more to do with Xcode 3.2 being the only free version available from Apple's website at the moment, and I haven't upgraded to Leopard yet. (Don't have my 10.5 disc, either. *Le sigh*)
Thanks to everyone who's cracked their knuckles and got to work on this. Maybe by the time we're at PyFa 1.0 we'll have something that installs easily on the Mac?
Better shell out the 29 bucks and get 10.6.
Your going to be pulling your hair out soon enough as things roll forward without the latest build of OS-X.
PS: I'm going to mess with the GIT package to see if this helps solve some headaches. ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Marik Starsong
Caldari Dominion Gaming INQUISITION.
|
Posted - 2009.09.01 21:28:00 -
[25]
Not gonna read through this entire wall of text, but I did twinge on the "create a separate launcher" bit.
You do NOT need to do this.
Unix has the ability built in to automatically launch the interpreter of your choice. All you have to do is provide a hint (called a "shebang" line) at the beginning of your program:
~~~~ #!/usr/bin/python
print "I'm running python" ~~~~
Anything in that first line after the "shebang" (the #!) will be launched as the interpreter for the rest of the file, so you can have lines such as:
#!/usr/bin/perl #!/usr/bin/bash #!/usr/bin/ruby #!/usr/bin/env python
etc. Just make sure it points to the interpreter you want based upon what language you are working in (i.e. if you're writing ruby, use ruby, etc). In addition, chmod the file to 755 so that it will be executable. You do NOT have to launch python scripts with "python <foo>" and in fact, people who do so are unix noobs... :)
|

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.09.01 22:25:00 -
[26]
Oh... if your so smart how about you bundle the application so you don't need to do it at all?
Since I'm the "Noob" here.
Be my guest! ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Marik Starsong
Caldari Dominion Gaming INQUISITION.
|
Posted - 2009.09.01 22:48:00 -
[27]
Bitter much?
Here, have a cookie...
|

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.09.01 23:01:00 -
[28]
Originally by: Marik Starsong Bitter much?
Here, have a cookie...
Well if your going to point fingers and call people noobs for spending a ton of effort on something that I could have just coughed and walked off... you tell me? ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |

Marik Starsong
Caldari Dominion Gaming INQUISITION.
|
Posted - 2009.09.02 00:08:00 -
[29]
Ok, next time I won't tell you easier ways to do stuff.
/shrug
|

Drake Draconis
Minmatar Shadow Cadre
|
Posted - 2009.09.02 15:23:00 -
[30]
Originally by: Marik Starsong Ok, next time I won't tell you easier ways to do stuff.
/shrug
There is a difference between making a suggestion... and making a suggestion while telling previous people they are noobs for doing what they did in the first place.
That's like saying "I found this way to be easier" as opposed "This way is better because the other way is stupid"
If your going to help.. help.. don't be egotistical about it.
Also saying things like "I Didn't bother reading" is a bit foolish on your part if your trying to come across as someone trying to help.
Hell if you didn't read it... you didn't have to say you didn't read it. ========================= CEO of Shadow Cadre http://www.shadowcadre.com ========================= |
|
|
|
|
Pages: [1] 2 :: one page |
First page | Previous page | Next page | Last page |