SNAP installation in Python? - python

I have been trying to install SNAP (http://snap.stanford.edu/snappy/index.html) in Python 2.7.9. I followed the instructions at snap website for installation but unable to import snap package/module.
My system configuration is:
Windows 7 - 64 bit
I'm getting error that DLL load failed %1 is not a valid Win32 application.
Sorry I couldn't upload screenshot of command prompt due stackoverflow policies as i'm new to this forum.
Please help me to solve this issue. I'm new to Python.
Regards,

If there is DLL error only than you can download and install the missing dll file from google and drop it into the installed folder.

You are probably using python 32 bit version which does not work with snap as it quoted here :
Snapy Download page
(Windows 32-bit packages or Python 32-bit will not work). Python 2.7.x can be downloaded from the Python Download page. Make sure that you are using 64-bit Python 2.7.x packages.
To solve the issue, try installing a 64 bit version from here:
Link to download python 2.7 64bit

Related

How to install omniORB and omniORBpy on Windows 10?

Context
I need to install omniORB and omniORBpy on Windows 10 to use Python 3.7 as Server Skeleton and a Java Stub as client.
I have already installed omniORB and omniORBpy in Ubuntu LTS 18.04 and I have a small system made. It works perfectly, but it is only compatible with Python 2.7 and I need it to be Python 3.7.
This is what the system I did looks like (it's in Spanish, sorry for that)
What I have tried
First, I tried copying the omniORBpy files (omniORB, CORBA.py, etc) from my Python 2.7 Ubuntu venv to the venv of my Python 2.7 in Windows. Just to try.
PyCharm recognizes the venv libraries but when I run the script, it says that I can not find the file "_omnipy" (and I guess other files that it still does not tell me). I realized that this library used * .so files (obviously) and that I needed it maybe it was a type of * .dll to work with Windows.
This is my Python 2.7 venv (site-packages)
This is the error what I get on PyCharm
On the other hand, I still can not find how to install omniORB to use the omniNames service and have the IOR (on Windows) and use omniidl to "compile" my idl file.
I need something like
sudo omniNames -start 2809
on Windows cmd (not on a subsystem of Linux installed on Windows).
Firstly, I recommend you search Stack Overflow before posting; you'll often find that someone has answered your question previously.
Secondly, I recommend you read the included readme file from omniORB 4.2.0. There are installation instructions for Win32 and Win64 platforms.
Lastly, refer to this Stack Overflow thread, it may offer additional help.

Python 3.3. not found in registry [duplicate]

I am trying to install biopython to run with Python 3.3 on a Windows7 computer.
I have downloaded the biopython executable biopython-1.61.win32-py3.3-beta.exe. When I attempt to run the executable, however, I get the message "Python version 3.3 is required, which is not found in the registry." Python version 3.3 is present on my computer. I have been running programs through it for a month or two. It was installed from the file python-3.3.0.amd64.msi, and is located in the Program Files (x86) directory.I have tried reinstalling Python 3.3 but get the same error message.
Does anyone know how to get around this problem?
Python.org provides Windows installers in two flavours, 32 bit ("win32") and 64 bit ("amd64"). You need matching library installers for your Python version. You are trying to use a 32 bit Biopython installer with a 64 bit Python.
As instructed here http://biopython.org/wiki/Download there are experimental 64 bit Windows installers for Biopython, NumPy, etc here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
Or, you can install the 32-bit version of Python 3.3 for Windows, and then use biopython-1.61.win32-py3.3-beta.exe
You can try to solve this problem by fixing a blank option in the Windows registry.
https://stackoverflow.com/a/11507968/3962648 provide details of similar issue when installing numpy.
In short, you can just run the windows command line and type in: "reg copy HKEY_LOCAL_MACHINE\SOFTWARE\Python HKLM\SOFTWARE\Wow6432Node\Python /s"
probelm is windows 64bit and biopython 32bit...
to get the 64bit version of biopython get this one:
http://www.lfd.uci.edu/~gohlke/pythonlibs/

Installation of biopython - python 3.3 not found in registry

I am trying to install biopython to run with Python 3.3 on a Windows7 computer.
I have downloaded the biopython executable biopython-1.61.win32-py3.3-beta.exe. When I attempt to run the executable, however, I get the message "Python version 3.3 is required, which is not found in the registry." Python version 3.3 is present on my computer. I have been running programs through it for a month or two. It was installed from the file python-3.3.0.amd64.msi, and is located in the Program Files (x86) directory.I have tried reinstalling Python 3.3 but get the same error message.
Does anyone know how to get around this problem?
Python.org provides Windows installers in two flavours, 32 bit ("win32") and 64 bit ("amd64"). You need matching library installers for your Python version. You are trying to use a 32 bit Biopython installer with a 64 bit Python.
As instructed here http://biopython.org/wiki/Download there are experimental 64 bit Windows installers for Biopython, NumPy, etc here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
Or, you can install the 32-bit version of Python 3.3 for Windows, and then use biopython-1.61.win32-py3.3-beta.exe
You can try to solve this problem by fixing a blank option in the Windows registry.
https://stackoverflow.com/a/11507968/3962648 provide details of similar issue when installing numpy.
In short, you can just run the windows command line and type in: "reg copy HKEY_LOCAL_MACHINE\SOFTWARE\Python HKLM\SOFTWARE\Wow6432Node\Python /s"
probelm is windows 64bit and biopython 32bit...
to get the 64bit version of biopython get this one:
http://www.lfd.uci.edu/~gohlke/pythonlibs/

How to install PyAuto on Win7 64bit Python2.7?

The page here http://www.chromium.org/developers/testing/pyauto#TOC-Running-PyAuto-using-prebuilt-binaries suggests using the files here http://commondatastorage.googleapis.com/chromium-browser-continuous/index.html?path=Win/140227/ to install it yourself, but I'm not exactly sure what I have to do.
I ran mini_installer successfully, put pyauto and _pyauto in the site_packages, and the dll in system32 folder.
This is the error I get when I try to run the automated_ui_test.exe http://pastebin.com/Ab0vCCWk
I am also unable to figure out where this is supposed to be chrome/test/pyautolib/fetch_prebuilt_pyauto.py EDIT: found it here http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib/
EDIT2: Got it 'built' or something, now I have a set of files in the path I set. Now when I try to import pyautolib, I get the following error: ImportError: DLL load failed: %1 is not a valid Win32 application. I think this has something to do with me being on 64bit. Generally when this happens, I check out http://www.lfd.uci.edu/~gohlke/pythonlibs/ which has quite a few 64bit python packages, but it's not there this time.
What need to do to run PyAuto on a Windows 7, 64bit machine?
There is no support for pyAuto on 64-bit Chrome currently http://www.chromium.org/developers/design-documents/64-bit-support
A 64-bit version of Chromium can be built on Linux by using the -Dtarget_arch=x64 flag on the GYP build system. (This is the default on 64-bit Linux systems.)
The 64-bit version of the V8 JavaScript engine used by Chromium can be built separately using the --arch=x64 flag in v8's Scons build system. This works on both the Linux and Mac OS X platforms.
Neither Chromium nor V8 has a 64-bit version on the Windows platform right now. However, Chrome does run on 64-bit Windows as a 32-bit application. V8 should only need a small number of changes to build on the Windows platform.

Can't install setuptools on Windows 7 Ultimate 32 bit

I'm trying to install setuptools on Windows 7 Premium 32 bit. I've downloaded the installer setuptools-0.6c11.win32-py2.7.exe from http://pypi.python.org/pypi/setuptools#files and when I try to install it, I'm getting the following error: Python 2.7 is required, which was not found in the registry. Well, I know for a fact that Python 2.7.2 is installed right now. I've looked online and the only thing I see is troubles installing on Windows 7 64 bit. Has anyone else run in to this issue or know how to resolve?
Edit
Adding for visibility.
I searched the registry and I didn't find the install path anywhere. I added it back HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\ and it didn't fix the install error.
Edit 2
I found a solution. I downloaded and ran: http://peak.telecommunity.com/dist/ez_setup.py
I found a way to install it. I downloaded http://peak.telecommunity.com/dist/ez_setup.py and ran it. Installed without issue.
Check that you've one of your PATH environmental variable set to the location where python is installed.
Check this link for more info

Categories