Bitcoin Forum
May 15, 2024, 12:24:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: Updating CLN 23.08 -> 24.02: No module named 'grpc_tools' on: April 15, 2024, 11:23:13 AM
I opened an Issue: https://github.com/ElementsProject/lightning/issues/7220
2  Bitcoin / Development & Technical Discussion / Re: Updating CLN 23.08 -> 24.02: No module named 'grpc_tools' on: April 14, 2024, 09:29:27 PM
This issue seemed to be due to the user/group structure specific to the RaspiBolt design and my error. I had installed grpcio-tools with the --user flag as user 'admin', with the command:

Code:
python3 -m pip install --user grpcio-tools

The upgrading process, as user lightningd, didn't have access presumably for that reason. Running the same command as user lightningd solved that issue. Running lightning-cli --version then showed 24.02.

However, restarting the service using 'sudo systemctl restart lightningd.service' failed. The logs showed two messages:

Code:
lightningd: v24.02.1-93-gc4edec8
plugin-clnrest: Killing plugin: disabled itself: No module named 'gevent'

I installed gevent both as user 'admin' and as user 'lightningd'. On repeated failures to restart, I repeated the above for modules gunicorn, flask, flask_restx, flask_cors, flask_socketio and json5.

Finally, restarting failed due to missing module 'pyln'. It could not be installed, returning:

Code:
ERROR: Could not find a version that satisfies the requirement pyln
ERROR: No matching distribution found for pyln

Searching for this, I find only Elements and lightningd results:

https://github.com/ElementsProject/lightning/issues/3982
https://github.com/lightningd/plugins/issues/314

This may be relevant as well: https://pypi.org/search/?q=pyln

There seems to be an issue with the requirements. I don't know if I can go any farther, but I'll update if I make any progress.
3  Bitcoin / Development & Technical Discussion / Re: Updating CLN 23.08 -> 24.02: No module named 'grpc_tools' on: April 14, 2024, 11:27:42 AM
I don't use Core Lightning. But looking at their repository, i think your approach isn't right.
1. https://github.com/ElementsProject/lightning/blob/master/doc/getting-started/getting-started/installation.md state they use poetry rather than pip as a way to install python package.
2. https://github.com/ElementsProject/lightning/blob/master/poetry.lock doesn't mention anything about grpc-tools, so you probably tried to install non-relevant package.

Did you follow step-by-step build on their documentation?

Thank you. I installed as per the RaspiBolt documentation here:
https://raspibolt.org/guide/bonus/lightning/cln.html

At the time I don't recall there being any conflict with the Elements documentation, but I understand the c-lightning-REST plugin was moved into the main codebase around 23.08. The issue may stem from how I upgraded to that version.

I installed poetry and though it didn't immediately solve the failed build issue, that gives me something to look into more closely and I'll update here if I make progress.
4  Bitcoin / Development & Technical Discussion / Updating CLN 23.08 -> 24.02: No module named 'grpc_tools' on: April 13, 2024, 08:03:00 PM
I'm currently running Core Lightning v23.08 and attempting to upgrade. I pulled v24.02.1, but the 'make' command fails with the following error:

Code:
/usr/bin/python3: Error while finding module specification for 'grpc_tools.protoc' (ModuleNotFoundError: No module named 'grpc_tools')
make: *** [Makefile:390: contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py] Error 1

Running 'python3 -m pip list' returns the following:

Code:
gpiozero 1.6.2
grpcio 1.62.1
grpcio-tools 1.62.1
idna 2.10

I don't think it should be necessary to do the following, but I tried 'python3 -m pip install grpc-tools'. That failed, returning the error:

Code:
Collecting grpc-tools
  Using cached grpc-tools-1.0.0.tar.gz (5.2 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
 
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-ys1uf5oz/grpc-tools_0c8d98a949ee48628a7bfd0821c2ba53/setup.py", line 33, in <module>
          raise RuntimeError(HINT)
      RuntimeError: Please install the official package with: pip install grpcio-tools
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

The hardware is a Pi 4B. Running 'cat /etc/os-release' returns the following:

Code:
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"

Apologies if this is a silly or duplicate question, but am I missing something obvious?
5  Other / Off-topic / Re: Residency in El Salvador on: July 30, 2022, 09:20:54 AM
Wonderful firsthand experience from @BJ2gCFtGbiVK. I have heard too many negative account about that country but I am glad you have given me a positive one. Just finished my Masters programme and looking for a country to study for PhD. I was attracted to El Salvador because of its Bitcoin friendly stance, but other factors like high rate of crime discouraged me. Although I am still considering the quality of education in that country but the world class service you received might be a pointer that their educational system might be sound.   

I didn't look into PhD-level education, and would imagine it could depend as much on individuals as much as institutions, but I can say that close to some of the higher-ranked universities you'd be able to live comfortably in modern accommodation and in peace, find well-equipped gyms for a mens sana in corpore sano, own a car or otherwise be mobile (San Salvador is very hilly, not ideal for bikes), and I'd be confident in the provision of labs and other technical infrastructure.

If it's bitcoin-related, you have job creation announcements starting to come through now, so you might get more information from those companies or the staff they employ, and I think the bitcoin community is still small enough to provide excellent networking opportunities.
6  Other / Off-topic / Re: Residency in El Salvador on: July 29, 2022, 09:39:00 PM
I'd like to update this thread, as although I'm no longer in El Salvador it may be of interest to those thinking of going there.

I spent three months in the country with a view to residency. I didn't go to Bitcoin Beach, I didn't spend any bitcoin in stores, I mostly stayed in relatively affluent areas in San Salvador. On that basis, I may have had a slightly different experience to other forum users.

In common with others though, I can confirm how warm-hearted, open and friendly the people I met there were. My Spanish improved a lot and I had plenty of opportunities to practise. I was able to learn quite a lot about life over the past thirty or forty years, how people got through difficult times and from where they draw their sense of pride and optimism. I found businesses opening post-pandemic attracting regular clientele and bringing new services to the city with a local touch. The nation feels like a big family, all the more valuable given its scarcity these days.

I found a range of private school options within the vicinity of apartments and housing at prices comparable to a small US town away from the coasts.

I went to a car showroom to ask about buying a car locally and found the process to be simple and without unnecessary bureaucracy, with lower prices than those to which I'm used.

I was a little surprised at the price of property, but found attractive options and helpful real estate services. I think six months would be plenty of time to find a place to live happily, do a deal and move.

I ate very well, not only pupusas and eggs and frijoles, but delicious meat and fresh fruit and American fast food. I had a cooked breakfast every day in a small and comfortable hotel for around $1200/month. Every morning I heard beautiful birdsong, and would see spectacular birds and lizards. While sitting outside, I often left my private keys in my hotel room along with a laptop, a desktop and two phones; nothing was ever touched.

I received excellent dental treatment privately, superior to what I had been used to in Europe.

I think the policies now in place should serve to create a growing middle class, and hope that process is allowed to flourish. I'm glad to see the issue of gangs being dealt with, particularly in the way in which it's being done.

It's a little complicated to extend a tourism visa beyond three months, so leave a few weeks to prepare the extension if you're planning on doing that.

I highly recommend the country, and was very sad to leave. The difficulties with the bitcoin bond issuance were and are quite understandable, so the accompanying permanent residency not being available is equally understandable. My other option was to apply for a temporary residency based on a monthly income requirement - however, I withdraw fiat in amounts over 10k every several months, and was advised by multiple lawyers this option requires regular monthly payments. If you're considering that, it's worthwhile to make sure your payments are regular, monthly and from the same source. There is an option for business investment but that didn't correspond to my personal situation.

Overall, very grateful and looking forward to returning again soon.
7  Bitcoin / Bitcoin Discussion / Re: Lightning Labs (devs of LND) trying to kill open source and hijack the protocol on: February 25, 2022, 09:07:53 PM
For my part, I'm glad I use C-Lightning exclusively. Grin I will soon make an 'Apollo BTC + C-Lightning' setup guide as well, hopefully adding many many more C-Lightning nodes to the network. Hopefully, when Futurebit will add Lightning natively, it will be built on C-Lightning. I will also make sure to open a few new channels, especially at these lower prices that we currently have.

I look forward to that. In the meantime, this Raspibolt issue on installation of C-Lightning may be of interest to you and others:
https://github.com/raspibolt/raspibolt/issues/857
8  Bitcoin / Bitcoin Discussion / Re: Lightning Labs (LND) associated with WEF? on: February 22, 2022, 04:58:31 PM
I'm not overly concerned whether or not LL has attended events organised by, or cooperates with, industrial and/or political groups. My primary interest is in products.

At the moment, there is an understandable desire to bring bitcoin to as many individuals and corporations as possible, as quickly as possible. Nation-state adoption adds to this pressure. There is a temptation to accept trade-offs that are not desirable and may not otherwise be considered.

My concern is that a combination of the building blocks currently in production or being proposed may lead to the blacklist functionality that is a hallmark of oppressive and totalitarian regimes:
1. Reputation systems for protocol services, which are all based on persistent identity, whether by IP alone or by tying IP/node to a physical identity;
2. Covenants, which would provide for a set of individuals or corporations to be denied access to services based on reputation or other criteria;
3. Web applications based on a persistent identity based on node, physical identity or a combination of both.

These ideas are evident in applications such as Lightning Labs Pool, Lightning Labs LSAT, BOS and the Coinpool proposal launched over the past few days.

I understand the issues with lightning liquidity and node maintenance, particularly in terms of a simplified user experience. I worry more that the trade-offs being proposed, and sometimes accepted, are perhaps inadvertently creating tools to remove the element of permission-less access that sets bitcoin apart from the fiat financial system as is.

I am not an anarchist and believe humans should be free to commit to social contracts, however, I am strongly against the enforcement of ID-based solutions at protocol level. Where strictly necessary, they are better implemented using existing web standards and national legal systems that can be modified by democratic engagement.

I'm very grateful for having benefited from the work done by open-source developers. I don't have the technical ability to contribute to core or second-layer development, but on a more constructive note, perhaps the solution lies in the direction of:
- RISC-V single board computers for Pi-like functionality
- educational resources similar to Raspibolt
- offering greater functionality on mobile interfaces as incentives to run nodes
- on-chain bonus payments followed by regular lightning-based salary payments, for fairly balanced channel usage
- app-based warnings of ID leaks for lightning, similar to existing on-chain privacy warnings
- a cautious, prudent approach to scarce OPCODE availability
9  Bitcoin / Bitcoin Discussion / Re: IMF urges El Salvador to remove Bitcoin as legal tender on: January 26, 2022, 02:41:59 AM
i have my own thoughts on the issues with el salvadors lightning use app instead of a bitcoin wallet.
i wont go into detail as many people of a certain group will come advertising their LN utopia's

but yes bitcoin is legal tender. and while utility of adoption is slow. especially of actual bitcoin acceptance(savings on bitcoin wallets) it is atleast one half step away from the dependants on the dollar.
(once all these covid travel restrictions calm down. i was planning a trip to el salvador to see how things are and what can be done to progress things)

however huge leaps to just cut off any dollar utility and make everything measured in bitcoin is not going to happen. but atleast giving people a address they can tell their relatives aboard to send funds to can bypass the US$ banking remittance headaches. as an extra option

its not something that has been around for years. it only became law in september (4 months ago) so it will take time.

heck the UK has taken 4 years to get from voting on brexit to a point where it actually activated. and then another 2 years to get used to all the law changes of brexit.. yep 6 years since the vote and its still not settled/normalised

so it will take longer then 4 months for people to get used to having another option. .. baby steps not huge leaps

There is certainly inefficiency in remittances and that's an opportunity for bitcoin, but it's naive to think that all KYC/AML is unnecessary and open borders are the answer to every problem. Again, I would hope that the intention is to reduce dependency on remittances by creating opportunity through projects like EBB1.

Lightning is certainly not ready for any nation-state use as primary legal tender. What's more concerning is that mobile-first development will lead to greater network centralisation and a lack of full nodes to balance the extra usage. That's partly why I think the IMF request is not unreasonable, and may be a benefit both to El Salvador and to Bitcoin.

I found a shop here selling the Raspberry Pi 4 B and asked if sales had gone up since the introduction of bitcoin. The question was met with a blank stare and a no.
10  Bitcoin / Bitcoin Discussion / Re: IMF urges El Salvador to remove Bitcoin as legal tender on: January 26, 2022, 01:46:23 AM

yes, media has over sold "bitcoin legal tender" as if el salvador has dropped the dollar. this is not the case. its instead added a second legal tender. adding options.
though at the moment the adoption and regular utility of this second option isnt much. the IMF fears the potential.
the potential is if the citizens moved their wealth over to bitcoin, and just stopped using dollar. then the IMF is screwed and wont get its debts to el salvador settled. though not a immediate threat. not a short term risk. the IMF is concerned about long term risk of long term loans not being repaid should el salvadorians prefer to use bitcoin instead of dollar

..
similar things were happening with UK/euro. because the UK didnt want to use the euro as a native currency. the euro banks didnt want to offer the UK euro loans. because if the UK is not circulating euro's then the euro banks have little chance of the UK generating enough euro to repay. thus allowing the UK a back door to exit out of by just claiming euro bankruptcy. whilst keeping the pound active for citizens in the UK

.. well then brexit happened and we left by another door. as we refused to join the euro, when asked again to drop the pound.

UK had a brexit. to cut ties with eurobank
i wonder if/when el salv' will do a IMF***off

Media aren't alone in the misrepresentation, and the problem is that a second legal tender hasn't really been added. The app defaults to USD, limits or makes bitcoin withdrawals outright impossible and provides no infrastructure for decentralisation. It does little more than create a platform that could easily be adapted to any CBDC or basket of CBDCs, as well as an extensive facial recognition database.

If the use case is increasing remittance income, that's more understandable, but you'd hope that any country would be attempting to minimise dependency on that revenue stream. The absence of young people here is striking.

I continue to believe that mobile-first lightning development is a net negative for bitcoin. At this point, my order of preference is:
1. Bitcoin for long-term savings
2. USD cash for spending
3. USD debit card for spending
4. Full-node based Lightning on desktop, non-LND implementation
5. Lightning mobile apps tied to ID/facial recognition (I don't want to use these at all)
11  Bitcoin / Bitcoin Discussion / Re: IMF urges El Salvador to remove Bitcoin as legal tender on: January 25, 2022, 10:23:05 PM
From my perspective, having recently arrived in San Salvador, I think the IMF request is not unreasonable.

Bitcoin is not being used as legal tender here - it is a front for an Alipay-style centralised app and facial recognition database - and the experiment has more potential to do harm than good for bitcoin, and perhaps El Salvador.

As I understand it, El Salvador's policy has three main elements:
1. The introduction of the Chivo app;
2. The acquisition of bitcoin in FX reserves;
3. The issuance of the EBB1 bond and subsequent, related issues.

Of these, the first is not honest and not working. I haven't seen the app used here even once. The second is not going well, and a strategy of 'buy the dip' sounds unprofessional, but I think it can be prudently executed and the amounts involved aren't that significant. The third is the most interesting idea, but the devil will be in the detail.

In order to gain and maintain confidence in the bond issuance and FX strategy, suspending the Chivo experiment may be a wise move. At the moment, it wouldn't be a major loss and the only real question it would leave is who has gained access to the facial recognition database.
12  Other / Off-topic / Re: Residency in El Salvador on: November 24, 2021, 12:48:41 PM
Big risk my friend, I am very complimentary about the president & his pioneering ways. I think it’s brilliant what he’s doing & he could really lift the country out of poverty but this will take time.

I think there are some very dangerous gangs there so I would seriously think about if you think it’s safe to move there.

I understand. Risk is relative and not absolute, but I wouldn't like to miscalculate it too much.

I am seriously considering the idea, but I'm also struck by a lack of interest from other bitcoin users and how that contrasts with their otherwise overwhelmingly positive reaction to the news. It seems to me related to the expected long-run performance of the bond(s). I made a specific thread for moving/settling issues in case it turns into a useful resource, if not by me perhaps by someone else.

So far my only feedback is shipping companies are unable or hesitant to provide service and have warned about risks of loss of/damage to items in transit and customs issues. Visas are available without reference to bitcoin by showing income of ~$24k p.a.
13  Other / Off-topic / Re: Residency in El Salvador on: November 23, 2021, 07:31:46 PM
I finally watched the full speech and presentation given by the President and Samson Mow and the issue of residency is indeed mentioned towards the end.

Samson says that investment in the EBB1 issue will qualify towards permanent residency, and the President responds saying "or anything else."
https://youtu.be/tqoJkVvKmy0?t=1659
14  Other / Off-topic / Re: Residency in El Salvador on: November 21, 2021, 08:41:02 AM
I am not an expert, but I believe moving to a different country is a serious step and it should not be done exclusively because their Bitcoin laws (which are still an early experiment).

Anyways, perhaps if you offer more details about the kind of residency you want to get, I might take some time and translate whatever I find from Spanish to English for you.


Thank you. Bitcoin as legal tender is only one factor but not insignificant, especially in terms of property acquisition. Private healthcare in San Salvador is roughly on par with where I currently reside, private education options are also similar. The security situation would be an improvement over my home country, as would corruption levels and property rights.

In June, alongside the announcement of bitcoin as legal tender, President Bukele announced that a residency program would be introduced based on an investment of three bitcoins. That figure was given during a Twitter Spaces chat.
https://twitter.com/nayibbukele/status/1401622548396314631
https://[Suspicious link removed]day/el-salvador-now-offers-permanent-residency-for-3-btc

In July, a poster on another forum indicated that in response to his enquiries, an ambassador had promised to contact him when details were available. The thread hasn't been updated since.

As there has been some activity this week in the El Salvador bitcoin story, I wondered if there have been any updates on the idea's implementation.

I understand the different options listed on the government website, but I'm reasonably sure it hasn't been added yet:
http://www.migracion.gob.sv/servicios/residencias-definitivas/
15  Other / Off-topic / Residency in El Salvador on: November 20, 2021, 06:45:54 PM
Firstly, thanks for all the things I've learned lurking here.
And to my question: has anyone successfully gone through the process of obtaining permanent residency in El Salvador for bitcoin? There doesn't seem to be anything about it on migracion.gob.sv.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!