Sublime Text throwing "Permission Denied" when running glslViewer - sublimetext2

I have installed the glslViewer plugin for Sublime Text 2, which is supposed to run when I open a .frag file. When I open a file the following error appears:
[Errno 13] Permission denied
[cmd: [u'/Users/austin/glslViewer', u'red.frag']]
[dir: /Users/austin/procgraphics/Project1-Noise/src/shaders]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
[Finished]
I changed the permissions to read & write for the folders in path, but the error still occurs. What's going on?

Solved it: the path in glslViewer.sublime-settings was pointing to /Users/austin/glslViewer/ instead of /Users/austin/glslViewer/bin/ which is where the executable is located.

Related

Octave GUI on Mac is not able to find a file

I entered this code on my octave GUI on Mac:
>>cd file:///Users/Sudipta/Downloads/Stanford/warmUpExercise.m
error: file:///Users/Sudipta/Downloads/Stanford/warmUpExercise.m: No such file or directory
I am using macOS Big Sur and Octave version 3.8.0.The file in question exists in my computer and I have checked this code multiple times.
It is not able to locate the file on my MacBook for some reason. Can someone help?
Edit: I have tried a new code as mentioned in the comments, but it also can't find the file
>> cd Users/Sudipta/Downloads/Stanford/warmUpExercise.m
error: Users/Sudipta/Downloads/Stanford/warmUpExercise.m: No such file or directory
I have also tried:
1.>> cd Users/Sudipta/Downloads
error: Users/Sudipta/Downloads No such file or directory
2.>> cd Users/Sudipta/Downloads/Stanford
error: Users/Sudipta/Downloads/Stanford No such file or directory
And I got the same error as above.
The other code gave a different error:
3.> cd /Users/Sudipta/Downloads
warning: load_path: .: Operation not permitted
QKqueueFileSystemWatcherEngine::addPaths: open: Operation not permitted
Warning: QFileSystemWatcher: failed to add paths: /Users/Sudipta/Downloads

PhpStorm: Failed loading xebug.so

When trying to debug a single PHP script, PhpStorm keeps complaining about xebug. I assume the correct name is xdebug, but I don't find a place where I have used xebug instead of xdebug including /etc/php.d/15-xdebug.ini and /etc/php.ini. I think this is a PhpStorm bug.
Does anyone know what this is caused by and how can I fix it?
Detailed console error:
/usr/bin/php -dzend_extension=/usr/lib64/php/modules/xebug.so -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 myscript.phtml
Failed loading /usr/lib64/php/modules/xebug.so: /usr/lib64/php/modules/xebug.so: cannot open shared object file: No such file or directory

nltk download error13 Permission denied mac

I ran the command nltk.download() after typing python3 on terminal in mac OS X. Then I am getting this error
PermissionError: [Errno 13] Permission denied: '/Users/shreya/nltk_data/corpora/panlex_swadesh.zip'
This is what I got on terminal:
>>> nltk.download()
showing info https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nltk/downloader.py", line 1867, in run
for msg in self.data_server.incr_download(self.items):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nltk/downloader.py", line 529, in incr_download
for msg in self._download_list(info_or_id, download_dir, force):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nltk/downloader.py", line 572, in _download_list
for msg in self.incr_download(item, download_dir, force):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nltk/downloader.py", line 543, in incr_download
for msg in self.incr_download(info.children, download_dir, force):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nltk/downloader.py", line 529, in incr_download
for msg in self._download_list(info_or_id, download_dir, force):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nltk/downloader.py", line 572, in _download_list
for msg in self.incr_download(item, download_dir, force):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nltk/downloader.py", line 549, in incr_download
for msg in self._download_package(info, download_dir, force):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nltk/downloader.py", line 600, in _download_package
os.remove(filepath)
PermissionError: [Errno 13] Permission denied: '/Users/shreya/nltk_data/corpora/panlex_swadesh.zip'
Your permissions on this file are wrong. You either need to execute the script with sudo, or preferably, change the permissions by running this command:
sudo chmod +rwx /Users/shreya/nltk_data/corpora/panlex_swadesh.zip
Also, if you want to change all of the permissions in the directory, you can run:
sudo chmod -R +rwx /Users/shreya/nltk_data/
For some reason, your python download process does not have the right to download files into your nltk_data directory. That much is clear. Since the latter is under your home directory (assuming that you are user shreya), there is no telling what may have gone wrong. You could edit your answer to provide more information, including the OS X version you are running, and anything else about your environment that might be relevant.
You can also try different approaches:
Remove the entire nltk_data folder, quit and restart Python, and try again.
Direct the interactive downloader to put the files in a different directory (see the field at the bottom).
Start IDLE (e.g. by typing idle or idle3 at the Terminal) and run your python code in the IDLE console.
Maybe one of these will work. If not, you'll have to provide more information.

Warning: include_once(Varien/Autoload.php): failed to open stream

I still can't get to fix this error. I'm just trying to load a magento project in my local:
Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /var/www/html/box/app/Mage.php on line 51
All file are in the right place.
Any ideas?? Thanks!

Fatal error: require_once() [function.require]: Failed opening required global.php

I am try to open my site in locally. xampp is installed, but I get the following errors. How can I rectify this:
Warning: require_once(/Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/classes/phpInputFilter/class.inputfilter.php) [function.require-once]: failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/global.php on line 104
And:
Fatal error: require_once() [function.require]: Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/classes/phpInputFilter/class.inputfilter.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear') in /Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/global.php on line 104
This Warning is not Failed opening required global.php. This warning says line number 104 of global.php have a statement for requiring a file named class.inputfilter.php But, failed to load it.
This issue can occur in following cases :
--> File does not exists.
--> File exists but do not have READ permission.
Solution :
Go to the path :
/Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/classes/phpInputFilter/
and find the file named class.inputfilter.php.
If not found then get it from the fresh package of Virtuemart(Remember to check the version. Both files have to be from same Virtuemart version).
If exists then change its permissions to 644 or 755.