jeffthibault / python-nostr

A Python library for Nostr
MIT License
274 stars 87 forks source link

Unable to install too #95

Open Gouvernathor opened 1 year ago

Gouvernathor commented 1 year ago

image Not the same error as #88. There doesn't seem to be anything in the readme addressing this.

vwt12eh8 commented 1 year ago

The reason seems to be that the secp256k1 package that the nostr package depends on is not compatible with Windows.

If you want to force installation, you can use pip install nostr --no-dependencies, but of course you cannot run it.

dcrystalj commented 1 year ago

looks like this is not compatible with m1. Same issue on my macOS

dcrystalj commented 1 year ago

I have resolved issue by installing pkg-config (apt-get install pkg-config) when building my docker

AtlasHODL commented 1 year ago

@dcrystalj can you explain how to do this? im a little confused here, also in a m1. should i just run apt-get install pkg-config in the terminal? because it doesnt seem to be working, not sure what you mean when you say "when building my docker", do you mean running the terminal inside the directory where the project is supposed to be or am i totally off here?

dcrystalj commented 1 year ago

@AtlasHODL I am running app inside docker. When building docker I can install pkg-config as I mentioned.

If you are running this on mac (without docker) you should probably try brew install pkg-config first

AtlasHODL commented 1 year ago

thank you I was able to install it using 'brew'. @dcrystalj

But now for some reason when I try to run main.py, the traceback I get is that there is no such module

'from Cryptodome import Random ModuleNotFoundError: No module named 'Cryptodome''

which is weird because I made sure to install that package using 'pip3 install pycryptodome' and I also installed the 'Crypto' package -> https://pypi.org/project/pycryptodome/

I checked with 'pip3 freeze' and its there.. and I also restarted the terminal but I get the same error.

image image
pleb21 commented 1 year ago

in my opinon, if it's for learning purpose, using google colab would be the simplest way to get started.