How to retrieve a module's path?

I want to detect whether module has changed. Now, using inotify is simple, you just need to know the directory you want to get notifications from. How do I retrieve a module's path in python?

Building Mercurial 1.3.1 on Ubuntu Linux

I'm attempting to build mercurial 1.3.1. I've attempted this thus far on my Mac OS X machine and on a Linux Ubuntu virtual machine that I'm running. I keep getting errors while running the make. I...

How to run a shell script when a file or directory changes?

I want to run a shell script when a specific file or directory changes. How can I easily do that?

inotify with NFS

I've recently created a dropbox system using inotify, watching for files created in a particular directory. The directory I'm watching is mounted from an NFS server, and inotify is behaving...

Can iNotify tell me where a monitored file is moved?

I want to monitor a file while it's moving in the system. Can iNotify tell me its new position whenever it's moves?

inotifywait - exclude regex pattern formatting

I am trying to use inotifywait to watch all *.js* files under my ~/js directory; how do I format my regex inside the following command? $ inotifywait -m -r --exclude [REGEX HERE] ~/js The regex -...

Restart process on file change in Linux

Is there a simple solution (using common shell utils, via a util provided by most distributions, or some simple python/... script) to restart a process when some files change? It would be nice to...

How can I interrupt or debounce an inotifywait loop?

I have a little script that watches files for changes using inotifywait. When something changes, a batch of files are sent through a process (compiled, compressed, reorganised, etc) that takes...

Programmatically Trigger an inotify event on linux

Using shared folders on VirtualBox (or pretty much any VM) will not trigger inotify events on the guest OS when a file is changed on the host OS. But if it's possible to programmatically trigger...

inotifywait running daemon mode giving error Couldn't initialize inotify

I am running inotifywait (inotify-tools-3.14-1) in the daemon mode, however, it gave the following error and no watches are established. Also, since it is within the while loop, there were many...

NFS in Docker: exportfs: <path> does not support NFS export

I'm working on a docker NFS container, but running into trouble mounting the exported directories (even on localhost). The problem exportfs: does not support NFS export The setup My...

Listen error: unable to monitor directories for changes

I am getting the following error while running my rails app in Ubuntu server FATAL: Listen error: unable to monitor directories for changes....

Error when running watchman

When I run react-native start, I am getting the following message Error: A non-recoverable condition has triggered. Watchman needs your help! The triggering condition was at timestamp=1489123194:...

Asp.Net Core - The configured user limit (128) on the number of inotify instances has been reached

the asp.net core MVC report error after certain times of query to the mysql database (on Ubuntu 14.04/16.04) with the following message: "The configured user limit (128) on the number of inotify...

Could not find public_suffix-2.0.4 in any of the sources

It started when I tried to add the Google Tag Manager Gem to my local installation of Jekyll. A little background here, I'm using homebrew and rbenv. My ruby version is 2.4.1 or at least I think...

Rubymine and yarn

I have an error with my RoR project when I try to start it using "Run" (shift+f10) But when I start the server using rails s in console, it works. ======================================== Your...

VSC unable to watch for file changes in this large workspace weird

I just started using VSCode version 1.24.1. After loading a folder, it shows warning Visual Studio Code is unable to watch for file changes in this large workspace After i check the limit as...

Docker Node Alpine Image Build Fails on node-gyp

I'm attempting to Dockerize a Vue.js application. I'm using the node:10.15-alpine Docker image as a base. The image build fails with the following error: gyp ERR! configure error gyp ERR! stack...

How to fix "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" error

I'm trying to deploy a reactjs application to heroku. While compiling assets, the build fails and produces this error: -----> Ruby app detected -----> Compiling Ruby/Rails -----> Using Ruby...

Bundler compatible versions for gem "jekyll"

I'm trying to setup github page using Jekyll, currently it is using minima theme, and I want to change it to jekyll-theme-hacker. So, I went to Gemfile, I added gem "github-pages",...

How to "fix ENOSPC: no space left on device, write" on Mac

I've been using create-react-app to create all my react applications. Eventually, I ran into this issue, where when I run npm start, I get this error: Failed to compile ./src/App.js ...

How to run "rails console" without nokogiri "cannot load such file -- nokogiri/nokogiri (LoadError)" error on Mac?

I'm trying to build a Rails application on Mac OS Big Sur with the following versions ... $ rails --version Rails 5.0.7.2 $ ruby --version ruby 2.6.3p62 (2019-04-16 revision 67580)...

ld: library not found for -lzstd while bundle install for mysql2 gem Ruby on macOS Big Sur 11.4

while running bundle install An error occurred while installing mysql2 (0.5.3), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.5.3' --source 'https://rubygems.org/'`...

bundle install error - ruby_dep-1.5.0 requires ruby version >= 2.2.5 but I have version 3.0.1p64

I used to work in a project with a Ubuntu machine flawlessly. After some time, I decided to hop into Fedora and now that I've setup everything, I was going to continue the project but when I run...

Error while running bundle update after doing git clone

I'm using window operating system for ruby on rails application. I just clone the git repository which is a ruby on rails application. But, when I do bundle update it shows this error libv8-node...

Oracle 12c docker setup on Apple M1

I am trying to run Oracle db in docker on M1 Mac. I have tried images from both store/oracle/database-enterprise:12.2.0.1-slim and container-registry.oracle.com/database/enterprise:12.2.0.1-slim...

Ruby Shopify CLI installation - missing libraries - error

I am fairly new to Ruby and getting an error in the command line when attempting to use it to install Shopify CLI gem install shopify-cli. I verified that I have ruby installed by running ruby...

How to fix "Function not implemented - Failed to initialize inotify (Errno::ENOSYS)" in rails

So I'm running the new Apple M1 Pro chipset, and the original M1 chip on another machine, and when I attempt to create new RSpec tests in ruby I get the following error. Function not implemented -...

Error getting a simple example to work in Rails / Turbo / Hotwire

I am learning Hotwire-rails, following both the gorails.com and the Hotwire.dev examples. I am running Ruby 3.0.2 and Rails 6.1.4.1. The symptom is at the very start. After rails new xxx, I edit...

wxPython not installing via PIP on Apple Silicon M1 Max

Have a project that is written in Python 3.8.x and wxPython. It was developed on an Apple MacBookPro (Intel-based). wxPython installed via PIP inside a virtual environment without problems. Life...