Pyfa icon indicating copy to clipboard operation
Pyfa copied to clipboard

(PYFA DOES NOT LAUNCH) The Ordinal 380 could not be located in the dynamic link library "C:\Program Files\pyfa\pyfa.exe"

Open x4132 opened this issue 1 year ago • 21 comments

Bug Report

Pyfa does not launch on normal open, and instead returns an Ordinal not found error. https://imgur.com/a/HQEJX2k

Expected behavior:

Pyfa opens

Actual behavior:

Pyfa doesn't open, but launches fine when using the "launch pyfa" option after reinstalling. After closing pyfa and installer, launching the exe directly does not work.

Detailed steps to reproduce:

I'm not sure what is causing this issue. Simply launching the app does not work, so I cannot provide detailed steps.

Release or development git branch? Please note the release version or commit hash:

pyfa-v2.57.3-win.exe

Operating system and version (eg: Windows 10, OS X 10.9, OS X 10.11, Ubuntu 16.10):

Windows 11 Pro 22H2 OSBuild 22621.3155

x4132 avatar Feb 16 '24 05:02 x4132

Looks very weird. Do you have anti intrusive software running (e.g. anti-virus monitors), if yes - which? Can you try without it, or is it a no-go for you?

DarkFenX avatar Feb 20 '24 16:02 DarkFenX

Also try deleting pyfa program folder altogether, and reinstalling it. Maybe there are leftover files interfering with it (but I doubt it's the case).

DarkFenX avatar Feb 20 '24 16:02 DarkFenX

I only have windows defender on. Does pyfa use the bundled python by default? If it uses other installs that might be what broke it, not sure. Deleting pyfa folder in C:\Program Files\Pyfa doesn't fix the issue. I also have powertoys on

x4132 avatar Feb 21 '24 01:02 x4132

It uses bundled python, yes. This is first time I am seeing anyone complaining about this error, so it must be something very specific to your computer/OS

DarkFenX avatar Feb 21 '24 12:02 DarkFenX

I found installing Python 3.8.10 fixes the bug. python.org link to installs

Jacobboogiebear avatar Feb 22 '24 21:02 Jacobboogiebear

@Jacobboogiebear installing using the installer or by replacing the bundled exe? I'm using python 3.11 at the moment

x4132 avatar Feb 22 '24 21:02 x4132

@Jacobboogiebear that doesn't make any sense, unless that python version installs some libaries also needed to run pyfa. Pyfa bundles needed python interpreter with the distribution file.

edit: this seems to be related: https://github.com/pyinstaller/pyinstaller/issues/6845

DarkFenX avatar Feb 24 '24 00:02 DarkFenX

@Jacobboogiebear installing using the installer or by replacing the bundled exe? I'm using python 3.11 at the moment

Using the installer is what I did.

Jacobboogiebear avatar Feb 24 '24 02:02 Jacobboogiebear

@Jacobboogiebear that doesn't make any sense, unless that python version installs some libaries also needed to run pyfa. Pyfa bundles needed python interpreter with the distribution file.

edit: this seems to be related: pyinstaller/pyinstaller#6845

Just based on the error it seems that it can't load the core library and just installing the original python 3.8.10 version from python.org just drops in and because it can't successfully find the builtin one it just grabs the new installation if in path.

Jacobboogiebear avatar Feb 24 '24 02:02 Jacobboogiebear

Git cloning and running pyfa.py works fine for me, no issues. It's just the installed desktop program. (python 3.12)

x4132 avatar Feb 24 '24 06:02 x4132

@x4132

Git cloning and running pyfa.py works fine for me, no issues. It's just the installed desktop program. (python 3.12)

OP's issue is about release version where python interpreter is bundled with the app

@Jacobboogiebear

Just based on the error it seems that it can't load the core library and just installing the original python 3.8.10 version from python.org just drops in and because it can't successfully find the builtin one it just grabs the new installation if in path.

Do you have non-latin paths to either your user folder or pyfa app location? What's your system locale? Maybe it's some component which doesn't support unicode

DarkFenX avatar Feb 25 '24 22:02 DarkFenX

@Jacobboogiebear installing 3.8.10 does not fix anything for me

@DarkFenX are there instructions on building pyfa.exe locally? I can try just building it locally and swapping the install with a locally built one

x4132 avatar Feb 26 '24 06:02 x4132

@x4132 check file https://github.com/pyfa-org/Pyfa/blob/master/.appveyor.yml, for image Visual Studio 2022. Some steps are just to display info (i.e. printing paths), some are optional (downloading gettext, dumping crowdin progress and compiling languages, pyfa can work w/o that), the rest can be executed as-is.

Sounds like a pyinstaller issue, maybe it was fixed already, but I couldn't update to a newer one because of windows defender falsely detecting it as a virus.

DarkFenX avatar Feb 26 '24 09:02 DarkFenX

No updates, workarounds or fixes for this one yet?

Ive tried installing python 3.8.10 with no luck

Basselisk123 avatar Mar 19 '24 02:03 Basselisk123

I'm having the same issue and it's driving me kinda insane because playing EVE Online without PYFA is as being sent to the frontline with a gun...but without the ammo ...

Anyway...

Being on Windows 11 Pro X64 - 23H2 (AMD Ryzen 9 5900X 12-Core Processor 3.70 GHz + RAM:128GB) -I installed Python 3.8.10...didn't help -Disabled all Anti-Virus......didn't help -Disabled VPN...didn't help -Deleted all files related to PYFA from all HD...didn't help -Installed older version 2.56.0...THIS WORKED!

Versions that came out after 2.56.0 all give me the "ordinal 380" issue and won't start.

Installing 2.58.1 on Linux works fine though.

Anonymous3x7 avatar Apr 16 '24 09:04 Anonymous3x7

I just tried this, installing 2.56.0 worked.

This is odd, becausa 2.58.1 works correctly in a VM I created to be able to use Pyfa , Im not sure why is not working in my main pc

Basselisk123 avatar Apr 16 '24 13:04 Basselisk123

2.56.0 is the last version before big library update. There is no coming back to old versions, due to lots of associated issues with those.

As for how to fix it - I have no idea guys. I don't have anyone competent who has this issue who could've helped with debugging/fixing it. And just error message doesn't seem to provide enough data on what the problem is.

DarkFenX avatar Apr 16 '24 14:04 DarkFenX

FYI i digged pyinstaller repo in attempts to find more data about this error, one issue i linked above, another is this: https://github.com/pyinstaller/pyinstaller/issues/6223 neither gave me any clue what direction to dig into.

Is there any text printed to console if you launch pyfa from there?

Maybe there are some issues with manifest, but I can't immediately see what's wrong with it.

DarkFenX avatar Apr 16 '24 20:04 DarkFenX

was this ever fixed? Im still using v2.56 due this bug

Edit: Just installed v2.59 , bug still present.

Basselisk123 avatar Aug 07 '24 05:08 Basselisk123