CardioLeo

CardioLeo

Seven Web Frameworks in Seven Weeks - Version Conflicts

Title: Name of book: Seven Web Frameworks in Seven Weeks (page 5+)
Example: DataMapper has been discontinued, conflict over json versions
book-seven-web-frameworks-in-seven-weeks web-development ruby sinatra #datamapper

There are several issues I want to raise here briefly.

One is that it seems DataMapper has been discontinued. (Could that be contributing to the difficulty I’ve had getting the code to work?)

Another is that I get an error like the following both with testing the Sinatra code and running the crud application:
“rspec app_test.rb
An error occurred while loading ./app_test.rb.
Failure/Error: raise Gem::ConflictError.new self, conflicts
Gem::ConflictError:
Unable to activate dm-serializer-1.2.2, because json-2.5.1 conflicts with json (~> 1.6)”

I’ve messed around a lot with installing different versions of json, or trying to enable temporarily removing the default (2.5.1) so there won’t be a json conflict - but if there’s a magic trick to it, I don’t know what it is.

When I try to run the crud application I get the following lines (and more, but this is the gist of it):

“ruby app.rb
/usr/lib/ruby/vendor_ruby/rubygems/specification.rb:2236:in raise_if_conflicts': Unable to activate dm-serializer-1.2.2, because json-2.5.1 conflicts with json (~> 1.6) (Gem::ConflictError) from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1367:in activate’”

I’ve looked at a number of pieces on Stack Overflow and similar resources and am having trouble finding anything that helps - though I’ve tried a variety of tips and suggestions.

Another issue I ran into was that initially I got errors saying that the file sqlite3.h was not found; after a good deal of searching my files, github, stackoverflow, etc., I discovered that if I installed libsqlite3-dev this particular problem went away. This doesn’t appear to have been installed merely through following the steps in the book (presumably the .h file was present or not needed at publishing time).

Any further suggestions would be very welcome. I am trying to learn as much as I can. I’m excited about this book and to be learning about it.

Popular Pragmatic Bookshelf topics Top

jimmykiang
This test is broken right out of the box… — FAIL: TestAgent (7.82s) agent_test.go:77: Error Trace: agent_test.go:77 agent_test.go:...
New
jeffmcompsci
Title: Design and Build Great Web APIs - typo “https://company-atk.herokuapp.com/2258ie4t68jv” (page 19, third bullet in URL list) Typo:...
New
jesse050717
Title: Web Development with Clojure, Third Edition, pg 116 Hi - I just started chapter 5 and I am stuck on page 116 while trying to star...
New
sdmoralesma
Title: Web Development with Clojure, Third Edition - migrations/create not working: p159 When I execute the command: user=> (create-...
New
mikecargal
Title: Hands-On Rust (Chap 8 (Adding a Heads Up Display) It looks like ​.with_simple_console_no_bg​(SCREEN_WIDTH*2, SCREEN_HEIGHT*2...
New
edruder
I thought that there might be interest in using the book with Rails 6.1 and Ruby 2.7.2. I’ll note what I needed to do differently here. ...
New
HarryDeveloper
Hi @venkats, It has been mentioned in the description of ‘Supervisory Job’ title that 2 things as mentioned below result in the same eff...
New
jskubick
I found an issue in Chapter 7 regarding android:backgroundTint vs app:backgroundTint. How to replicate: load chapter-7 from zipfile i...
New
digitalbias
Title: Build a Weather Station with Elixir and Nerves: Problem connecting to Postgres with Grafana on (page 64) If you follow the defau...
New
EdBorn
Title: Agile Web Development with Rails 7: (page 70) I am running windows 11 pro with rails 7.0.3 and ruby 3.1.2p20 (2022-04-12 revision...
New

Other popular topics Top

AstonJ
There’s a whole world of custom keycaps out there that I didn’t know existed! Check out all of our Keycaps threads here: https://forum....
New
Exadra37
On modern versions of macOS, you simply can’t power on your computer, launch a text editor or eBook reader, and write or read, without a ...
New
Exadra37
I am a Linux user since 2012, more or less, and I always use Ubuntu on my computers, and my last 2 laptops have been used Thinkpads, wher...
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
foxtrottwist
A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
New
New
AstonJ
If you want a quick and easy way to block any website on your Mac using Little Snitch simply… File > New Rule: And select Deny, O...
New
PragmaticBookshelf
Author Spotlight: Karl Stolley @karlstolley Logic! Rhetoric! Prag! Wow, what a combination. In this spotlight, we sit down with Karl ...
New
PragmaticBookshelf
Author Spotlight: Peter Ullrich @PJUllrich Data is at the core of every business, but it is useless if nobody can access and analyze ...
New
AstonJ
This is cool! DEEPSEEK-V3 ON M4 MAC: BLAZING FAST INFERENCE ON APPLE SILICON We just witnessed something incredible: the largest open-s...
New