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

cant us it after installation #18

Open
YureiNox opened this issue May 15, 2024 · 5 comments
Open

cant us it after installation #18

YureiNox opened this issue May 15, 2024 · 5 comments

Comments

@YureiNox
Copy link

python fnfc.py
Traceback (most recent call last):
File "C:\Users\Yudaol\fnfc.py", line 1, in
from pyflipper import PyFlipper
ImportError: cannot import name 'PyFlipper' from 'pyflipper' (C:\Users\Yudaol\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyflipper_init_.py)

Why??????????????

@spkuehl
Copy link

spkuehl commented Jul 20, 2024

You can try this
from pyflipper.pyflipper import PyFlipper
That is the only import that worked for me after pip installing this library.

This library is awesome!

@ThatProgrammerr
Copy link

I noticed tx_from_file from flipper.subghz.tx_from_file("/ext/subghz/foo.sub") doesn't seem to work. Claiming that Subghz doesn't have an attribute of tx_from_file despite it being mentioned. Anyone got any ideas?

@ThatProgrammerr
Copy link

ThatProgrammerr commented Nov 15, 2024

Ended up adding this to the subghz.py file and it works.

    def tx_from_file(self, sub_file: str) -> str:
        # TODO: implement regex catch errors
        assert sub_file.endswith('.sub')
        return self._serial_wrapper.send(f"subghz tx_from_file {sub_file}")

@ThatProgrammerr
Copy link

Seems like the version in git is more updated than the version on Pip, my error.

@YureiNox
Copy link
Author

YureiNox commented Dec 6, 2024

dont worry i will try a bit later thx a lot

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

3 participants