Setting up OctoPrint on Windows

setup

#48

Continuing the discussion from Setting up OctoPrint on Windows:

hi!

i have already tried to install Octoprint on Windows with the newest release of python 3.7.1rc1, but it didnt work.
i wanted to ask, if it in general possible? (maybe i have made some mistakes)

p.s Octoprint with python 2.7 works perfect!

thank u!


#49

Hi Malinka!

So it should be.


#50

first and For most AWESOME WORK! Octoprint is AMAZING!

I have been running it on a old windows laptop for a few months now, i cant believe how blazing fast it is compared on a my pi version.

So i am trying to setup a 2nd octoprint session on the same windows box. so i can run two or more printers at the same time, (theoretically this should be possible) as we can do it on a pi.

I created a new folder c:/octoprint2 and installed a second version of it.

The only issue i am running into is how would i go about changing the port number from 5000 to 5001

the only file that i see is netaddr but i am not seeing anything in it what would indicate a port address to modify.

any ideas would be helpful.

Niels


#51


#52

Danielkrah,

Thank you, for the info, but the key issue is i am running this via Windows running on python v2.

so doing it this way their is no ssh access to the session.
and the python folder dose not contain a config file for the octo print session, i assume its hiding somewhere and is accessible somehow.

the only thing i can find is the config.py

this dose not contain the octoprint config settings.


#53

so

C:\OctoPrint\venv\Scripts\octoprint.exe serve --port=xxxx

doesn't work ?


#54

That works sorta
C:\Octoprint2\venv\Scripts> .\octoprint.exe serve --port=5002

i can now access the session via port 5002, however it is the same session as port 5000 it dose not different session at all.

hmm.

what i did was re-install everything in a folder called octoprint 2.

any ideas?


#55

It's probably worthwhile searching this forum (the magnifying glass in the upper-right corner) for "multiple". This topic has been discussed many times and you're missing the benefit of reading some of that commentary.


#56

I got this message and that is strange:

OctoPrint>pip install //get.octoprint.org/latest
Downloading //get.octoprint.org/latest (5.3MB)
100% |████████████████████████████████| 5.4MB 788kB/s
OctoPrint requires Python '>=2.7.3,<3' but the running Python is 3.7.1

MUST I install the older version??
-; >= does mean Greater or Equal


#57

You are fine with 2.7.15
And yes, you can have installed both versions parallel.


#58

Is there a way to add access control on a Windows setup like on this page? I can find a plugin or how to turn on access control like the pi version does.


#59

@ Foosel

i want to do a Big shout out to Chris Riley, who just posted a video walk threw on setting this up with multiple instances.

Could you please make him a Sticky!


#60

I had the same issue but it was just because http;// was missing before the IP address.


#61

Is the 0.16.0 Update available for Windows as well?
Just tried to update with your recommended update instructions:

  1. Stopped Octoprint
  2. C:\OctoPrint>venv\Scripts\activate.bat
  3. pip install --upgrade https://get.octoprint.org/latest")
    It doesn't seem like it has installed the latest version. After starting Octoprint server again it shows version 1.3.10

I get the message "Cache entry deserialization failed, entry ignored" after calling "pip install..."


#62

#63

In preparation of the upcoming py3 compatibility I'm working on setting up my dev environment and was wondering if these steps are going to be roughly the same? Is there a reason for using 32bit over 64bit version of python?


#64

Setting up a Development environment in the devel version of the docs has been adjusted for "dual wielding", you might want to check that. Windows specifics are still missing though.

When I wrote these steps there were a ton of issues with the availability of 64bit eggs (there were no wheels back then IIRC) and compilation under Windows with 64bit was also an absolute nightmare. The combination of those things made it an absolute pain to get up and running, whereas 32bit just worked(TM). Things might have changed now. I'm honestly not sure if my Py3 install is 32 or 64bit :thinking:


#65

I managed to get Yawcam to work with streaming. Now I want to add a username and password to it.
Once I added that in the Yawcam Settings, I can't seem to view the stream even after embedding the credentials in the URL like this:

http://<username>:<password>@<ip-address>:<port>/video.mjpg

It keeps popping up a login window in Chrome and when used in OctoPrint settings, it fails to render the image when I click the 'Test' button.

Is there any way to do this?


#66

hi,
installed on Windows 10, drivers for COM installed. When I try to connect in Octoprint, I get this error:

Connecting to: COM4Changing monitoring state from "Offline" to "Error: Connection error, see Terminal tab"Unexpected error while connecting to serial port: COM4 SerialException: 'could not open port 'COM4': WindowsError(5, 'Access is denied.')' @ comm.py:_openSerial:2478 (hook default)Connecting to: COM4Changing monitoring state from "Offline" to "Error: Connection error, see Terminal tab"Unexpected error while connecting to serial port: COM4 SerialException: 'could not open port 'COM4': WindowsError(5, 'Access is denied.')' @ comm.py:_openSerial:2478 (hook default)


#67

HI
Im trying to insall octoprint on windows 10. Im using python 2.7.15 and when I try to install the octoprint via this line:
pip install http://get.octoprint.org/latest
I`m getting an error: Error 42:
"1% |could not install package due to an EnvironmentError: [Error 42] Illigal byte sequence"

how can I solve this error and install octoprint on my PC??

thanks!