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

Python3 incompatibility #12

Open
kaklik opened this issue Aug 1, 2020 · 4 comments
Open

Python3 incompatibility #12

kaklik opened this issue Aug 1, 2020 · 4 comments

Comments

@kaklik
Copy link
Member

kaklik commented Aug 1, 2020

$ python3 3dwf.py 10.1.1.132
Traceback (most recent call last):
File "3dwf.py", line 33, in
pybuf_from_memory = ctypes.pythonapi.PyBuffer_FromReadWriteMemory
File "/usr/lib/python3.8/ctypes/init.py", line 386, in getattr
func = self.getitem(name)
File "/usr/lib/python3.8/ctypes/init.py", line 391, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: python3: undefined symbol: PyBuffer_FromReadWriteMemory

@kaklik
Copy link
Member Author

kaklik commented Aug 10, 2020

Zároveň to vypadá, že pyfits už nepodporuje python pod verzi 3. Takže teď zřejmě nejde použít pysdr-recviewer s FITS soubory

Protože buď:

$ python2 pysdr-recviewer 20200809082529162_SVAKOV-R12_raws.fits 
Traceback (most recent call last):
  File "pysdr-recviewer", line 5, in <module>
    main()
  File "/home/kaklik/repos/bolidozor/pysdr/pysdr/recviewer.py", line 165, in main
    sample_rate, signal = read_file(sys.argv[1])
  File "/home/kaklik/repos/bolidozor/pysdr/pysdr/recviewer.py", line 144, in read_file
    import pyfits
ImportError: No module named pyfits

Nebo

$ python3 pysdr-recviewer 20200809082529162_SVAKOV-R12_raws.fits 
Traceback (most recent call last):
  File "pysdr-recviewer", line 4, in <module>
    from pysdr.recviewer import main
  File "/home/kaklik/repos/bolidozor/pysdr/pysdr/recviewer.py", line 13, in <module>
    from pysdr.waterfall import *
  File "/home/kaklik/repos/bolidozor/pysdr/pysdr/waterfall.py", line 18, in <module>
    from pysdr.input import RawSigInput, JackInput
  File "/home/kaklik/repos/bolidozor/pysdr/pysdr/input.py", line 5, in <module>
    import pysdr.ext as ext
ImportError: /home/kaklik/repos/bolidozor/pysdr/pysdr/ext.cpython-38-x86_64-linux-gnu.so: undefined symbol:         PyString_FromStringAndSize

@povik
Copy link
Member

povik commented Aug 31, 2023

Fixed in e1d4167

@povik povik closed this as completed Aug 31, 2023
@povik
Copy link
Member

povik commented Aug 31, 2023

While 3dwf.py should be Python 3 compatible, the remaining programs (pysdr-waterfall and -recviewer) don't seem to be. Reopening this issue.

@povik povik reopened this Aug 31, 2023
@MLAB-project MLAB-project deleted a comment from github-actions bot Aug 31, 2023
@MLAB-project MLAB-project deleted a comment from github-actions bot Aug 31, 2023
@MLAB-project MLAB-project deleted a comment from github-actions bot Aug 31, 2023
kaklik added a commit that referenced this issue Apr 19, 2024
The new issue created, the waterfall slides twice as fast as overlay.
@kaklik
Copy link
Member Author

kaklik commented Apr 19, 2024

I fixed all obvious Python3 incompatibilities. But unfortunately, there arose a mistake somewhere in the code, because the spectrum waterfall is twice as fast as the overlay. The result is that there are gaps between the spectrum texture every ten seconds.

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

2 participants