Setting up RhodeCode on windows server 2008 r2 - python

I am trying to set up RhodeCode on WS2008R2, but keep on receiving the following error message at the "pip install rhodecode" stage:
"couldn't import standard bz2 (incomplete python install)"
this seems to happen at the stage when the installation process tries to install mercurial.
I am not quite sure where to go with this, as I have zero experience with python. I am following the guide provided from rhodecode: guide
Python version is 2.7.
Please help!

Ok it seems as if rhodecode have updated their step-by-step installation process and have included sections for 64-bit OS systems. Have tried on windows server 2012 and it works!
Link to guide

Related

Import Error with scikit-surprise

When I ran the example code using scikit-surprise which is a package in python, it showed that "cannot import name similarities".
My operating system is windows 10 and python version is 2.7. When I tried to ran the exactly the same code on the school computer, it succeeded. The operating system in school computer is also windows 10. So it's not the problem of operating system.
I am very confused about what happened. When I commented out the "from .. import similarities as sims", there is another import error "Import Error: No module named optimize_baselines".
When I checked what was .optimize_baselines and similarities, I found they were all .c files.
So it seems that it cannot correctly import .c files. But how to deal with that?
You see import error as those packages are not installed in your home computer. So if those are public packages then you can download it via pip or easy_install.
I solved this problem by installing python3. I installed python2 using anaconda and failed to run the system. I found that the same situation happened on my school computer that the system cannot run with python2 but succeed using python3. I am sorry that I just found I typed "scikit learn" . It should be "scikit surpirse" which is a recommendation system. I guessed the problem was because the C++ compiler. But I am not sure about that.

Using Flask and Jython under Windows 7

Hello everyone,
So I have been trying to use Jython to connect to an API Rest and retrieve some information. Now I want to use the Flask Framework with it. I have been trying to install the Flask with Jython but it does not seem to work at all. I am working on a Windows 7 machine and the problem for me is also that I can not download directly from the internet. For all other framework I used python wheels and installed these with Jython which worked fine.
I already tried to following commands and got these errors:
First error that I got was that it could not find the 'init.py' file in the flask folder so I changed the path in the file to the total path. But it just continued to give me more errors.
jython -m pip install '*.whl
Screenshot of the command line ouput of the error
pip install '*.whl (same as above)
I am a little stuck here and I hope that someone has an idea on how to solve this problem.
Big thanks already!!
This appears to be a bug with Jython 2.7.0. See this error report in pip and this one in Jython.
The second of those indicates that it is fixed in the 2.7.1 release candidate.

I installed scapy but it will not run by entering scapy in cmd prompt

I installed scapy without any problems but when I try to run in cmd prompt by entering scapy and hitting enter, I get two error messages. I have attempted to add the usual paths but no success. Error message follows:
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Users\adamh>scapy
INFO: Can't import python gnuplot wrapper . Won't be able to plot.
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
C:\Users\adamh>
Thank you all for any help offered, I sincerely appreciate it.
This is and edited update, I discovered that on windows you need scapy 2 because it supports windows, and it works with python 2.7. Also I needed to install the following list of prerequisite software first with different install techniques.
1: WinPcap, dnet, and pcap from .exe
2:pyreadline, and pywin through pip install
3:pyx through pip install using pyx==0.12.1 command
4:gnu through manual install using cmd prompt after changing root directory ect.. as usual
Then I used the from scapy.all import * command in the python27 IDE.
After this scapy was up and running from cmd prompt using scapy and hitting enter. Thank you all and I hope this post helps someone else. Note that scapy is best used with Linux systems. Back to my C++ books yall, peace.
You should try using the latest versions (RC candidates on PyPy or dev versions at https://github.com/secdev/scapy)
In my case, it fixed tons of console glitches

Error installing superset on an anaconda distribution

Having a nightmare here, been trying for hours with no luck. I'm using anaconda with a virtual environment on python 3.4 (I want to use geopandas, can't use 3.5) on windows 10. This is superset by the way: https://github.com/airbnb/superset
I also tried in my root conda environment but same issues.
First I do
activate py34
Then I tried two methods, A)
pip install superset
gives the error message
error: Microsoft visual c++ 10.0 is required. get it with "microsoft windows sdk 7.1" python
and B)
Download the source files and go to the directory and
setup.py install
Produces a different output but the same error message.
So I tried installing the SDK as suggested (standard UI installation like a normal windows program), but then I get an error with no code or information provided:
Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information"
There is no error code provided and I also don't know where that ConfigDetails.htm file is.
I tried installing a more recent SDK found here but still the same problems: https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk
Any ideas? I'm relatively new to python and find packages the most difficult thing ever, so if the answer is obvious then sorry.
Migrating OP's solution from a comment to an answer:
In the end the best solution was to install Cygwin and install Superset within Linux.
AndyMoore - Mar 2, 2017 at 20:50

Python install failed windows 8.1- Error 0x80240017: Failed to execute MSU package

I have windows 8.1 and tried installing: python-3.5.0rc3-amd64
I tried running as admin to no avail.
Here is the log of the failed install: http://pastebin.com/Y465P6zi.
Manually install the Universal C Runtime update from Microsoft:
https://support.microsoft.com/en-us/kb/2999226
and then re-attempt installation of Python 3.5.
I too had the same issue. Try installing Python 3.4.3. It worked for me.
You may try some older version. I had similar issues and I tried a lot to update but not succeed. Then I tried for python-3.4.3. It's works fine for me. There are not much different between 3.4.3 and 3.5.0.
Please update the window version from windows update(if you have blocked auto windows update).
This problem have nothing to do with product key.
Installing older version might help but, won't solve the purpose of installing the 3.5.X version
I had this problem because I was trying to install Python on a computer that had its Windows Updates downloaded, yet not yet installed and configured.
Solution: reboot your computer so that all Windows updates are installed and configured, then try again.
Download python-2.7.14 following link:
https://www.python.org/downloads/release/python-2714/
Install "python-2.7.14" and set PATH variable manual in windows.
Create a New folder in the root of windows drive -> windows ( for example C:\windows\ ) and name it "installer", it's done. install again. it worked for me.

Categories