Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
x4132 opened this issue Feb 16, 2024 · 18 comments

Comments

@x4132
Copy link

x4132 commented Feb 16, 2024

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

@DarkFenX
Copy link
Member

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
Copy link
Member

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).

@x4132
Copy link
Author

x4132 commented Feb 21, 2024

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

@DarkFenX
Copy link
Member

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

@Jacobboogiebear
Copy link

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

@x4132
Copy link
Author

x4132 commented Feb 22, 2024

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

@DarkFenX
Copy link
Member

DarkFenX commented Feb 24, 2024

@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

@Jacobboogiebear
Copy link

@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
Copy link

@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.

@x4132
Copy link
Author

x4132 commented Feb 24, 2024

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

@DarkFenX
Copy link
Member

@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

@x4132
Copy link
Author

x4132 commented Feb 26, 2024

@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

@DarkFenX
Copy link
Member

DarkFenX commented Feb 26, 2024

@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.

@Basselisk123
Copy link

No updates, workarounds or fixes for this one yet?

Ive tried installing python 3.8.10 with no luck

@Anonymous3x7
Copy link

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.

@Basselisk123
Copy link

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

@DarkFenX
Copy link
Member

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
Copy link
Member

DarkFenX commented Apr 16, 2024

FYI i digged pyinstaller repo in attempts to find more data about this error, one issue i linked above, another is this: pyinstaller/pyinstaller#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants