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

Windows 10, PyCharm, Yuglify -- PermissionError: [WinError 5] Access is denied #745

Open
jaradc opened this issue Feb 5, 2021 · 1 comment

Comments

@jaradc
Copy link

jaradc commented Feb 5, 2021

At the risk of looking like an idiot, I'll say it.

I suggest you mention in your documentation an example of how to specify the path to the "binary" for Windows users. I think Linux users and maybe Mac users throw around the term "binaries" a lot and assume everyone knows what they are talking about.

Being primarily a Windows user, what could have saved me like... 1.5 days of time... was if your documentation had an example of how to point to the Yuglify "binary" in the PIPELINE dictionary.

Link to the documentation I'm talking about.

Command line to execute for the Yuglify program. You will most likely change this to the location of yuglify on your system.

Defaults to '/usr/bin/env yuglify'.

If only you had said:

For Windows users, use the full absolute path.

Example: 'C:/Users/Owner/AppData/Roaming/npm/yuglify.cmd'

I went down the rabbit hole of messing with folder permissions, I tried putting Yuglify in every directory imaginable, I disabled my UAC on my OS... and in the end, it seems so obvious now. I don't know why your default for YUGLIFY_BINARY is '/usr/bin/env yuglify' (why the space?) but to Windows users, this is unfamiliar. I guess that's how you open programs on Linux. Sure, cool little knowledge nugget there, and maybe that will come in handy when I go to deploy...

But when I just want to get started and use a package to see if it's going to work... and Yuglify is the default... and I don't deeply know npm or Javascript best-practices (working on it!), I think your docs could be more clear.

My 10 cents.

@Pyvonix
Copy link

Pyvonix commented Feb 8, 2021

Hello @jaradc,

The syntax used in the documentation /usr/bin/env yuglify this referer to virtualenv which you can use on both Linux and Windows. Virtual environments bring a certain number of advantages, I advise you to look at what it is to understand.

If you really want the easier solution, you should have been to use css-html-js-minify compressor, which is based on python package and doesn't require anything more than pip install.

Don't hesitate to tell me if you have questions.
Buky

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