I have already installed JCC 2.23 and pylucene 6.4.1. However, when I open the sample of pylucene, there are always some errors just as this picture. My Java version is 1.8 and I am using Mac OS X.
Related
I installed a second older Version of python (3.6) because I couldn't do something in my newer version. I created a new pycharm project with a new virtual environment and 3.6 as base interpreter. But when I try to install a package in pycharm (for example numpy) I get the error: no such option: --build-dir
Some things of note, that might be important to answer my question: I haven't added 3.6 to the path, when I installed it because the newer version is the one I mainly use. Also according to the following code my pip version is 21.3.1 :
import pkg_resources
print(pkg_resources.get_distribution("pip").version)
I have 2 different versions of python. 1 is always used with my anaconda and it is 3.9.7.
For the vs code, I tend to change the versions according to need.
Currently I have a project which requires me to use tensorflow 1.5-1.7 for which I require python 3.5 or 3.6 max. I have tried installing python 3.6 and then I create a virtual environment with it.
I try installing tenosrflow 1.5 using the below given command
pip install tensorflow==1.5
I get the error
ERROR: Could not find a version that satisfies the requirement tensorflow==1.5 (from versions: 2.5.0rc0, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.8.0rc0, 2.8.0rc1, 2.8.0)
ERROR: No matching distribution found for tensorflow==1.5
Is there any way available to maintain 2 different python version as I need to keep both.
I'm trying to upgrade my project to Qt 5.9.2 since I believe Qt 5.9 has better C++17 compatibility than 5.5 (default in Ubuntu 16.04)
I installed 5.9.2 using the online installer in my home directory and set CMAKE_PREFIX_PATH to /home/karnik/Tools/Qt/5.9.2/gcc_64/libs/cmake but find_package(Qt5 5.9.2 COMPONENTS Widgets REQUIRED) reported the error,
CMake Error at CMakeLists.txt:75 (FIND_PACKAGE):
Could not find a configuration file for package "Qt5" that is compatible
with requested version "5.9".
The following configuration files were considered but not accepted:
/usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.5.1
I also tried setting it to just /home/karnik/Tools/Qt/5.9.2
I then set Qt5_DIR inside my CMakeLists.txt to /home/karnik/Tools/Qt/5.9.2/gcc_64/lib/cmake/Qt5/ and the error got solved but MESSAGE("Qt Version is " ${Qt5Widgets_VERSION}) showed that it was still using 5.5.1.
I then set Qt5Widgets_DIR to /home/karnik/Tools/Qt/5.9.2/gcc_64/lib/cmake/Qt5Widgets/ and the version showed 5.9.2.
But weirdly, MESSAGE(${Qt5Widgets_INCLUDE_DIRS}) showed that it was still pointing to the old files inside /usr/include
/usr/include/x86_64-linux-gnu/qt5//usr/include/x86_64-linux-gnu/qt5/QtWidgets/usr/include/x86_64-linux-gnu/qt5/QtGui/usr/include/x86_64-linux-gnu/qt5/QtCore/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++-64/usr/include
How can I get it to point to the right libraries?
TIA!
I have installed the following
C:\MinGW
C:\msys
C:\GTK
But python searching for the files in site packages and throwing the error as:
OSError: cannot load library libcairo.so.2: error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library
This issue happening in installation of weasyprint packages.
Installing GTK+ didn't work for me.
I solved this problem using UniConverter2.0.
My environments is
Python 3.7
Windows 10 x64
Install uniconvertor-2.0rc4-win64_headless.msi,
Find the "dll" sub-directory under the UniConverter installation path.(In my case, C:\Program Files\UniConvertor-2.0rc4\dlls)
Add this "dll" path to the system path.
Close VSCode and reopen the project.
Try to run your code again.
Enjoy!
In my experience with this issue Windows 10 (64-bit) with Python 3.5.1, it can be either due to duplicate libraries in other directories seen by PATH that don't work or the libraries that you installed just aren't compatible with your OS/Python bit version.
I suggest installing an older version of GTK+ (I used 3.10.4) using the links provided in the WeasyPrint documentation instead and see if the error persists. I had the issue on a newer build of GTK+. The version of GTK+ installed with MSYS2 gave the same error.
Edit: I found the post where I found the previous version of GTK that I was using but it gave an annoying warning about the cairo version being unstable:
See this post.
Edit 2: To get rid of the cairo version stability warnings, I managed to get a newer version of Cairo using the GTK3-runtime-3.22.8 (Link to git downloads as per WeasyPrint docs)
Remember to uninstall all current GTK+ implementations first. You might get a warning saying that the version of cairo can cause issues but I haven't been able to locate a newer version of cairo that works in windows, let me know if you find one.
I am getting the below error while trying to install the presto amdin 1.5.1
ERROR Paramiko could not be imported. This usually means that pycrypto (a
dependency of paramiko) has been compiled against a different libc version. > Ensure the presto-admin installer is built on the same OS as the target
installation OS.
The offline installer (which you are using) is compiled for libc version 2.12 (e.g. it works for Centos 6 and some other OSes, but not for Ubuntu 12.04+). Use the online installer for other OSes: https://github.com/prestodb/presto-admin/releases/download/1.5.1/prestoadmin-1.5.1-online.tar.bz2.