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

abtin
page 20: … protoc command… I had to additionally run the following go get commands in order to be able to compile protobuf code using go...
New
New
iPaul
page 37 ANTLRInputStream input = new ANTLRInputStream(is); as of ANTLR 4 .8 should be: CharStream stream = CharStreams.fromStream(i...
New
telemachus
Python Testing With Pytest - Chapter 2, warnings for “unregistered custom marks” While running the smoke tests in Chapter 2, I get these...
New
JohnS
I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps. With: ruby-3.0.0 s...
New
brian-m-ops
#book-python-testing-with-pytest-second-edition Hi. Thanks for writing the book. I am just learning so this might just of been an issue ...
New
Charles
In general, the book isn’t yet updated for Phoenix version 1.6. On page 18 of the book, the authors indicate that an auto generated of ro...
New
brunogirin
When trying to run tox in parallel as explained on page 151, I got the following error: tox: error: argument -p/–parallel: expected one...
New
dsmith42
Hey there, I’m enjoying this book and have learned a few things alredayd. However, in Chapter 4 I believe we are meant to see the “>...
New
mert
AWDWR 7, page 152, page 153: Hello everyone, I’m a little bit lost on the hotwire part. I didn’t fully understand it. On page 152 @rub...
New

Other popular topics Top

PragmaticBookshelf
A PragProg Hero’s Journey with Brian P. Hogan @bphogan Have you ever worried that your only legacy will be in the form of legacy...
New
Exadra37
Please tell us what is your preferred monitor setup for programming(not gaming) and why you have chosen it. Does your monitor have eye p...
New
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
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
This looks like a stunning keycap set :orange_heart: A LEGENDARY KEYBOARD LIVES ON When you bought an Apple Macintosh computer in the e...
New
AstonJ
Saw this on TikTok of all places! :lol: Anyone heard of them before? Lite:
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
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

Latest in PragProg

View all threads ❯