Meteor 0.3.9 on Windows XP exits with code: -1073741819 - windows-xp

I have installed recently Meteor 0.3.9 on Windows XP (msi installer from: http://win.meteor.com/) and when I try to run (under CMD):
meteor create --example leaderboard
cd leaderboard
meteor
I get:
[[[[[ C:\temp\leaderboard ]]]]]
Running on: http://localhost:3000/
Exited with code: -1073741819
Exited with code: -1073741819
Exited with code: -1073741819
Your application is crashing. Waiting for file change.
How can I fix that error?

At first I tried running the following command on directory C:\Program Files\meteor,
where I installed meteor. No luck. Then I tried running the same command on directory
C:\ the main root on my Windows Vista Ultimate. I keyed in meteor create myapp
then myapp directory is created.
To run your new app, change directory to myapp, (CD myapp) then type meteor, followed by Enter.
Go to your browser and type localhost:3000
and voila! You will be able to see "Hello World!"
Try not running it on directory temp.

Related

Flutter external URL open fails for AppImage Ubuntu 22.10 - cannot open path of the current working directory

I've built: flutter build linux --release Flutter app on Ubuntu 22.10.
When app is bundled as AppImage, the call to:
# https://pub.dev/packages/url_launcher
if (await canLaunchUrl(url)) {
launchUrl(url);
}
fails with: cannot open path of the current working directory: Permission denied (printed out in the console from which AppImage runs).
Surprisingly when app is executed outside of AppImage, whether from Android Studio or from release build binary, everything works fine.
I believe this has something to do with the AppImage / sandbox, but not entirely sure where to start.
My AppImage config is rather simple.
AppRun
#!/bin/sh
cd "$(dirname "$0")"
exec ./app_entrypoint
Appname.desktop
[Desktop Entry]
Version=1.1
Type=Application
Terminal=false
Name=App name
Exec=app_entrypoint %u
Icon=icon
Categories=Utility;
UPDATE: I've tested the AppImage on Ubuntu 22.04 and everything seems to be working fine.

VSCode Pytest - Python Test Explorer is able to find test but doesn't run them with correct path

My VSCode is able to find all my tests and lets my run them from the explorer, but upon running them it is calling the wrong path. I'm using a Poetry virtual environment which is in a different path than the tests.
From the Python Test Adapter Log:
INFO pytest at 'myproject': Running pytest with arguments: --rootdir=/Users/me/Desktop/myproject , Users/me/Desktop/project/tests/db/queries/my_test.py::test_fn
INFO pytest at 'myproject': Running /Users/me/Library/Caches/pypoetry/virtualenvs/myproject-api-NEejG4ix-py3.9/bin/pytest as an executable
CRIT pytest at 'myproject': Execution of the test Users/me/Desktop/project/tests/db/queries/my_test.py::test_fn" failed: Error: Process exited with code 4: ERROR: file or directory not found:
VSCode Settings:
"python.testing.pytestPath": "/Users/me/Library/Caches/pypoetry/virtualenvs/myproject-api-NEejG4ix-py3.9/bin/pytest",
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": ["api/tests"],
Using this VSCode extension ID: littlefoxteam.vscode-python-test-adapter
Is there another setting for setting the path when running from the test explorer extension?

flutter doctor 'zsh: command not found'

I have installed flutter and set up the path with the zsh file for Catalina version of mac however when I run flutter doctor or flutter precache, I receive zsh: command not found: flutter. NOTE: I managed to get through these steps previously and set up android studio however I had issues when I tried to connect the simulator for Xcode and now I have had to start again.
UPDATE: When running 'flutter' or 'flutter doctor', I receive this error: Error when reading '../../../../documents/flutter/bin/cache/dart-sdk/bin/snapshots/pub.dart.snapshot': No such file or directory and it says that pub upgrade failed after 10 tries.
How would I solve this?
When I run ls -a in the home directory, I see that there's a .bash_profile, a .zshrc file and a .zprofile (which I created previously) in there. Is this related to the problem?
This looks like you don't have flutter on your PATH in ZSH.
Open your .zshrc file in your terminal with
nano .zshrc
You should see the following at the top of the file
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
Add on the second line the path to the bin directory of your flutter SDK location, like mine:
export PATH=$HOME/bin:/usr/local/bin:$PATH:/Users/joaosoares/Projects/flutter/bin

"ERROR : No emulator images (avds) found" running ionic on osx 10.10

This is the full error message I got after running ionic emulate android
*running cordova emulate android
Running command: /Users/DeadLift/Documents/ionic/myApp/hooks/after_prepare/010_add_platform_class.js /Users/DeadLift/Documents/ionic/myApp
add to body class: platform-android
Running command: /Users/DeadLift/Documents/ionic/myApp/platforms/android/cordova/run --emulator
ANDROID_HOME=/usr/local/Cellar/android-sdk/24.1.2
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
/Users/DeadLift/Documents/ionic/myApp/platforms/android/cordova /node_modules/q/q.js:126
throw e;
^
ERROR : No emulator images (avds) found.
1. Download desired System Image by running: /usr/local/Cellar/android-sdk/24.1.2/bin/android sdk
2. Create an AVD by running: /usr/local/Cellar/android-sdk/24.1.2/bin/android avd
HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver
Error: /Users/DeadLift/Documents/ionic/myApp/platforms/android/cordova/run: Command failed with exit code 1
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) *emphasized text*
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)*
I follow all the above by creating an avd and it give me the same message again.
Thanks.
Vikas's answer is pretty spot on, however (sometimes) just running android avd won't work, which is what I found out after hours of trying to get it working.
When ever I ran android avd in my terminal it would give me the following error:
zsh: command not found: android
This is because I needed to add the Android SDK paths for the platform-tools and tools to my zshrc file (you might be running bash or something else on your terminal).
Simple fix was to add these files to my zshrc PATH environment, You can do this too by using your favourite text editor and depending on what shell you're using.
This link: http://docs.phonegap.com/en/2.8.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android helped me out a hell of a lot getting this fixed.
So I used subl ~/.zshrc (because sublime is my text editor and i've setup symlinks)
I Found my exports PATH and changed it to represent the following:
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/dev/.rbenv/versions/2.2.3/bin/ruby:/Users/dev/Library/Android/sdk/platform-tools:/Users/dev/Library/Android/sdk/tools:$PATH"
I then saved the file, closed down sublime and ran source ~/.zshrc in my terminal window, and now I can run android avd and it now opens the Android Virtual Device Manager with no problems.
A reminder your shell might be different to mine (i.e. not running with zsh)and your exports PATH might look different as well, but it's pretty easy to figure out, and the link above will also help if you get stuck.
Actually it is not able to find AVD (Android virtual device). You have to create one.
Type "android avd" from Command Promt to use the graphical manager to setup an emulator image to work with for running your app on. The graphical tool is fairly straight forward to use.

selenium.common.exceptions.WebDriverException: Message: Can not connect to the 'chromedriver' error when using Python3 on Windows OS

I'm using a Windows 7 OS and trying to run a selenium webdriver test using python from my Eclipse+ PyDev IDE. I have downloaded the Google Chrome driver and added it to my path. I've also added the chromedriver.exe to C:\Python34\Scripts. I have tried the following:
from selenium import webdriver
driver = webdriver.Chrome()
I get the error message
selenium.common.exceptions.WebDriverException: Message: Can not connect to the 'chromedriver'
when I try to run my script. I've also tried the following:
driver = webdriver.Chrome(executable_path="C:\folder\chromedriver.exe")
I get a message saying file cannot be found. If I try the following from the terminal:
driver = webdriver.Chrome()
The browser is launched so it works from the terminal. The issue is running my script from Eclipse.
I work with this on Ubuntu but i came across the same kind of error, the problem was that i didn't have a sym-link to the chrome driver file,
In Ubuntu it is
sudo ln -s ~/selgrid/chromedriver /usr/local/bin/chromedriver
This might help
http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/
Good Luck!