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

Middleman init error #2053

Closed
scott-schafer opened this issue Feb 14, 2017 · 6 comments
Closed

Middleman init error #2053

scott-schafer opened this issue Feb 14, 2017 · 6 comments

Comments

@scott-schafer
Copy link

Middleman init error

I have installed the Middleman gem 4.2.1 several times and I can not create a directory with middleman. I keep getting the same error whether I do middleman init my_new_site or I initiate it from within an existing directory my_new_site $ middleman init either way I can not get this to work. I have un-installed, re-installed, cleaned up middleman, bundle update, bundle downdate and I still can not get this to work.
I did do a Ruby Gems update gem update –system and I am using Ruby
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

The error is:

WARN: Unresolved specs during Gem::Specification.reset:
      thor (< 2.0, >= 0.17.0)
      rack (< 3, >= 1.4.5)
      minitest (~> 5.1)
      rb-fsevent (>= 0.9.4, ~> 0.9)
      rb-inotify (>= 0.9.7, ~> 0.9)
      sass (>= 3.4)
      execjs (< 3, >= 0.3.0, ~> 2.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/var/lib/gems/2.3.0/gems/middleman-cli-4.2.1/bin/middleman:12:in `require': cannot load such file -- dotenv (LoadError)
	from /var/lib/gems/2.3.0/gems/middleman-cli-4.2.1/bin/middleman:12:in `<top (required)>'
	from /usr/local/bin/middleman:22:in `load'
	from /usr/local/bin/middleman:22:in `<main>'```

and my middleman gems are:

*** LOCAL GEMS ***

middleman (4.2.1)
middleman-autoprefixer (2.6.3, 2.6.0)
middleman-cli (4.2.1)
middleman-core (4.2.1, 3.3.12)
middleman-deploy (1.0.0)
middleman-livereload (3.4.3)
middleman-sprockets (3.5.0, 3.4.2)

Any help would be greatly appreciated!

Thank You,
Scott

@tdreyno
Copy link
Member

tdreyno commented Feb 14, 2017

Can you try removing the 3.x gems? middleman-core should be bringing in the dotenv library with it. So my guess is that cli 4 is incorrectly loading core 3?

@scott-schafer
Copy link
Author

I removed all Middleman gems and installed the following and I also installed the dotenv gem and
I am still getting the error.

Installed Middleman Gems:

*** LOCAL GEMS ***

middleman (4.2.1)
middleman-cli (4.2.1)
middleman-core (4.2.1)
dotenv (2.2.0)

The current error after re-installing Middleman gems:

WARN: Unresolved specs during Gem::Specification.reset:
      thor (< 2.0, >= 0.17.0)
      rack (< 3, >= 1.4.5)
      tilt (< 3, >= 1.4.1, ~> 2.0)
      activesupport (< 5.1, >= 3.1, >= 4.2)
      listen (~> 3.0.0)
      sass (>= 3.4)
      uglifier (~> 3.0)
      execjs (~> 2.0)
      concurrent-ruby (~> 1.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/var/lib/gems/2.3.0/gems/middleman-cli-4.2.1/bin/middleman:12:in `require': cannot load such file -- dotenv (LoadError)
	from /var/lib/gems/2.3.0/gems/middleman-cli-4.2.1/bin/middleman:12:in `<top (required)>'
	from /usr/local/bin/middleman:22:in `load'
	from /usr/local/bin/middleman:22:in `<main>'

Do I need to install something else?

@tdreyno
Copy link
Member

tdreyno commented Feb 15, 2017

Can you post the results of gem list

@scott-schafer
Copy link
Author

$ gem list

*** LOCAL GEMS ***

actioncable (5.0.1)
actionmailer (5.0.1, 4.2.5)
actionpack (5.0.1, 4.2.5)
actionview (5.0.1, 4.2.5)
activejob (5.0.1, 4.2.5)
activemodel (5.0.1, 4.2.5)
activerecord (5.0.1, 4.2.5)
activesupport (5.0.1, 4.2.5, 4.1.16, 4.1.13)
addressable (2.5.0)
ansi (1.5.0)
arel (7.1.4, 6.0.4, 6.0.3)
autoprefixer-rails (6.7.2, 6.5.4, 6.3.2, 6.2.3, 6.0.2)
babel-source (5.8.35)
babel-transpiler (0.7.0)
backports (3.6.8)
bcrypt (3.1.11, 3.1.10)
bigdecimal (default: 1.2.8)
binding_of_caller (0.7.2)
bootstrap-sass (3.3.7, 3.3.6)
bootstrap-will_paginate (0.0.10)
builder (3.2.3, 3.2.2)
bundler (1.14.4, 1.13.7, 1.11.2)
byebug (9.0.6, 9.0.0, 8.2.2)
capybara (2.4.4)
carrierwave (0.11.2)
celluloid (0.16.0)
CFPropertyList (2.3.5, 2.3.4)
chunky_png (1.3.8, 1.3.4)
coderay (1.1.1, 1.1.0)
coffee-rails (4.2.1, 4.1.1)
coffee-script (2.4.1)
coffee-script-source (1.12.2, 1.10.0, 1.9.1.1)
colorize (0.7.7)
compass (1.0.3)
compass-core (1.0.3)
compass-import-once (1.0.5)
concurrent-ruby (1.0.4, 1.0.3, 1.0.0)
contracts (0.13.0)
debug_inspector (0.0.2)
did_you_mean (1.0.0)
dotenv (2.2.0)
em-websocket (0.5.1)
erubis (2.7.0)
eventmachine (1.0.8)
excon (0.55.0, 0.54.0)
execjs (2.7.0, 2.6.0)
faker (1.6.6)
fast_blank (1.0.0)
fastimage (2.0.1)
ffi (1.9.17, 1.9.14, 1.9.10)
fission (0.5.0)
fog (1.38.0)
fog-aliyun (0.1.0)
fog-atmos (0.1.0)
fog-aws (1.2.0, 1.1.0)
fog-brightbox (0.11.0)
fog-cloudatcost (0.1.2)
fog-core (1.43.0)
fog-dynect (0.0.3)
fog-ecloud (0.3.0)
fog-google (0.1.0)
fog-json (1.0.2)
fog-local (0.3.1)
fog-openstack (0.1.19, 0.1.18)
fog-powerdns (0.1.1)
fog-profitbricks (3.0.0)
fog-rackspace (0.1.4, 0.1.2)
fog-radosgw (0.0.5)
fog-riakcs (0.1.0)
fog-sakuracloud (1.7.5)
fog-serverlove (0.1.2)
fog-softlayer (1.1.4)
fog-storm_on_demand (0.1.1)
fog-terremark (0.1.0)
fog-vmfusion (0.1.0)
fog-voxel (0.1.0)
fog-vsphere (1.7.0, 1.5.2)
fog-xenserver (0.2.3)
fog-xml (0.1.2)
formatador (0.2.5)
foundation-rails (6.3.0.0)
globalid (0.3.7, 0.3.6)
guard (2.14.1, 2.13.0)
guard-compat (1.2.1)
guard-minitest (2.4.4, 2.3.1)
haml (4.0.7)
hamster (3.0.0)
hashie (3.5.3)
hike (1.2.3)
hitimes (1.2.4, 1.2.3)
hooks (0.4.1)
http_parser.rb (0.6.0)
i18n (0.8.0, 0.7.0)
inflecto (0.0.2)
io-console (default: 0.4.5)
ipaddress (0.8.3)
jbuilder (2.6.1, 2.4.1)
jquery-rails (4.2.2, 4.1.1, 4.1.0)
json (2.0.3, 2.0.2, 1.8.6, default: 1.8.3)
kramdown (1.13.2, 1.13.1, 1.8.0)
listen (3.1.5, 3.0.8, 3.0.6, 2.10.1)
loofah (2.0.3)
lumberjack (1.0.11, 1.0.10)
mail (2.6.4, 2.6.3)
memoist (0.15.0)
method_source (0.8.2)
middleman (4.2.1)
middleman-cli (4.2.1)
middleman-core (4.2.1)
mime-types (3.1, 2.99)
mime-types-data (3.2016.0521)
mimemagic (0.3.2)
mini_backtrace (0.1.3)
mini_magick (4.5.1)
mini_portile (0.6.2)
mini_portile2 (2.1.0, 2.0.0)
minitest (5.10.1, 5.8.4, 5.8.0)
minitest-reporters (1.1.13, 1.1.5)
molinillo (0.4.3)
multi_json (1.12.1, 1.11.2)
nenv (0.3.0)
net-http-persistent (2.9.4)
net-sftp (2.1.2)
net-ssh (4.0.1, 4.0.0)
net-telnet (0.1.1)
nio4r (1.2.1)
nokogiri (1.7.0.1, 1.7.0, 1.6.8.1, 1.6.7.2, 1.6.6.2)
notiffany (0.1.1, 0.0.8)
padrino-helpers (0.13.3.3, 0.12.8.1, 0.12.5)
padrino-support (0.13.3.3, 0.12.8.1, 0.12.5)
parallel (1.10.0)
pg (0.17.1)
power_assert (0.2.7)
pry (0.10.4, 0.10.3)
psych (default: 2.0.17)
ptools (1.3.3)
public_suffix (2.0.5)
puma (3.4.0, 2.11.1)
rack (2.0.1, 1.6.5, 1.6.4)
rack-livereload (0.3.16)
rack-test (0.6.3)
rails (5.0.1, 4.2.5)
rails-controller-testing (0.1.1)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (2.0.2, 2.0.1, 1.0.8, 1.0.7)
rails-html-sanitizer (1.0.3)
railties (5.0.1, 4.2.5)
rake (12.0.0, 10.5.0)
rb-fsevent (0.9.8, 0.9.7, 0.9.6)
rb-inotify (0.9.8, 0.9.7, 0.9.5)
rbvmomi (1.9.4)
rdoc (4.3.0, 4.2.2, default: 4.2.1)
ruby-progressbar (1.8.1, 1.7.5)
ruby_dep (1.5.0)
rubygems-update (2.6.10)
sass (3.4.23, 3.4.21, 3.4.18)
sass-rails (5.0.6, 5.0.4)
sdoc (0.4.2, 0.4.1)
servolux (0.12.0)
shellany (0.0.1)
slop (3.6.0)
spring (1.7.2, 1.1.3)
spring-watcher-listen (2.0.0)
sprockets (3.7.1, 3.5.2, 2.12.4)
sprockets-es6 (0.9.2)
sprockets-helpers (1.1.0)
sprockets-rails (3.2.0, 3.0.1)
sprockets-sass (1.3.1)
sqlite3 (1.3.13, 1.3.12, 1.3.11)
test-unit (3.1.7)
thor (0.19.4, 0.19.1)
thread_safe (0.3.5)
tilt (2.0.6, 2.0.5, 2.0.2, 1.4.1)
timers (4.0.4)
trollop (2.1.2)
turbolinks (5.0.1, 5.0.0, 2.5.3)
turbolinks-source (5.0.0)
tzinfo (1.2.2)
uber (0.0.15)
uglifier (3.0.4, 3.0.0, 2.7.2)
w3c_validators (1.3.2, 1.2)
wdm (0.1.1)
web-console (3.1.1, 2.3.0)
websocket-driver (0.6.5, 0.6.4)
websocket-extensions (0.1.2)
will_paginate (3.1.0)
xml-simple (1.1.5)
xpath (2.0.0)

@ngmaloney
Copy link

@scott-schafer I had a similar issue. I don't think it is middleman specific, I was able to resolve by running: gem cleanup

@scott-schafer
Copy link
Author

Thank You, That worked like a charm! I used the gem cleanupcommand and then reinstalled Middleman and it is working again. Thank You ngmaloney !!!

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

3 participants