-
Notifications
You must be signed in to change notification settings - Fork 849
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
Exception on Ubuntu 20.04 #1050
Comments
@xclud can you update and try again? I fixed this bug normally. |
Nop. This is not working. I installed the version
and I get this exception:
I have this project as a daemon (background service) in Ubuntu. My guess is this project is trying to get the user's BTW, what I dislike about NBitcoin is it relates to the filesystem and network and even thought I only want to generate an offline wallet, it still initializes some directories and network connections without developer's consent. |
Here is the source of the exception: Line 2075 in 17ce930
|
@xclud As you noticed, the exception is not specific to Ubuntu, but due to the fact your environment doesn't have either I've just submitted PR #1063 which uses the operating system's TEMP folder as a fallback, which is more likely to exist in scenarios like yours. In the meantime, a simple workaround would be for you to set one of these environment variables to an existing path for your process (preferably a folder where the user running the daemon has write access to) at the start of your app, before you access any of the Environment.SetEnvironmentVariable("HOME", System.IO.Path.GetTempPath(),
EnvironmentVariableTarget.Process); |
Pushed 6.0.10 fixing this bug, thanks @augustoproiete to spot the source! |
I run the following code from the blockchain book:
And i get the following exception:
I tried
5.x.x
and6.x.x
versions of the library and i get the same results.The text was updated successfully, but these errors were encountered: