Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding, when trying to start uwsgi
Question I am trying to start my uwsgi server in my virtual environment, but after I added plugin python3 option I get this error every time:
!!! Python Home is not a directory: /home/env3/educ !!!
Set PythonHome to /home/env3/educ
Python path configuration:
PYTHONHOME = '/home/env3/educ'
PYTHONPATH = (not set)
program name = '/home/env3/educ/bin/python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/home/env3/educ/bin/python'
sys.…
Read more ⟶How to use sudo over SFTP with CyberDuck?
Question I'm copying this question from over here: http://getsatisfaction.com/cyberduck/topics/can_i_use_sudo_over_sftp_with_cyberduck
I am having the same issue and finding it hard to find an answer:
I am using Cyberduck over SFTP. I can
connect and browse files fine, but
when I try to upload, I get a
permissions error. Web host says I
need to use the 'sudo' command. I know
how to do this via Terminal, but it is
possible to to tell Cyberduck to use
sudo?…
Read more ⟶CMake cannot find GoogleTest required library in Ubuntu
Question Similar issue here.
This is my CMakeLists.txt:
cmake_minimum_required(VERSION 2.6)
Locate GTest find_package(GTest REQUIRED) include_directories(${GTEST_INCLUDE_DIRS})
Add test cpp file add_executable(foo foo.cpp)
Link test executable against gtest & gtest_main target_link_libraries(foo ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} pthread) And my foo.cpp:
#include <gtest/gtest.h>
TEST(sample_test_case, sample_test) { EXPECT_EQ(1, 1); }
int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } Now, all works fine when using the g++ compiler. However, when attempting to use QNX's compiler, ntox86-c++, I run into this problem:…
Read more ⟶wget: unable to resolve host address `http'
Question I am getting this strange thing on my Ubuntu 12.04 64-bit machine when I do a wget
$ wget google.com
–2014-07-18 14:44:32– http://google.com/
Resolving http (http)… failed: Name or service not known.
wget: unable to resolve host address `http’ I have encountered this problem earlier when I got it for any web pages (and not http), which required me to add my nameserver to /etc/resolv.conf.
However, here that doesn't seem to be the problem, instead it is recognizing http as something different.…
Read more ⟶Ubuntu intallation is stuck at vmware tools installation [closed]
Question Closed. This question is off-topic. It is not currently accepting answers.
</div>
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I installed unbuntu 12.04 LTS in VMware workstation 7.0 and the VMware used the "Easy Mode".
When I finish the intallation, the VMware automatically installed the VMware Tools, and it was stuck at this scene.
The scene is like this:…
Read more ⟶error: no matching function for call to ‘min(long unsigned int&, unsigned int&)’
Question I'm using ubuntu 12.04 - 64 bits. I tested it with boost 1.46, 1.48, 1.52 and gcc 4.4 and 4.6
When I try to compile:
while (m_burstReqBeatsRemain) {
if (m_burstReqAddress % m_dramRowSize == 0) {
m_admRequestQueue.push_back(adm_request());
adm_request &req = m_admRequestQueue.back();
req.address = m_burstReqAddress;
req.command = tlm::TLM_READ_COMMAND;
//call to min function
req.readLen = std::min(m_burstReqBeatsRemain * sizeof(Td), m_dramRowSize);
}
m_burstReqBeatsRemain--;
m_burstReqAddress += sizeof(Td);
m_ocpTxnQueue.push_back(m_ocpReq);
}
I get this error:
no matching function for call to ‘min(long unsigned int&, unsigned int&)
from /usr/include/c++/4.…
Read more ⟶Cannot import name '_gi'
Question I'm trying to add a repository to ppa with the add-apt-repository commands but the _gi module from Python is not found.
I did this command : sudo add-apt-repository ppa:s-mankowski/ppa-kf5
Here is the traceback :
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 11, in <module>
from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 67, in <module>
from gi.repository import Gio
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in <module>
from . import _gi
ImportError: cannot import name '_gi' from 'gi' (/usr/lib/python3/dist-packages/gi/__init__.…
Read more ⟶