Eventmachine - Unable to load the Event Machine C Extension - ruby

I'm trying to run the current development version of Instiki on windows 8.1. I use ruby 2.4 . Bundle install succeeded. I also used the newest Nokogiri 1.8.0 version that was released some days ago and this fixed a compatibility issue with Ruby 2.4 on windows systems.
When I run instiki , It says that the system is unable to load the Event Machine C Extension.
In more detail the Error message is :
Unable to load Event Machine C extension: To use the pure ruby reactor use 'require'em/pure_ruby
C:\instiki\vendor\rails\activesupport\lib\active_support\dependencies.rb:184: in 'require' cannot load such a file -- rubyeventmachine (missing source file)
If I understand this correctly , A file is missing which was required in some module so I might be able to circumvent this by including some other module ( "pure_ruby" rb file) that provides the same functionality . Is this right ? I tried to re-install this gem with no effect. If this is so , how can I do this ?
Note : This is the first time I use ruby and I have limited experience in programming
Some progress : I required pure_ruby in the dependencies file , the half page error report turned to two pages of errors which I can't decipher so this might be relevant.

Related

IntelliJ won't detect Ruby interpreter installed using asdf-vm whatsoever

Pretty weird stuff.
I have installed latest Ruby using asdf-vm. All works fine with the terminal - Ruby is being detected, I am able to install gems, and every create a Rails app and open it using VSCode.
Somehow, IntelliJ is detecting Ruby in /usr/bin/ruby. First of all, the file doesn't appear in the file system when I try to manually locate it. Also, the version of this file is different than the version I installed using asdf-vm. Next, I haven't installed Ruby using anything other than asdf-vm. Finally, I'm unable to delete the file using IntelliJ.
Now, changing the Ruby interpreter manually to /home/jaymin/.asdf/shims/ruby gives me the following error:
Error configuring SDK: Unable to read RbConfig for ruby (/home/linux-user/.asdf/shims/ruby). Please make sure that /home/linux-user/.asdf/shims/ruby is a valid home path for this SDK type.
I'm not sure what I am doing wrong.

How do I set the proper Ruby version for use with my Rails 5 project in Aptana 3?

I'm usingn Aptana Studio 3 on Mac High Sierra. I have imported my Rails 5 project and set "Rails" as my project natures in the "Properties" section of my project. However when editing some Ruby files, Aptana is incorrectly reporting syntax errors on the left side of the editor. For example, this line
creds = PasswordService.find_user(params[:login])&.object
is flagged with this error
syntax error, unexpected tDOT
even though this doesn't raise any errors when I run my project. I'm wondering if Aptana is not picking up the correct version of Ruby associated with my project but I'm not sure how to check/set that.
I don't use Aptana, but maybe you want to set your Ruby version too because the safe navigation & is a Ruby feature.
In the project directory run ruby -v in the console and check the ruby version, it must be higher than 2.3.
If you use a ruby version manager (rbenv or rvm) make sure you configure the right Ruby version for the project.
Is studio3-ruby the plugin you're using?
If so, I found this open issue that seems related to Ruby 2.0 support:
https://github.com/aptana/studio3-ruby/issues/8

Can't build the haskell shakespeare library on windows 10. Any ideas?

I'm trying to install Yesod through cabal on my HP computer, but the building process fails when shakespeare library gets the turn. MSYS2+MinGW in the path, the rest actually works. What could be the issue? I have my suspicions that it might be due to the x64 processor I have, but not sure.
Tried installing globally with runhaskell, but same story.
C:\Users\Ivan Kretov>cabal install shakespeare
Warning: The install command is a part of the legacy v1 style of cabal
usage.
Please switch to using either the new project style and the new-install
command or the legacy v1-install alias as new-style projects will become
the default in the next version of cabal-install. Please file a bug if
you cannot replicate a working v1- use case with the new-style commands.
For more information, see: https://wiki.haskell.org/Cabal/NewBuild
Resolving dependencies...
Starting shakespeare-2.0.20
Building shakespeare-2.0.20

Running PyPDFOCR on Windows via Python - Requiring Poppler?

I'm working on a project that requires the conversion of PDFs into their searchable counterparts, and have found that PyPDFOCR does exactly what I need to get the job done. However, when trying to install the module and its external dependencies, I'm running into issues where I can't download anything windows-related that defines pdfimages such as Poppler. I've search all around for any ways to install Poppler in order to run the module, but nothing seems to be supported or working. Any ideas?
Have you tried the Poppler download from:
https://sourceforge.net/projects/poppler-win32/ for Windows platform
https://poppler.freedesktop.org/ for Linux platform

Embendding Python 3.4 into MacOS app

I'm trying to get a Python 3.4 interpreter into my app without to distribute python framework.
I'm linking with the libpython3.4.a (which appear to have dependency on Python.framework/versions/3.4/Python), but as guessed, it need python framework.
Does someone experienced this issue ?
Logically,i should be able to link statically (real static) and just distribute the python34.zip modules, right ?
Thanks for you help.
EDIT:
Finally i downloaded the Python 3.4 sources and build a static version.
Now i don't have dependency issue.
So i include the python3.4.zip near my executable.
But now, when starting the application i have this error:
"Fatal Python error: Py_Initialize: unable to load the file system codec"
So, i set Py_SetProgramName() to my binary and Py_SetPath(zippath) before the Py_Initialize().
But i still have the "ImportError: No module named 'encodings'" issue.
I also have tested with a simple folder instead of a zip.

Resources