Using this as a reference i was trying to import some jars to SoapUI.
I follow all the required steps to do it:
/SoapUI-5.2.1/bin
/SoapUI-5.2.1/bin/ext
SoapUI console
But im getting an error when i try to import a class:
import org.codehaus.groovy.scriptom.ActiveXObject;
ERROR:An error occurred [startup failed:
Script1.groovy: 10: unable to resolve class org.codehaus.groovy.scriptom.ActiveXObject
# line 10, column 1.
I appreciate any help or suggestion. Thanks.
Please use the following instructions.
Close soapui, if it is already running, before proceeding. Also revert the changes you made previously, i.e., remove library you placed in different locations of SOAPUI_HOME just to make it clean and isolate.
Download scriptom-1.6.0 library from here
Extract scriptom-1.6.0.jar from above download zip to SOAPUI_HOME/bin/ext directory.
Download jacob library from here
Extract jacob-1.18-x64.dll (if 64 bit machine) or jacob-1.18-x86.dll (if x86 machine) from jacob-1.18.zip file to SOAPUI_HOME/bin directory.
Extract jacob.jar from jacob-1.18.zip file to SOAPUI_HOME/bin/ext directory.
Start your soapui.
Try running your script.
Related
System: Python 3.7 64x running on Windows 10. I also have Anaconda installed on my machine and I program through VS Code. All modules have been installed, verified installed, and are up-to-date.
I have written a script and compiled it into an .exe using pyinstaller. pyinstaller -wFi pyico.ico endpointapp3.py.The .exe works and runs on my machine but it's not meant for my computer. Previous iterations of this script have been compiled, tested, and worked appropriately on its destination computer, a Windows 7 machine with no python installed.
My latest version now includes pyserial, and works, again, on my machine, but I after compiling and creating an .exe file for the destination machine I encounter this error.
File "endpointapp2.py", line 9 in <module>
ModuleNotFoundError: No module named 'serial'
[3512] Failed to execute script endpointapp2.py
Line 9 is my import serial line
As I mentioned before, this executable runs on my machine, but not on the destination machine it was designed for. I don't want to install python, or python modules on the destination machine because I want the .exe to be all inclusive.
Questions:
Why am I getting this error? What does it mean?
Is there a work around that allows me to compile everything together (using pyinstaller) that will hold all the necessary module
information within the .exe?
Is there something else I should be adding to my original script that will allow me to work through this?
NOT A DUPLICATE - This post is for compiling and running python .exe's on another machine, independent of python, with no modules or python installed.
With some assistance and helpful advice (thanks martineau) I was able to solve my problem. When compiling with pyinstaller, it makes a .spec file that it actually uses to compile to .exe.
Here I found the necessary steps to make sure I was adding the files I needed for pyinstaller.
Here I found out how to properly add the module information into my compiling code.
Once pyinstaller had the correct info in the .spec file I was able to compile and execute on the destination machine as intended.
I solve this issue when i move my code into serial module location.
First find where serial module locate :
>>> import serial
>>> serial.__file__
'C:\\Program Files\\Python310\\lib\\site-packages\\serial\\__init__.py'
mine is above.
Then move your file into :
'C:\\Program Files\\Python310\\lib\\site-packages\\{your_file.py}'
Then run pyinstaller :
pyinstaller --onefile your_file.py --additional-hooks-dir serial\\__init__.py
Run your .exe from dist folder. No longer showing error.
The module is called pyserial, but the library call in the code is import serial. Pyinstaller is unable to complete the build because there truly is no module named serial.
To correct this you need to tell pyinstaller to import the correct package by including it in the .spec file under hiddenimports.
hiddenimports=['pyserial']
This will be true for any case where the package name and the import statement call are not the same.
based on a previous posting on this website, I went to the python.org site and was able to locate and download the tag containing the periodictable-1.5.0 package, which I then saved in my ....\python\python36-32 directory and extracted on my Windows 7 computer.
Having done that, I attempted to install this package from the command line as instructed in the python documentation
...\python356-32> python .\periodictable-1.5.0\setup.py install
This appeared to execute an installation script but, when I attempted to import the module, it told me the module did not exist.
What did I do wrong?
I am new to python and pydev. I have tensorflow source and am able to run the example files using python3 /pathtoexamplefile.py. I want to try to step thru the word2vec_basic.py code inside pydev. The debuger keep throwing
File "/Users/me/workspace/tensorflow/tensorflow/python/init.py", line 45, in
from tensorflow.python import pywrap_tensorflow
ImportError: cannot import name 'pywrap_tensorflow'
I think it has something to do with the working directory. I am able to run python3 -c 'import tensorflow' from my home directory. But, once I enter /Users/me/workspace/tensorflow, the command throws the same error, referencing the same line 45.
Can someone help me thru this part? Thank you.
Try to do 2 things:
Update to PyDev 5.4.0 and enable the support for running with the '-m' flag (in Preferences > PyDev > Run).
Go to your launch in Run > Run Configurations > Select the launch and change the working directory to be the project location.
Then, try to run it again. If it still fails, post your full stack trace... also, the screenshot for the tree shouldn't have all the source for tensorflow expanded (i.e.: I'm interested in the icons related to the project and source folders to know about how you made your PYTHONPATH configuration inside PyDev, not the internal contents of the tensorflow module).
Ok, the problem is the entire tensorflow source tree is inside the eclipse project. Its confused whether to go to the other branches of the source tree or to the installed tensorflow modules. I created a separate pydev project with only the word2vec directory, and it now runs inside eclipse.
I am using the IDE Netbeans to code a project c++ under Linux(red hat 7). As I need to use some math functions, I try to embed the julia language into my c++ project.
Here is what I have done:
Download the Julia from here (I choose this: Generic Linux binaries)
Set project properties: build-->C++ Complier-->Include Directories, add the include of Julia, something like this: ../myjulia/include/julia
Add the libraries: open a terminal and type the command line: sudo ln -s ../myjulia/lib/julia/libjulia.so /usr/lib/libjulia.so
Now if I run my project, I will get this error: System image file "../myproject/dist/Debug/GNU-Linux-x86/../lib/julia/sys.ji" not found
I hve checked this file: ../myjulia/lib/julia, in this file, there are all of the lib files (libjulia.so etc) and a file named "sys.ji".
I ran into this issue after installing Julia v0.3.10 on a Windows machine and thought I'd post it in case it can help someone else.
When I ran julia.exe it gave me the error message listed above.
Problem:
I had created a system environment variable called JULIA_HOME and pointed it to the directory where Julia was installed. Then, I added %JULIA_HOME%\bin to my PATH.
Solution:
I pointed JULIA_HOME to the \bin directory under the Julia install directory. Then, I added %JULIA_HOME% to my PATH
A "hello world" example from here
Now we know that we need to setup the julia context with this code:
jl_init(NULL);
In fact this code may not setup a good context because the project can't find the system image file "sys.ji". So what we need to do is using another function instead of jl_init: jl_init_with_image. This function accept two parameters: the first is the path of the image file, the second is the name of the image file. So we should use it like this: jl_init_with_image("/thePathOfSys.ji", "sys.ji"); One more thing: the path of sys.ji must be the absolute path.
C:...\GitHub\gridgain>bin\ggstart.bat
Error: Could not find or load main class org.gridgain.grid.startup.cmdline.GridC
ommandLineTransformer
Error: Could not find or load main class org.gridgain.grid.startup.cmdline.GridC
ommandLineRandomNumberGenerator
Error: Could not find or load main class org.gridgain.grid.util.portscanner.Grid
JmxPortFinder
bin\ggstart.bat, WARN: Failed to resolve JMX host. JMX will be disabled.
Error: Could not find or load main class org.gridgain.grid.startup.cmdline.GridC
ommandLineStartup
These errors usually happen when GRIDGAIN_HOME is pointing to the wrong location. Given that v5.3.3 starts successfully, I suspect GRIDGAIN_HOME still points to it.
UPD: After reading your solution I think I understood what the original problem was. GitHub download link (download ZIP button) does NOT contain GridGain release, it contains only source code from which you can build GridGain jar. You should run maven build procedure to get gridgain.jar in work folder.
If you do not want to build jar from sources, you can download latest release package here.
I have just found the answer
Windows user should use the following link to download GG
http://www.gridgain.com/media/gridgain-platform-ent-6.0.2win.zip
NOT the one from the github!!!