Robot Framework: "Library" not found - python-2.7

My very first script in Robot with PyCharm tells me the following error message:
[ ERROR ] Error in file 'C:\Desktop\MyProjects\first_test\1stTest.robot': Setting variable 'Library' failed: Invalid variable name 'Library'.
The beginning of my script has nothing special, you can see it here:
*** Settings ***
Documentation This is a simple robot example
Library Selenium2Library
*** Variables ***
${SERVER} http://google.com
${BROWSER} Chrome
${DELAY} 0
I installed selenium2library using pip without any problem or message error. Still in my code when I write in PyCharm, on the first line Documentation is displayed in orange, however Library is displayed in different orange, like grayed out...
Can you help me with that?

Is the above from one file and in that file EXACTLY how you have pasted above? Is there more to it below perhaps including the text Library?
To my mind this error could only occur if you have Library in the variables section? Is your settings section correct? Perhaps some invalid syntax so it's not being properly considered?

There should be only 1 space between Library and Selenium2Library. That should fix that

Related

Trouble building BGFX on Windows w/ MinGW

Trying to build bgfx. Following the documentation for building it, I run make mingw-gcc.
This, originally resulted in Set MINGW environment variable & make.exe": *** [mingw-gcc-debug32] Error 127 so I set the MINGW environment variable, and this got rid of the Set MINGW environment variable message. However, I still get the same error:
make.exe": *** [mingw-gcc-debug32] Error 127, and I also noticed:
C:/(directory to my project)/extern/bgfx/C:/MinGW/msys/1.0/bin/make.exe: No such file or directory. Like the directory to make.exe was being appended onto the end of the directory to bgfx. I'm at a complete loss as to why or even how this is happening, and I've no idea how to fix it. I've tried changing the MINGW environment variable, using mingw32-make, specifying mingw-gcc-release64, etc... To be honest, I don't even know if this is related solely to bgfx or if it's a problem with make or whatever Idk... Shooting my shot here to see if anyone can help.
Thanks.

Buildroot compile error - Maybe you need to increase the filesystem size (BR2_TARGET_ROOTFS_EXT2_SIZE)

Appreciate help if anyone have insight how to fix following compile error for buildroot that I have been struggling for almost a week.
I used following commands to pull buildroot repo and have tried this multiple times. I am using arm64 default config and before make enabling following flags
BR2_TARGET_ROOTFS_CPIO=y
BR2_TARGET_GENERIC_GETTY=y
BR2_TARGET_GENERIC_GETTY_PORT=”ttyAMA0″
After compile starts
git clone git://git.buildroot.net/buildroot
make qemu_aarch64_virt_defconfig
make
I see following error
mke2fs 1.46.3 (27-Jul-2021)
mkfs.ext4: No such file or directory while trying to determine filesystem size
*** Maybe you need to increase the filesystem size (BR2_TARGET_ROOTFS_EXT2_SIZE)
fs/ext2/ext2.mk:46: recipe for target '/home/jn4/linux-buildroot/buildroot/output/images/rootfs.ext2' failed
make[1]: *** [/home/jn4/linux-buildroot/buildroot/output/images/rootfs.ext2] Error 1
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2
To change file system size I have tried modifying following parameter in .config file
BR2_TARGET_ROOTFS_EXT2_SIZE="250M"
I have tried many sizes - 60M, 120M, 250M, 256M, 512M, 1024M, however all have failed to compile with same error. This seems like a common problem with buildroot and there are few other posts in git or other places which recommends size of 250M to solve the problem. I continue to see compile error with many sizes I have tried.
Appreciate any insight since I am stuck at this point. Thank you.

Getting started with VS code as C++ IDE

I want to use VS code as my C++ IDE. I installed it from the AUR(I'm using linux). But I got a bug. I tried to solve it following this topic. My json task is like the one in the topic i just linked to. But I got an error that read :
make: *** No rule to make target 'makefile'. Stop.
The error looks like it is coming from your makefile. (Assume you already installed C/C++ support)
Check your makefile in the command line to make sure there is no mistake.
taskName is passed as the first argument of the command. So if your command is "make" and your taskName is "makefile", the command line will be make makefile, leading to the error you are getting.
To avoid this behavior, add "suppressTaskName": true, inside the task declaration.

Exe built using pyinstaller on a Django with pylucene app giving JVM error

I am getting an error:
"Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries"
The error arises when I try to execute my exe file.
I have created exe file through pyinstaller on a django application. Application uses pylucine library. I think it may be the issue of error.
How to fix the error?
Since I can't be certain given you've provided very few details here is a shot in the dark to help solve your problem:
First, try removing the jvm.dll file that gets packaged with the pyinstaller -D youmodule.py command (for now work with the directory command rather than -F option). The reason why is here.
With that jvm.dll file gone, you should start seeing the actual error code - and with that the java class or dependency that isn't being loaded.
If it's a java class that isn't being properly loaded then you know instantly it must not be correcly represented in the classpath environment variable and you should do everything in your power to make sure it is:
e.g.: os.environ['CLASSPATH'] += 'the/path/to/the/jar'
Otherwise, consider bulking up your question with more details, especially if you can get a more meaningful error output.
I had the same error trying to run a .exe built with PyInstaller through wine.
My problem went away by adding C:\Program Files\Java\ [your jdk version here] \jre\bin\server to the PATH environment variable in wine - I suppose it might be the same in Windows.
It also reappeared if I tried to build with C:\Program Files\Java\ [your jdk version here] \jre\bin\server in my PATH, so I had to build without it and then append it before running it (I have no explanation as to why this happens).

xcode build error

Command /Developer/usr/bin/g++-4.2 failed with exit code 1
build error
My project was working fine with no errors, and I went to run it again without changing anything and received this error (only this). Any ideas on how to fix it?
I had this error when certain .cpp files didn't exist, but it could be caused by any number of things. Clearly in your case it's something different, if you're sure you haven't changed anything in the project.
On the right of the build results list there should be a (well hidden) button with lines - that shows the raw build output, which should give you some idea about what went wrong. What does that say?