Open phyninja opened 3 years ago
Likely due to mimemagic fun from two weeks ago.
Try running bundle update mimemagic
or pinning mimemagic to something ~ 0.3.10
The Gemfile specifies the use of a particular revision of paperclip https://github.com/boulder-food-rescue/food-rescue-robot/blob/37c2dc6e58516b3e406beb4678cb871e9cf2dc7d/Gemfile#L71 which loops back to the mimemagic error:
Bundler could not find compatible versions for gem "mimemagic": In Gemfile: paperclip was resolved to 4.3.1, which depends on mimemagic (= 0.3.0)
Any reason we cannot also upgrade paperclip to the latest version (6.1.0)?
That is two major version bumps of paperclip, you'd have to check the release notes, but likely breaking changes on each version bump. https://github.com/thoughtbot/paperclip/blob/master/NEWS
I don't know if we can just upgrade it that far
I tried 'pinning mimemagic' to 0.3.10 in the following way:
Then, in food-rescue-robot's Gemfile, I specified the fork and the newly-created-ref in place of the existing info in lines 71 and 72:
gem 'paperclip', git: 'https://github.com/thoughtbot/paperclip', ref: '523bd46c768226893f23889079a7aa9c73b57d68'
and ran
bundle install
only to find that I'm now facing a new error. Because I'm not seeing that paperclip or mimemagic is installed, I will need some more time to confirm whether or not your suggestion works.
Yup, we're in a pretty rough spot w/ this app around that right now.
Paperclip v5.0.0 has a note:
* Drop support for end-of-life'd Rails 3.2 and 4.1
So we literally cannot upgrade this app right now.
I believe there is a new version coming by end of the year that will be better around this.
For any folks trying to get the app running in the future, I was able to get it running with a few tweaks and removing attachment features. Sharing here as it might be a good starting point for you. Sorry these notes are rough, I tried to simplify things, but I'm sure it can be streamlined further.
gem install bundler -v ‘~> 1.17.3’
. I had to uninstall newer versions w/ gem uninstall bundler
in order to get it working.bundle install
and fixing the issues that arose as they came up.paperclip
and the associated features.
Region
and Volunteer
models (Remove calls to has_attached_file
and validates_attachment_file_name
)paperclip
from the Gemfile.therubyracer
and libv8
.
brew install v8@3.15
bundle config build.libv8 --with-system-v8
bundle config build.therubyracer --with-v8-dir=$(brew --prefix v8@3.15)
thin
,
bundle config build.thin --with-cflags="-Wno-error=implicit-function-declaration"
pg
would not compile native extensions. Possibly because my version of Postgres was too new.
brew install postgresql@10
pg
to version 0.21.0
: bundle update pg
brew install libpq
I'm not sure if this was necessary, but I installed and followed the post-install directions.bin/setup
was failing in the bin/support/bootstrap-database.rb
task. So I ran through the db steps manually: createuser -s -U bfr_webapp_db
(I made this a superuser, but could probably have just made them an owner), createdb bfr_webapp_db
. bundle exec rake db:schema:load
(I didn't want to mess with trying to run migrations, since I would have to first remove the paperclip-related migration code) and bundle exec rake db:sample_region
to seed some test data before starting the app.
Expected Behavior
Running
bundle install
installs all of the project's dependencies.Actual Behavior
The following error message is produced:
Steps to Recreate
Follow the instructions to set up the dev environment on OSX. After
cd
ing into thefood-rescue-robot
directory, runEnvironment
Operating System: MacOS BigSur (11.2.3) Ruby version: 2.3.7 bundler version: 1.17.3