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

Package not getting installed #4

Closed
niruvt opened this issue Sep 19, 2019 · 15 comments
Closed

Package not getting installed #4

niruvt opened this issue Sep 19, 2019 · 15 comments
Assignees
Labels

Comments

@niruvt
Copy link

niruvt commented Sep 19, 2019

I am trying to install this package.
I am getting these errors.

ERROR: Could not find a version that satisfies the requirement pygmentize==2.0 (from versions: none)
ERROR: No matching distribution found for pygmentize

I've looked this issue, but the problem there was absence of pygments.

If I issue the suggested command, I'm getting this result -

Requirement already satisfied: pygments in ./.local/lib/python3.6/site-packages (2.4.2)

I've also PHP installed. (version 7.2.19)

Having these dependencies installed also is not resulting in the successful installation.

@dedalozzo
Copy link
Owner

dedalozzo commented Sep 19, 2019

Hi @NiranjanTambe, can you run pygmentize from the shell? If you get an error means it's not in your env path. You can modify your env path following this answer.

@niruvt
Copy link
Author

niruvt commented Sep 19, 2019

But what should be the appropriate destination for the path then?

@niruvt
Copy link
Author

niruvt commented Sep 19, 2019

can you run pygmentize from the shell?

Can you please explain how to do this? I am sorry to ask these super basic question, but I am learning to use terminal.

@dedalozzo
Copy link
Owner

You should find where is the file, and add the directory to your PATH, or create a symlink in a directory already in your PATH, for example /usr/bin or /bin. To locate the file you can use updatedb in the root directory, then locate pygmentize.

@dedalozzo
Copy link
Owner

can you run pygmentize from the shell?

Can you please explain how to do this? I am sorry to ask these super basic question, but I am learning to use terminal.

Just open a terminal and type pygmentize. You should get an error I assume.

@dedalozzo dedalozzo self-assigned this Sep 19, 2019
@niruvt
Copy link
Author

niruvt commented Sep 19, 2019

Just open a terminal and type pygmentize

Something happened to my terminal, it isn't showing any error, but also not showing the regular user name and $

@dedalozzo
Copy link
Owner

Please press CTRL+C to return to the prompt.

@niruvt
Copy link
Author

niruvt commented Sep 19, 2019

^CTraceback (most recent call last):
  File "/home/ubuntu/.local/bin/pygmentize", line 10, in <module>
    sys.exit(main())
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pygments/cmdline.py", line 548, in main
    return main_inner(popts, args, usage)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pygments/cmdline.py", line 402, in main_inner
    code = sys.stdin.buffer.read()
KeyboardInterrupt

@dedalozzo
Copy link
Owner

It seems you can run it, so PHP should run it as well. Try to type pygmentize -L please, and paste the output here.

@niruvt
Copy link
Author

niruvt commented Sep 19, 2019

@dedalozzo
Copy link
Owner

As far as I can see you have pygments installed, and apparently it works. You should be fine.

@niruvt
Copy link
Author

niruvt commented Sep 19, 2019

Ok. Let me read about the environment and path and if any doubt I'll ask again. Thanks for your immediate response 👍

@dedalozzo
Copy link
Owner

Let me know if you have any trouble. I think you do not need to update your path. I think you can follow the instructions, modify your composer.json like per instructions in the README.me.

@niruvt
Copy link
Author

niruvt commented Sep 19, 2019

I read the instructions.

{
    "require": {
        "3f/pygmentize": "dev-master"
    },
}

This was giving an red colored error-box.

error

I just tried to interpret it and removed the comma and the process was completed. I was able to perform my desired tasks. Just a request, if that comma is really unnecessary, please remove it from the instructions also. Somebody new might stumble at the installation itself.

@dedalozzo
Copy link
Owner

Just a request, if that comma is really unnecessary, please remove it from the instructions also. Somebody new might stumble at the installation itself.

I will, thank you for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants