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.

Where Next?

Popular Pragmatic Bookshelf topics Top

iPaul
page 37 ANTLRInputStream input = new ANTLRInputStream(is); as of ANTLR 4 .8 should be: CharStream stream = CharStreams.fromStream(i...
New
simonpeter
When I try the command to create a pair of migration files I get an error. user=> (create-migration "guestbook") Execution error (Ill...
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
brunogirin
When installing Cards as an editable package, I get the following error: ERROR: File “setup.py” not found. Directory cannot be installe...
New
jonmac
The allprojects block listed on page 245 produces the following error when syncing gradle: “org.gradle.api.GradleScriptException: A prob...
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
andreheijstek
After running /bin/setup, the first error was: The foreman' command exists in these Ruby versions: That was easy to fix: gem install fore...
New
a.zampa
@mfazio23 I’m following the indications of the book and arriver ad chapter 10, but the app cannot be compiled due to an error in the Bas...
New
dtonhofer
@parrt In the context of Chapter 4.3, the grammar Java.g4, meant to parse Java 6 compilation units, no longer passes ANTLR (currently 4....
New

Other popular topics Top

AstonJ
A thread that every forum needs! Simply post a link to a track on YouTube (or SoundCloud or Vimeo amongst others!) on a separate line an...
New
New
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
PragmaticBookshelf
Learn different ways of writing concurrent code in Elixir and increase your application's performance, without sacrificing scalability or...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1139 25582 756
New
PragmaticBookshelf
Author Spotlight Mike Riley @mriley This month, we turn the spotlight on Mike Riley, author of Portable Python Projects. Mike’s book ...
New
PragmaticBookshelf
Author Spotlight Rebecca Skinner @RebeccaSkinner Welcome to our latest author spotlight, where we sit down with Rebecca Skinner, auth...
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
AstonJ
If you’re getting errors like this: psql: error: connection to server on socket “/tmp/.s.PGSQL.5432” failed: No such file or directory ...
New

Sub Categories: