CardioLeo

CardioLeo

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 Prag Prog topics Top

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
AleksandrKudashkin
On the page xv there is an instruction to run bin/setup from the main folder. I downloaded the source code today (12/03/21) and can’t see...
New
patoncrispy
I’m new to Rust and am using this book to learn more as well as to feed my interest in game dev. I’ve just finished the flappy dragon exa...
New
fynn
This is as much a suggestion as a question, as a note for others. Locally the SGP30 wasn’t available, so I ordered a SGP40. On page 53, ...
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
kolossal
Hi, I need some help, I’m new to rust and was learning through your book. but I got stuck at the last stage of distribution. Whenever I t...
New
Keton
When running the program in chapter 8, “Implementing Combat”, the printout Health before attack was never printed so I assumed something ...
New
mcpierce
@mfazio23 I’ve applied the changes from Chapter 5 of the book and everything builds correctly and runs. But, when I try to start a game,...
New
dachristenson
I just bought this book to learn about Android development, and I’m already running into a major issue in Ch. 1, p. 20: “Update activity...
New

Other popular topics Top

brentjanderson
Bought the Moonlander mechanical keyboard. Cherry Brown MX switches. Arms and wrists have been hurting enough that it’s time I did someth...
New
DevotionGeo
I know that -t flag is used along with -i flag for getting an interactive shell. But I cannot digest what the man page for docker run com...
New
AstonJ
poll poll Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
New
AstonJ
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
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
AstonJ
Biggest jackpot ever apparently! :upside_down_face: I don’t (usually) gamble/play the lottery, but working on a program to predict the...
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
New
AstonJ
We’ve talked about his book briefly here but it is quickly becoming obsolete - so he’s decided to create a series of 7 podcasts, the firs...
New
PragmaticBookshelf
Author Spotlight Erin Dees @undees Welcome to our new author spotlight! We had the pleasure of chatting with Erin Dees, co-author of ...
New
PragmaticBookshelf
Author Spotlight: VM Brasseur @vmbrasseur We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
New