Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Fails on Octprint 1.4.0 running on Windows 10 under virtualenv / Python #24

Closed
msteele999 opened this issue Jun 8, 2020 · 31 comments

Comments

@msteele999
Copy link

Hello,

I attempted to install your plugin version 0.1.0rc1.dev4 on OctoPrint 1.4.0 running on Windows 10 Home.

It looks like it failed trying to open a file called 'chrono'. I have attached my plugins log file. Is this something you think can be rectified? Am I missing another file that I need to install manually?

best regards,

Mark
plugin_pluginmanager_console.log

@FormerLurker
Copy link
Owner

Hmm. What C++ compiler do you have installed? VC++11 is supported in Visual studio 2010 with SP1 or in all versions of Visual Studio 2012 and above.

FYI, I may try to remove chrono since it has caused issues before, but I can't seem to find any other way to get milliseconds in all the targeted OSs.

@msteele999
Copy link
Author

msteele999 commented Jun 8, 2020 via email

@msteele999
Copy link
Author

msteele999 commented Jun 8, 2020 via email

@FormerLurker
Copy link
Owner

Hmm. It looks like that is vs2008. Let me think on this for a while and see if I can remove that dependency. In the meanwhile, you could try upgrading to python 3, and install a newer version of visual c++ if you don't want to wait.

Fyi, that compiler has given me so much grief, lol! I will be happy when python 2.7 is dead and gone :)

@FormerLurker
Copy link
Owner

I'm installing C++ 14.x now and will try compiling again

Rodger that. Good luck, and let me know how it goes. In any case I will try to make it work with the 2008 version. Thx for letting me know!

@msteele999
Copy link
Author

msteele999 commented Jun 8, 2020 via email

@FormerLurker
Copy link
Owner

Yeah, it may just work. The 2008 version is fully compatible, but that doesn't mean a newer one wont work.

Also, if you do try python 3, I recommend completely uninstalling python 2. It is possible to get them both working at the same time, but it is a hassle and can cause some difficult to debug problems.

@msteele999
Copy link
Author

msteele999 commented Jun 8, 2020 via email

@msteele999
Copy link
Author

msteele999 commented Jun 8, 2020 via email

@msteele999
Copy link
Author

msteele999 commented Jun 8, 2020 via email

@FormerLurker
Copy link
Owner

You could uninstall the other compiler first

@msteele999
Copy link
Author

msteele999 commented Jun 8, 2020 via email

@msteele999
Copy link
Author

msteele999 commented Jun 8, 2020 via email

@msteele999
Copy link
Author

Still no luck - any thoughts on removing that dependency to see if it will complete the installation? I'm happy to beta test this for you :-)

@FormerLurker
Copy link
Owner

Turns out getting milliseconds in C++ in a cross platform way is nearly impossible without 1000s of lines of code. I am actively working on this. Your windows installation is the first that has had problems with chrono. I believe I've found a fix for macos.

Once I get this done (it's been a crazy couple of weeks here) I'll send you a link to install. If that fails, you can just uninstall the VCC for python that you installed and try again. I'd much prefer to test this out before you do that because things are working properly on my machine (even using the old compiler), so the reason yours fails is a mystery.

@msteele999
Copy link
Author

msteele999 commented Jun 23, 2020 via email

@FormerLurker
Copy link
Owner

Mark, try installing from this URL: https://github.com/FormerLurker/ArcWelderPlugin/archive/devel.zip

I can't promise it will work, and the MS aren't clock accurate (good enough I believe). The MS will increment independently from the S unfortunately, but it may be good enough since this only affects console applications.

@msteele999
Copy link
Author

msteele999 commented Jun 23, 2020 via email

@FormerLurker
Copy link
Owner

Your compiler really hates modern C. If I fix these errors, there will be 100s more that show up next time. to_string and std:array are apparently also not supported. Just uninstall C++ for Python 2.7 and see what happens.

@FormerLurker
Copy link
Owner

Edit:

Your compiler really hates modern C

If you consider a 10 year old version modern, lol.

@msteele999
Copy link
Author

msteele999 commented Jun 23, 2020 via email

@msteele999
Copy link
Author

msteele999 commented Jun 23, 2020 via email

@FormerLurker
Copy link
Owner

Wait, aren't you running python 3? Something must be wrong with your environment variables. Search for 'Environment Variables' and look for this:

image

Make sure that is pointing to your python 3 installation. then reboot. Let me know how it goes!

@FormerLurker
Copy link
Owner

OH, also, look at the path and remove all references to Python27 and replace with the python 3 paths.

@msteele999
Copy link
Author

msteele999 commented Jun 23, 2020 via email

@FormerLurker
Copy link
Owner

This might help with installation: https://wiki.python.org/moin/WindowsCompilers

@msteele999
Copy link
Author

msteele999 commented Jun 23, 2020 via email

@msteele999
Copy link
Author

msteele999 commented Jun 23, 2020 via email

@FormerLurker
Copy link
Owner

The log you posted doesn't appear to show the install log for ArcWelder. Can you see if you can generate that for me?

@msteele999
Copy link
Author

msteele999 commented Jun 23, 2020 via email

@FormerLurker
Copy link
Owner

FYI, I just added some additional compiler support, so hopefully we don't run into this issue again :)

Going to close this now, but let me know if you have any other issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants