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

NameError for Vmail::VERSION when calling vmailsend #203

Open
rjdang opened this issue Apr 9, 2016 · 1 comment
Open

NameError for Vmail::VERSION when calling vmailsend #203

rjdang opened this issue Apr 9, 2016 · 1 comment

Comments

@rjdang
Copy link

rjdang commented Apr 9, 2016

Running vmailsend < file_name.txt on the terminal gives this error:

Checking vmail.db version... OK
Connecting to database
/var/lib/gems/2.2.0/gems/vmail-2.9.6/lib/vmail/database.rb:28:in `<top (required)>': uninitialized constant Vmail::VERSION (NameError)
from ...
...

I added

require_relative 'version'

at the top of database.db and now it seems to work.

version info:
vmail 2.9.6
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux-gnu]
Ubuntu 14.04.4 LTS

@dstokman
Copy link

I'm not sure if you meant to say "database.rb" (printed my original error message, and located for me in /var/lib/gems/2.1.0/gems/vmail-2.9.8/lib/vmail/) instead of "database.db" which is a file in my $HOME/.vmail folder. Being familiar with neither ruby, nor reading sql files as text, it took mea minute to realize this. In any case, after adding

require_relative 'version'

to the top of the ruby script, it worked for me too. So thank you!

I added
require_relative 'version'
at the top of database.db and now it seems to work.

This worked for me too, unless you

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