Giter VIP home page Giter VIP logo

pyft4222's People

Contributors

kimdoyun0208 avatar lavovalampa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pyft4222's Issues

Support building PyInstaller binaries

If you have an app with pyft4222 as a dependency and distribute it using PyInstaller, the necessary DLL files are not included.

One way to fix this is to include the binaries manually. Run this to check the extra arguments to use:

import os
import site
from pathlib import Path

# Find site-packages (where the lib is installed)
sitepackages = Path(site.getsitepackages()[-1]).resolve()
# Relative location on the lib
bin_ft4222 = Path('pyft4222', 'wrapper', 'dll')
# Show the arguments
print('--add-binary', f'{sitepackages / bin_ft4222}{os.pathsep}{bin_ft4222}')

I can confirm this works on Windows too.

Note this includes all the binaries on all the OS/architecture combination. Including only the necessary binaries is left as an exercise to the reader, since it's only about 1MB for everything I did not bother.

It should be possible to define a PyInstaller hook so that it automatically can include the binaries without manual intervention.

See PyInstaller documentation:

https://pyinstaller.org/en/stable/hooks.html#providing-pyinstaller-hooks-with-your-package

loading library on WIN11 throws errors because of outdated lib-ft4222.dll

There is an issue loading libft4222.dll: I get an error unable to load shared library!
I am using windows 11.
Tried updating lib-ft4222.dll manually by downloading latest dll from ftdi page. It seems that there were some changes since the latest update in changelog was in march 2024.

I could try updating the.dll myself (and create a PR to this repo), but I am afraid it would break anything.

How this issue could be resolved?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.