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

[Bug]: Not able to install using pip #2260

Open
1 task done
Puneet-Bajaj-IITM opened this issue Jan 7, 2025 · 5 comments
Open
1 task done

[Bug]: Not able to install using pip #2260

Puneet-Bajaj-IITM opened this issue Jan 7, 2025 · 5 comments

Comments

@Puneet-Bajaj-IITM
Copy link

Issue description

Hi when trying to install iota-sdk python i am not able to use it

i have tried all way outs and pip shows that it is installed, whats happening

Version

python 3.12.8
iota-sdk 0.1.0

Expected behaviour

it shall import it easliy

Actual behaviour

not able to import installed package

Can the issue reliably be reproduced?

Yes

Steps to reproduce the issue

pip install iota-sdk

python

from iota-sdk import MintNftParams

Errors

(iota_env) (base) @Puneet-Bajaj-IITM ➜ /workspaces/IOTA-MODELS (main) $ pip install iota-sdk
Requirement already satisfied: iota-sdk in /opt/conda/envs/iota_env/lib/python3.12/site-packages (0.1.0)
(iota_env) (base) @Puneet-Bajaj-IITM ➜ /workspaces/IOTA-MODELS (main) $ python
Python 3.12.8 | packaged by Anaconda, Inc. | (main, Dec 11 2024, 16:31:09) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import iota_sdk
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'iota_sdk'

Duplicate declaration

  • I have searched the issues tracker this issue and there is none
@Thoralf-M
Copy link
Member

Version for the mainnet should be 1.1.4 and not 0.1.0 https://pypi.org/project/iota-sdk
Please try pip install iota-sdk==1.1.4

@Puneet-Bajaj-IITM Puneet-Bajaj-IITM changed the title [Bug]: [Bug]: Not able to install using pip Jan 7, 2025
@Puneet-Bajaj-IITM
Copy link
Author

Yes i tried that earlier but it is not able to find it

(iota_env) (base) @Puneet-Bajaj-IITM ➜ /workspaces/IOTA-MODELS (main) $ pip install iota-sdk==1.1.4
ERROR: Could not find a version that satisfies the requirement iota-sdk==1.1.4 (from versions: 0.1.0)
ERROR: No matching distribution found for iota-sdk==1.1.4
(iota_env) (base) @Puneet-Bajaj-IITM ➜ /workspaces/IOTA-MODELS (main) $

@Thoralf-M
Copy link
Member

Then there might be no binary for your OS available, you can build it from source yourself https://wiki.iota.org/iota-sdk/getting-started/python/#build-the-binding-from-source

@Puneet-Bajaj-IITM
Copy link
Author

Puneet-Bajaj-IITM commented Jan 7, 2025 via email

@Thoralf-M
Copy link
Member

You can see all the available binaries here https://pypi.org/project/iota-sdk/#files, should work on many different targets
I use Python 3.10.12 and Pop!_OS 22.04 LTS

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