Missing io.h for netCDF4 installation for Python3 on Windows8 - python-3.x

I am trying to install the netCDF4 package for Python 3 on my Windows 8 PC. I have already worked through some bugs like adding the visual studio directory to PATH. However, I don't make good headway with the current issue:
when I run
pip install netcdf4
the output indicates that the file io.h could not be found. In fact, a search across the C:/ directory shows that I don't have this file on my PC.
An internet search indicates that the file io.h is somewhat outdated and not used anymore. Is there a way that I can get it from somewhere?
Is there a place where I can

After some more trial and error, I found a solution and I hope that by posting it here it might save somebody else some time.
The only Visual Studio environment that I had installed was Visual Studio Community 2017. What solved my problem was that, additionally, I installed the default (= not changing any of the default modules) version of Visual Studio 2017 Desktop Express. Afterwards,
pip install netcdf4
worked flawlessly.

Related

Bw tool in sphinxtrain cannot open mdef file on Windows

I am developing an speech recognition application using Sphinx4. I am trying to do acoustic model adaptation. I have followed every step of the instruction on the http://cmusphinx.sourceforge.net/wiki/tutorialadapt tutorial. However, in the step where i need to run the bw, it cannot open the mdef file and shows an Debug Assertion Fail.
I have been working on this for days but still dont know how to solve it. I am using Windows 10, ptm model, visual studio 2015, the latest sphinx4 5prealpha version.
I just found out the answer. I think it could have been because that i forgot to download Perl or something went wrong during my installation of Sphinxbase.
I first installed Perl. However, it still didnt work, so i re-built Sphinxbase and copied it back to Sphinxtrain, and it finally run.
p/s Thanks Nikolay for your help :)
This comment / solution is just based on my experience as I am not an expert on this. I had this same exact error after following all the instructions from adapting-the-model and looks like the mdef file from sourge-forge is corrupted. So I landed up on a comment on some other website where it mentioned to download the setup files for pocketsphinx, sphinxbase and sphinxtrain from github directly. So I downloaded it from here GitHub and followed the same steps from before. Since I was working on windows, I rebuilt using VS Studio later, after upgrading the project from 2012 to latest version.
Steps (from GitHub)-
You should download and unpack it to the same parent directory as PocketSphinx, so that the configure script and project files can find it. On Windows, you will need to rename 'sphinxbase-X.Y' (where X.Y is the SphinxBase version number) to simply 'sphinxbase' for this to work.
To compile the SphinxTrain under MS Visual Studio 2010
load SphinxTrain.sln located in SphinxTrain directory
compile all the projects in SphinxTrain (from SphinxTrain.sln)
MS Visual Studio will build the executables under .\bin\Release or .\bin\Debug (depending on the version you choose on MS Visual Studio), and the libraries under .\lib\Release or .\lib\Build.
Once you finished with compilation, copy the pocketsphinx and sphinxbase tools and dlls from sphinxbase\bin\Releae and pocketsphinx\bin\Release to sphinxtrain\bin\Release folder. This will enable you to run the training process which expects to see all the tools and libraries in sphinxtrain\bin\Release.

Android Studio Update: Some conflicts found in installation area

When I start Android Studio, it shows popup regarding new update of 1.1 release. But when I start updating, After downloading all patch files, while restarting, it shows following error:
I searched almost everywhere on Google and Stackoverflow. There are already two questions on so: this and this. But none of them are have any correct answer. I also tried running as administrator, restarting PC, turning off the firewall, uninstalling antivirus. But none of them worked.
I am using windows 7 32-bit. How to solve this problem? Can anyone help?
I know this is an older question but I encountered the same error while updating SDK components in Android Studio 2.3.3. I was able to fix the problem by starting the SDK manager and un-checking the components that showed the error and clicked "Apply". That un-installed just that component. When it was finished, I re-checked the component and clicked "Apply" again. When it was finished, the problematic component was updated to the newest version. This was much quicker than doing a full un-install/re-install as stated in one of the solutions above.
Hope this helps someone.
This is another option, it is not much easier than reinstalling but at least you don't have to worry about your settings getting lost
Go to help->about and note the version you currently have installed
Download zip file for your current version at https://developer.android.com/studio/archive
Manually overwrite conflicted files with files from zip
Update normally
I had a similar problem on some other files and could not figure it out.
You should download the last Android Studio version and remove the old one.
It appears like the only way to bypass this error and successfully update Android Studio is to uninstall and reinstall it.
Before uninstalling, make a backup of your IDE settings through File | Export Settings.
Download the "No SDK tools included" exe from the Other Downloads section. Avoid using download accelerators as they often mess up the downloads from https://dl.google.com .
In the Install Wizard, you may uncheck to update AVD if you use Genymotion and don't need Google's Android emulator.
Use the JetBrains Toolbox for Android Studio update, problem solved. No need to mess with the file permissions. Especially on company devices.
I had this issue on Ubuntu 18.04 when tried to update Android Studio from 3.4 to 3.5 version. I have changed Android Studio directory's ownership to my user:
sudo chown -R <username> /opt/android-studio
It resolved all but one errors for me, because I still had a jre/bin/java - Access Denied error, which I have resolved by killing its process:
# The second column of this command's output is PID.
ps -aux | grep /opt/android-studio/jre/bin/java
kill <PID>
It might also happen that you need to logout and and re login as admin user in your system.
Update the Android studio [in admin user].
Re login as a previous user.
You should check the JDK Location settings, which appears be changed on every Android Studio update, with commands ctrl + Alt + Shift + S (to reveal the Project Structure menu options, and uncheck the Use embedded JDK and find your current JDK Location, on windows machines, you can see that location on environment variables JAVA_HOME.
There is a workaround, try deleting or moving the files that are causing the conflicts to another folder when the Update starts NOT BEFORE! That worked for me.
I know this is a very old question, but I face this issue almost every time I try to update my studio. Only solution I know which works for sure is clean install of studio....which is time consuming. So the solution is when you get to know the name of the file, search the location of that folder containing specified file. Check if that folder has lock icon on it, if it has then change the sharing settings to everyone and share the folder. If it does not have the lock icon on the folder check if it is in read-only mode. This worked for me hopefully someone finds this useful.
Cheers.
I had a similar problem. What I did was to make sure of the whole folder's ownership. For some reason, some files where owned by root, so I changed it to my ownership. In linux you can use the followoing command on the Android Studio folder:
sudo chown yourusername:yourusername -R android-studio-folder
I just tried again and everything updated successfully. Hope it helps!
The only solution worked for me is I have reinstalled Android Studio the latest version without uninstalling manually it and when starting the installer it asked me to uninstall and said that your settings will not be lost so I checked the uninstall and everything went smooth without any problems and got the latest version installed and all my settings the same.
I had this symptom when updating from Android Studio 3.4.2 to 3.5.
In my case, the affected file was plugins/Kotlin/kotlinc/bin/kotlinc.
The cause turned out to be that while the file's contents had not been modified at all... the Unix permissions bits on it had been.
Specifically, this was a file that comes as non-executable, and I had at some point chmod'd it to executable (because it should be) in order to use it from the command line.
The fix was to set those permissions bits back, with chmod:
$ chmod a-x /PATH/TO/android-studio/plugins/Kotlin/kotlinc/bin/*
This probably isn't a super common cause for this symptom, but hopefully it will be helpful to someone else. :-) I certainly didn't remember making that change, though once I spotted it I know exactly why I made it.
You can found the files in the android-sdk folder, and delete those files, and check your permission of the folder(android-sdk, build-tools, tools), if your can write, and download again.
I solve the issue.
I had the same error when upgrading from 3.1.x to 3.5.x. What worked for me was downloading the new Android Studio image from https://developer.android.com/studio and installing it (when asking me if I want to replace the old version I said yes). Everything seems to work fine now.
I also had the same error when upgrading from 3.5 to 3.6, I managed to solve this without losing any sdk platforms and virtual machines in avd by installing the latest version of android,First Export the settings and then delete the two folders ".AndroidStudio3.x" in home directory and the "android-studio" in /usr/local or /opt directory, then download the zip file of latest version of android studio and move the "android-studio" folder to /usr/local or /opt. Now run the /android-studio/bin/studio.sh and import the settings,Now Latest version will be installed.
I got this error when I was trying to upgrade Android Studio using a different user account to the account that installed Android Studio (the account had admin privileges). When I switched to the account which installed Android Studio I was able to upgrade without this problem happening.
I have had a similar issue and solved it. Some documents were encrypted by the software installed on my PC, so updating to Android Studio 3.6 was not possible (in fact every update I have the same issue).
To solve it, just find those files in the Android Studio installation folder (probably Program Files/Android) and decrypt it. After that, you should be good to go. I hope it helps!

Installing nvm for windows : Visual Studio npm debug fails because of illegal characters in path

the newest node.js 0.12.0 doesnt work together with the sqlite3 package. i found nvm for windows: nvm for windows https://github.com/coreybutler/nvm-windows/releases . i thought nice to use the old and new node.js versions on 1 computer.
after installing nvm for windows in c:\nvm , i get in visual studio 2013 in debug that there is a fault in npm : illigal characters in path resulting in exit debug program . Outside Visual Studio it works fine.
As I mentioned in my comment, I had a very similar problem. After installing node.js for purpose of using gulp I could not do a successful build. I would get the following error:
C:\Visual Studio
Projects\MyProject\packages\RazorGenerator.MsBuild.2.2.6\build\RazorGenerator.Ms‌​Build.targets(21,9):
error : Illegal characters in path.
After searching around I guessed that the problem had to do with the node.js utilizing "illegally" long path names. For some background go here: https://github.com/joyent/node/issues/6960
My solution was to install the Flatten Packages tool: https://visualstudiogallery.msdn.microsoft.com/cd0b1938-4513-4e57-b9b7-c674b4a20e79?SRC=VSIDE
I ran flatten packages on the "node_modules" folder, tried to build (failed but with a different error), restarted Visual Studio, and everything now seems to build ok. Hope this helps.
UPDATE
One thing to keep in mind is that, by design, Flatten Packages will move files up in the directory structure. As a consequence, however, Visual Studio will still look for some of the folder/files in the OLD location; VS will shows the [!] symbol to show that the file was there but no longer is. These old file references can gum up the build, so you need to simply delete these old file references/directories.
Since this post still is on top when searching for this topic..
I also had this problem with "Illegal characters in path" and found that the best solution for me and my team was to make Visual Studio use the latest npm version (>= 3.0) since the node_modules folder depth doesnt get as deep as with npm2 (used by Visual Studio).
This solution will work for you in the background, not needing to run extra commands and tools for flattening the folder.
See my post here for a complete how to: http://newsweb.se/how-to-use-visual-studio-2015-with-latest-nodejs-npm/

Visual Studio 2012 becomes corrupt when installing WiX 3.8.

Visual Studio 2012 becomes corrupt when I tried to install WiX 3.8. This is what happens...
Following a successful WiX install I try to run VS2012 and get the splash screen followed by this error "Exception has been thrown by the target of an invocation". Clicking on ok simply places me on the desktop. The only solution is to re-install VS2012. I tried un-installing everything and starting over several times but no luck. I cannot find any information on this exact topic anywhere online including WiX forums. Does anyone have ideas on what I should try next?
Rudy
I just had the same problem after installing WiX 3.8. Basically even more problems as Explorer and other system application could not be started anymore.
The root cause was a change in the PATH environment variable which ended up to be more than 2048 chars and therefore the %windir% var was not accessible anymore.
Try to remove some unnecessary paths in PATH environment variable as described here:
https://superuser.com/questions/355594/windows-7s-path-and-environment-variables-are-corrupted
At least for me, it worked afterwards again.
Cheers and good luck

Cocos2d-x MSVS template install script not found

I've downloaded the stable version of cocos2d-x 2.1.4 to use on Microsoft Visual Studio 2012 Professional.
However, as I run install-templates-msvc.bat, running the script causes the following errors:
Couldn't find script file "<cocos2d-x directory>\cocos2d-x-2.1.4\template\msvc\InstallWizardForVS2012.js"
Couldn't find script file "<cocos2d-x directory>\cocos2d-x-2.1.4\template\msvc\InstallWizardForVS2012Express.js"
Same errors for VS2010 and VS2010Express also appears.
As I search in the template folder in cocos2d-x directory, there is no folder named msvc.
So I have 2 questions:
I'm wondering why this is happening, because I did not modify a single file from the zipped version of the download (I've also tried downloading it again).
Building the solution cocos2d-win32.vc2012 terminates with 2 errors, one for Watermelon something and another for CocosdragonJS. My temporary attempt was to remove them from the solution, but I'm wondering if there are any fancier solution. Perhaps I missed something at installation?
Try Cocos2dx rc0 2.1.3 It worked for me or copy .txt file in .sln project then remove it. MSVS Ultimate edition automatically fixes the errors.
https://github.com/cocos2d/cocos2d-x/commit/0885d64a20d6862d4e99c381d97acf026654a8a3
[Win32] Deleting vs template, please use 'tools/project-creator' to create multi-platform project instead.

Resources