IndianOpenSourceFoundation / dynamic-cli

A Modern, user-friendly command-line HTTP client for the API testing, and if you're stuck - Search and browse StackOverflow without leaving the CLI
https://pypi.org/project/dynamic-cli/
GNU General Public License v3.0
168 stars 120 forks source link

Having Issue with Installation #156

Closed Harshil-Jani closed 2 years ago

Harshil-Jani commented 2 years ago

I have been trying to install Dynamic CLI as per developers guidelines given, but when I ran dynamic -v it throwed some traceback call.

Traceback (most recent call last):
  File "/usr/bin/dynamic", line 33, in <module>
    sys.exit(load_entry_point('dynamic-cli', 'console_scripts', 'dynamic')())
  File "/usr/bin/dynamic", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
  File "/usr/lib/python3.8/importlib/metadata.py", line 503, in distribution
    return Distribution.from_name(distribution_name)
  File "/usr/lib/python3.8/importlib/metadata.py", line 177, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: dynamic-cli

I am using Python 3.8.10. I even tried manually installing importlib-metadata using pip3 install importlib-metadata but this says Requirement already satisfied: importlib-metadata in /usr/lib/python3/dist-packages (1.5.0)

github-actions[bot] commented 2 years ago

Hi👋 thanks for creating your first issue for IOSF, Will get back to you soon !.

GouravSardana commented 2 years ago

Hey @Harshil-Jani ,

Thanks for putting this issue out. I tried in my local again to install the dynamic from fresh. I didn't get the error as such

(temp) gourav@LAPTOP-PHS5P97J:~/ubuntu$ dynamic -v Dynamic-CLI version 0.1.0

I'm also using python 3.8.10. Can you specify which OS you're using ? We currently support linux based OS and Mac. For window, you have to install WSL to make our dynamic cli works. Please let me know if you need any help

GouravSardana commented 2 years ago

Maybe it's conflicting with your local packages which are installed. You can try using virtualenv and install dynamic in the virtual env

Harshil-Jani commented 2 years ago

Can you specify which OS you're using ? We currently support linux based OS and Mac.

I am using Ubuntu 20.04 LTS

Maybe it's conflicting with your local packages which are installed. You can try using virtualenv and install dynamic in the virtual env

Oh Okay. I will be looking into this and let you know if it works or not.

GouravSardana commented 2 years ago

Please lemme know if you need more help else we’ll close this issue

Harshil-Jani commented 2 years ago

@GouravSardana I lastly used sudo pip3 install dynamic-cli and it is working well, but found no solution to existing problem. So, If you find any solution to that please let me know. I have tried by changing some Paths but it didn't worked. I

GouravSardana commented 2 years ago

Try installing in an environment variable

sahilsuman933 commented 2 years ago

Hey @Harshil-Jani I am using Ubuntu 21.10 and Python Version 3.9.7 and it is working great.

I also faced the issue at last step, it was due to permission issue. Which you can fix it by adding sudo before it.

Here is the exact command: sudo pip3 install -e .

Harshil-Jani commented 2 years ago

Woahhhh ! Really missed on that. Thankyou so much @sahilsuman933 !! It worked

sahilsuman933 commented 2 years ago

@Harshil-Jani You are welcome :D