Enthought Canopy installer does not create ~/Enthought directory in Linux - linux

I'm using openSUSE 12.3 64bit. I successfully installed Canopy when it was released, and since then I have uninstalled it by deleting both ~/Enthgout and ~/Canopy.
Now I am trying to install Canopy again, installer works without any problem but it does not generate ~/Enthgout directory anymore. I tried to delete any cache folders but it did not work.

The installer does not generate the ~/Enthought directory. It is created during first startup. More info here: http://docs.enthought.com/canopy/configure/faq.html#where-are-all-of-the-python-packages-in-my-user-python-environment

Related

Can install PyQt5-sip for one Venv but not for another one! (Pycharm/Win10)

I have a severe compability issue with a Pycharm PyQt5 project that I cannot solve:
Problem Description:
I ran into a compability problem when I try to install PyQt5 site packages in my Pycharm editor.
The strange thing is that I could install PyQt5 and used it before in another Pycharm Project about 2 months earlier.
Both projects have two different virtual environments, both created by Pycharm when creating a new environment.
Screenshot of installed packages of the old, working venv:
Screenshot of installed packages of the new, broken venv:
What I tried to narrow down the error:
I checked if PyQt5 is still installed in my Python:
Requirement already satisfied: PyQt5-sip<13,>=12.8 in c:\users\mauser\appdata\local\programs\python\python38-32\lib\site-packages (from PyQt5) (12.8.1)
The Error Log shows that PyCharm fails to install PyQt5-sip into the new virtual environment
Next, I updated both, globally, and locally (in the new project venv), pip and setuptools
The error log then told me that it needs Microsoft Visual C++ 14.0 or higher, so I installed the newest version of VC building tools and also included the version that actually says version 14.00.
Then I installed / upgraded PEP517 since the end of the error log states:
ERROR: Failed building wheel for PyQt5-sip
ERROR: Could not build wheels for PyQt5-sip which use PEP 517 and cannot be installed directly
It seems that when pip is trying to build PyQt5-sip inside the virtual environment, that somehow the VC+ buildtools fail?
"basetsd.h": No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\cl.exe' failed with exit status 2
Finally, I made a new project and tried to install PyQt5 in this fresh virtual environment. It failed with the same error: PyQt5-sip cannot be built Anymore!
Conclusion:
Why did it work last time, when I installed, and used PyQt5 without any problems?
Why can I install just fine: PyQt5, sip, and Qt designer on my machine globally but suddenly not locally anymore?
Qt designer still works, pip tells me that PyQt5 is correctly installed globally!
There was a recent Windows 10 patch - was this the reason? Did I maybe not install the correct VC+ 14.00 distribution?
Can I simply copy the PyQt5 folder from the old venv without breaking anything to bypass this problem? (Did not dare to try this out yet)
The answer to this is:
A Win10 update corrupted some parts of the Visual C++ 14.00 package on my system.
So hopefully this may help some others.
I deleted every VC++ package I had previously installed and (once more) installed the essential VC++ buildtools 2019, build 16.9.5..
Optional Features chosen:
Core Tools and Test Package
MSVC 142
MSVC 140
C++ CMake Tools
Win10 SDK
It seems that you need to include the SDK package as well to make it work!
After having reinstalled cleanly these packages above, PyQt5 and namely PyQt5-sip are able to be built again!

Pyinstaller missing dll files

I want to create a 32bit executable app from my script to run on Windows 10 with X86 or X64 architectures. I've generated the X64 version of my script and it worked fine. My host machine is X64 but I installed Python X86 version to generate X86 app. Then I generated the executable with Pyinstaller but when I run the executable it throws the following error:
C:\Users\Name\Appdata\local\Temp_MEI51162\VCRUNTIME140.dll is
either not designed to run on Windows or it contains an error...
and in the console I see this error:
Error loading Python DLL
'C:\Users\Name\AppData\Local\Temp_MEI51162\python36.dll'.
LoadLibrary:
I've checked the _MEI51162, both VCRUNTIME140.dll and python36.dll is there but the python36.dll has a size of about 1 MB instead of 3 MB. It doesn't matter if I generate the app as a standalone executable or not and still give me the same error.
It seems that the problem happens when you install both 32bit and 64bit of PyInstaller. And PyInstaller would fail on selecting which version of dependencies are required for the current build. The problem in my situation was VCRUNTIME140.dll. I couldn't find a way to replace the vcruntime140.dll, but I found a workaround by adding the correct file manually to C:\Users\<User>\AppData\Roaming\pyinstaller directory and rebuild with Pyinstaller then It will be replaced with the new one just copied. This will fix the issue temporary and the directory should not be deleted.

Node.js installation error

I tried to install node.js on a Windows 8 machine, but I got the following error:
The cabinet file 'media1.cab' required for this installation
is corrupt and cannot be used. This could indicate a network error, an
error reading from the the CD-ROM, or a problem with this package.
I downloaded the installation file from the node.js website at http://nodejs.org/download/.
How I can solve this problem.
My system specifications are OS : Windows8 32bit, RAM : 4GB, CPU :
Intel Pentium P6200, 2.13Gz, Dual Core
I was experiencing the same error message trying to install on Windows 7.
I was able to fix this issue and successfully install by:
changing the directory for installation.
Instead of installing within my "Program Files (X86)" folder, I installed into my "Program Files" folder
My suggestion is to try installing to a different directory as this solved the problem for me.
For anyone stumbling here, my problem (on win 7) was I accidentally downloaded the 32-bit version by mistake. Getting the 64-bit version was the solution.
Actually above none of answers ara not worked for me. I'm using windows 8.1 x64 . So i'm trying install nodejs.msi. Actually i can not install it. So i have used Chocolatey package manager. This is the command that i used for install nodejs. choco install nodejs.install Thats all it worked :)

Node JS ./configure + make fails unable to remap python lib-dynload/itertools.dll to same address as parent

This might be more of a CYGWIN question than a Nodejs but here goes.
I installed Cygwin yesterday and on the packages selection I just clicked next as it looked like most were pre-selected, and then today read this guide http://boxysystems.com/index.php/step-by-step-instructions-to-install-nodejs-on-windows/ on installing nodejs.
The ./configure had an error that it was unable to remap python lib-dynload/itertools.dll to same address as parent. As the process still completed I tried the make command, but it fails on the same error.
So, I opened cygwin setup.exe and this time I clicked the source checkbox for all the Python packages. But still get the same error. Should I now go to Cygwin and check all the source packages for the Make packages, delete it and reinstall from scratch using the above guide. Or something else?
Any help gratefull received/
Use the official 0.5.x windows build from http://nodejs.org/#download - you just have to download a .exe file and you can start it.
Versions 0.5.X have problems with Cygwin and because of developing clean Windows version Cygwin environment is now unsupported. Stable version 0.4.12 builds on Cygwin with no problems. If you want to use node.js unstable 0.5.X branch on Windows use windows build at official node.js site.
check this out:
https://github.com/joyent/node/wiki/Building-node.js-on-Cygwin-(Windows)
Update Sept 1, 2011 -- as of today, v0.5.5 does not build on Cygwin (errors on make). Use v.0.5.4 (ie. follow instructions below and use "git checkout v0.5.4".
https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6
Cygwin build is no longer supported. Use native windows builds instead.

Problem in creating package through "Package for Linux" in Mono 2.8

I am using mono 2.8 with Visual Studio 2008. I have installed "mono-2.8-gtksharp-2.12.10-win32-9".
I am creating a windows application and its setup solution is working fine on Windows OS. But when I am creating package for Linux and follow the instruction from http://mono-tools.com/Package.aspx
Step-1 to Step-5 are done but after Step-5, I am clicking on Create Package and its do nothing even its not create any file into selected folder.
Please help..
When you choose the host for it to build the package on, make sure you are choosing a SUSE or RHEL server, or the process will silently fail.

Resources