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

Problem with latest version update #318

Closed
WB0OCV opened this issue Feb 27, 2025 · 1 comment
Closed

Problem with latest version update #318

WB0OCV opened this issue Feb 27, 2025 · 1 comment

Comments

@WB0OCV
Copy link

WB0OCV commented Feb 27, 2025

UPDATE
I just rolled my go programming platform back from version 1.24.0 to v1.23.6. After recompiling the latest rtlamr executable under 1.23.6, everything is well and works fine. It appears that the incompatibility is with the latest go progamming platform as opposed to the rtlamr update.


Hi Doug. I have been using rtlamr for the past 5+ years to log water use in my house. Thanks for creating such a useful utility. Every couple of months or so I will check/update to ensure I have the most recent version of the go progamming language as well as the latest version of rtlamr. I use the following command to update rtlamr:

 go install github.com/bemasher/rtlamr@latest

I had previously updated both go and rtlamr back around the first week of Jan-2025 and had no problems. However, when I updated both go and rtlamr a couple of days ago, whenever I try to launch rtlamr, I receive the follwing error message:

 flags.go:129: Error creating sample file:open NUL: Incorrect function

If I run the command 'rtlamr -version' on the latest rtlamr compilation, I receive this response:

 Build Tag:  dev
 Build Date: unknown
 Commit:     unknown

I am launching the latest version of rtl_tcp.exe, dated 22-Feb-2025, before executing rtlamr . I have tried to use both the 32-bit and 64-bit versions of rtl_tcp.exe, and it doesn't make any difference with the rtlamr functionality.

Unfortunately, since I updated both go (currently version 1.24.0) and rltamr at the same time, I don't know if the issue is with the go installation or the rtlamr update. I am using rtlamr on a 64-bit Windows 10 platform. If I run an older version of rtlamr, everything works fine.

I just wanted to make you aware of this issue with the latest Windows update to rtlamr. Thanks again for wonderful program.

Ken

@bemasher
Copy link
Owner

Thanks for reporting this, I was able to reproduce the issue. Abstracting sampleWriter and only opening and closing the "file" when sampleFile something other than os.DevNull is a simple fix. I've tagged a new minor release, feel free to try it out:

go install github.com/bemasher/[email protected]

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