Steffenhir / GraXpert

GraXpert is an astronomical image processing program for extracting and removing gradients from the background of your astrophotos.
https://www.graxpert.com/
GNU General Public License v3.0
161 stars 18 forks source link

GraXpert version 2.0.1 for Intel Mac #92

Open Fivel70 opened 12 months ago

Fivel70 commented 12 months ago

Hello. I have a similar issue -the app will not open. I downloaded: GraXpert-macos-x86_64.dmg for my Intel Mac running Catalina. It installed the app, and verified it, but it will not open. It just does nothing. The Beta version opens just fine. Also, I cannot download the new version from within the Beta version.

michael-ring commented 12 months ago

Can you try this:

Right Click on the GraXpert Icon

Show Content

goto Contents/MacOS

Start GraXpert, you will see a terminal screen and likely also an error message when the app does not start.

you can also start directly from Terminal, open Terminal and enter:

/Applications/GraXpert.app/Contents/MacOS/GraXpert

Fivel70 commented 12 months ago

Michael, thank you for your quick reply. Here is the text from the console: "Last login: Wed Oct 25 08:50:01 on console /Volumes/250GB\ Data/Applications/GraXpert.app/Contents/MacOS/GraXpert ; exit; Mac-mini:~ mickigoodman$ /Volumes/250GB\ Data/Applications/GraXpert.app/Contents/MacOS/GraXpert ; exit; [2472] Error loading Python lib '/Volumes/250GB Data/Applications/GraXpert.app/Contents/Frameworks/Python': dlopen: dlopen(/Volumes/250GB Data/Applications/GraXpert.app/Contents/Frameworks/Python, 10): Symbol not found: _preadv Referenced from: /Volumes/250GB Data/Applications/GraXpert.app/Contents/Frameworks/Python (which was built for Mac OS X 11.0) Expected in: /usr/lib/libSystem.B.dylib in /Volumes/250GB Data/Applications/GraXpert.app/Contents/Frameworks/Python logout -n Saving session... -ne ...copying shared history... -ne ...saving history... -n truncating history files... -ne ... completed. -n Deleting expired sessions... 84 completed.

[Process completed]"

Does this indicate that I have a version of Python that is too old? What version is required? Since I have two partitions, where should the newer Python version be installed? The app is installed on the second partition. Thanks again. Fivel70

cgruelle commented 12 months ago

I'm having the same issue.

craig@Mac-mini MacOS % ./GraXpert [49870] Error loading Python lib '/Applications/GraXpert.app/Contents/Frameworks/Python': dlopen: dlopen(/Applications/GraXpert.app/Contents/Frameworks/Python, 10): Symbol not found: _preadv Referenced from: /Applications/GraXpert.app/Contents/Frameworks/Python (which was built for Mac OS X 11.0) Expected in: /usr/lib/libSystem.B.dylib in /Applications/GraXpert.app/Contents/Frameworks/Python craig@Mac-mini MacOS %

cgruelle commented 12 months ago

I'm having the same issue.

craig@Mac-mini MacOS % ./GraXpert [49870] Error loading Python lib '/Applications/GraXpert.app/Contents/Frameworks/Python': dlopen: dlopen(/Applications/GraXpert.app/Contents/Frameworks/Python, 10): Symbol not found: _preadv Referenced from: /Applications/GraXpert.app/Contents/Frameworks/Python (which was built for Mac OS X 11.0) Expected in: /usr/lib/libSystem.B.dylib in /Applications/GraXpert.app/Contents/Frameworks/Python craig@Mac-mini MacOS %

MacOS 10.15.7

michael-ring commented 12 months ago

Seems to be related to this issue:

https://bugs.python.org/msg398959

@Fivel70: You said an older beta did work, perhaps that info can help @Steffenhir to find a solution…

Fivel70 commented 12 months ago

Hello again Michael. Since this problem, and others similarly related, are tied to a problem installing Python, how do I get you shown link and my comments to Steffen directly? I tried to post this issue on "discord", but it is a challenging site to navigate, and translate. Does he review these (github) issues on a regular basis? Fivel70

michael-ring commented 12 months ago

He does….

Steffenhir commented 12 months ago

Hi @Fivel70 @cgruelle , are you both using macOS 10? Github recently stopped supporting macOS runners with macOS 10, so we had to switch to macOS 11. Unfortunately, the program can then not be run from macOS 10 anymore.

Fivel70 commented 12 months ago

That is unfortunate, since the Beta version is a great app. Do you know if/when this app will be integrated into Siril? I will post that question on their forum. Danke fer deine hilf. Fivel70

Steffenhir commented 12 months ago

We are already talking to Cyril, who is the main developer of Siril. However, the Siril integration will probably rely on our GraXpert build and therefore also require macOS version 11 or higher.

cgruelle commented 12 months ago

Hi @Fivel70 @cgruelle , are you both using macOS 10? Github recently stopped supporting macOS runners with macOS 10, so we had to switch to macOS 11. Unfortunately, the program can then not be run from macOS 10 anymore.

That is unfortunate. Did Github make those changes between the time the AI beta and 2.0.1 was released? The beta ran on macOS 10.

Do you think us users on macOS 10 would be able to run from source? I setup my environment, but am running into an import issue. I know you are excluding the s3secrets from the source, but I'm trying to figure out a way around it. I have the AI model from the beta. I can open another issue or try Discord.

I know it's not your fault, and it's Apple being...well...Apple. It's crazy that although older, I have two very capable machines that are becoming obsolete. Looks like the mini may be running Linux soon.

Thanks for your support, and for GraXpert. It's an awesome program!

Steffenhir commented 12 months ago

We had to change to macOS 11 sometime during Beta. In this case, it is Github's fault because they stopped providing Github runners with macOS 10.15 which we used to build GraXpert. You should still be able to start GraXpert from source. You just have to create a s3_secrets.py file inside the GraXpert/graxpert folder with the content

endpoint = ""
ro_access_key = ""
ro_secret_key = ""
bucket_name = ""

You will then not be able to use the automatic download feature. So you have to move the bg_model folder inside the directory ~/Library/Application Support/GraXpert/ai-models/1.0.1/ Please let me know if you have any more trouble starting from source.

cgruelle commented 11 months ago

Thank you @Steffenhir. That got me pointed in the right direction. I did have to assign a value to endpoint, otherwise Minio would throw an attribute error. I also had to hack list_remote_versions() to always return a value, because if the returned value is None, the gui would not completely start.

The good new is, I was able get it running and successfully extract the background from an image using AI.

I'll see if I can work up a better solution to my hack for a local AI model check only.

innersideofme commented 11 months ago

I have the same problem. MacOS 12.7. Version 2.0.2. Snippet from error log:

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace SIGNAL, Code 4 Illegal instruction: 4 Terminating Process: exc handler [2183]