I have a Django app that uses Paramiko to communicate with other remote servers.
Paramiko relies on module winrandom, but that won't install on windows without gcc, so instead I use winrandom-ctypes.
This all works fine from development, but when I deploy to Apache (also on Windows), it fails on import winrandom, with this error:
DLL load failed: The specified module could not be found.
So...how can I make this work under Apache?
I've got the same problem with pyCrypton 2.3. Switching back to 2.1 seems to fix it.
Related
I'm attempting to build the Uno project template with Linux support, using WSL (Ubuntu 20.04), following the official guide.
Unfortunately, I always get an error running the Skia GTK project template:
DllNotFoundException: Gtk: libgtk-3-0.dll, libgtk-3.so.0, libgtk-3.0.dylib, gtk-3.dll
I tried adding libgtk-3-0.dll's folder to the Windows PATH, but this didn't help. Then I tried installing libgtk-3 in WSL, but it just changed the error to Can't open display :0.
What am I doing wrong?
The Skia.Gtk backend expects a running X Window server to connect to.
The guide suggests installing vcXsrv, an X11 server for Windows
You'll need to start the server in "Multiple windows" mode, starting with "no client" mode.
ERROR in ./services/emailService.js
Module not found: Error: Can't resolve '#/apis/adl/instance/EmailsApi' in
I'm getting this error when running the nuxt build inside docker container or in some CI/CD server like code build. this works properly in my local machine. I'm using mac. anyone can help?
If it work fine locally its most likely because of case sensitivity. CI/CD usually run on linux, and usual filesystem on linux is case dependent.
While MacOs usually run on case-insensitive file system. So your file is found on Mac, but not on linux because its in different case
I am trying to use php_ssh2.dll(thread safe version-1.1.2) using xampp on Apache Server in PHP 7.2 running on Windows 10. My phpinfo() shows Compiler is MSVC15 (Visual C++ 2017), Architecture is x86 and Thread Safe is enabled. After downloading i kept php_ssh2.dll on C:\xampp\php\ext folder and also added extension=php_ssh2.dll to php.ini file. After that i restarted my Apache Server. But the problem isn't resolved. Some posts suggest to use libssh2.dll but failed to find that dll inside the package(php_ssh2-1.1.2-7.1-ts-vc14-x86.zip) I downloaded. Can anyone help me on this one? Thanks.
For PHP 7.2 you would need to use version compiled with VC15 compiler. Unfortunately it is not available for download at pecl.php.net, but you can download it from https://github.com/nufue/pecl-ssh2-windows
Operating system - Ubuntu Server 14.04 on Azure VM
Tried with different versions of python (3.4.3, 3.6.0), apache and mod_wsgi.
Installed MS Native ODBC driver using instructions from here
https://gist.github.com/joecampo/6f777a659b8132b9d6fe1c3589df394c , while pyodbc was installed using pip.
To debug the wsgi_module I have set up the django application to run in embedded mode and:
gdb /usr/local/apache2/bin/httpd
run -X
When I access any function which imports pyodbc, the wsgi fails with the following error:
Program received signal SIGSEGV, Segmentation fault.
import_types () at src/pyodbcmodule.cpp:223
223 src/pyodbcmodule.cpp: No such file or directory.
Importing module works fine when I run the django app from the command line:
python3 manage.py runserver
Is there a workaround?
I experienced the same problem when setting up a Python Pyramid project, and downgrading to a previous version of pyodbc fixed it.
It looks like this may be a bug in pyodbc or the WSGI module. See pyodbc 4.0.9+ segfault with uwsgi #199. You may already be aware that this line is a red herring:
223 src/pyodbcmodule.cpp: No such file or directory.
That error is coming from the debugger and just tells where in import_types() the exception was raised, however searching for that file led me to that bug report on GitHub.
You obviously already know how to debug Apache and wsgi, but for anyone who doesn't there are detailed instructions here.
This has been fixed in 4.0.16 by adding support for subinterpreters.
I'm trying to set up testing for a Web app using behaving, which runs on top of behave and splinter - the latter of which in turn uses Selenium to drive PhantomJS. All of this is inside a VirtualBox-provided Vagrant box running CentOS 6.4. I've installed Selenium via pip, and I've installed PhantomJS from the Nux Dextop repo.
Trying to run my tests freezes Behave for 30 seconds, then raises:
selenium.common.exceptions.WebDriverException: Message: 'Can not connect to GhostDriver'
I think I've nailed it down to not being able to open a socket, and indeed, when I try to do this from the Python interactive shell, I can't open any socket to localhost at all. How do I get my tests to run?
I just had the same problem with the Can not connect to GhostDriver error. When trying phantomjs --help, I got the error
[WARNING] Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.48: cannot open shared object file: No such file or directory)"
After installing libicu48 (Ubuntu package), phantomjs --help gave me
[WARNING] phantomjs: cannot connect to X server
This made sense, since I didn't have an X server installed. Then, I discovered that phantomjs <= 1.4 requires an X server, but >= 1.5 is pure headless. So, instead of relying on my distro's phantomjs package, I installed it using npm, and now everything works fine.
I have installed the package of libicu48 and gnome-session-fallback for the bug.
$ sudo apt-get install libicu48 gnome-session-fallback