Git Product home page Git Product logo

Comments (25)

ivankravets avatar ivankravets commented on May 10, 2024

Hey @pelikhan . I'm pleased to hear from you 😄

  1. Is powershell installed by default on the Windows platforms?
  2. Can you recommend me someone who can help me to create "Chocolatey"-based package for PlatformIO? Because I have a few interesting ideas for PlatformIO and I want to implement them in this year 😸
  3. Do you use PlatformIO in your project? Or only for a self purpose?

I've not expected that PlatformIO will be interested for the Windows users. Today, the 40% of PlatformIO are Windows users 😄
I don't know why they love command-line way of PlatformIO. So, I decided to spend more time for the Windows platforms. The main problem is Python :( It isn't installed by default in Windows OS. Will be a great, if PlatformIO has own native Windows installer, like Python Installer.msi.

What do you think?

from platformio-core.

pelikhan avatar pelikhan commented on May 10, 2024

Here is the complete complete powershell command to install platformio in a single line:

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "((new-object net.webclient).DownloadFile('https://raw.githubusercontent.com/ivankravets/platformio/master/scripts/get-platformio.py','get-platformio.py'));(New-Object -com Shell.Application).ShellExecute('python', 'get-platformio.py')"

from platformio-core.

pelikhan avatar pelikhan commented on May 10, 2024
  1. Powershell is available in XP and older so consider it supported.
  2. Afraid i can't help you. The nuspec format is fairly easy to go through though.
  3. Yes! We use platformio with TouchDevelop to build Arduino scripts. See https://www.touchdevelop.com/app/beta#list:topics:topic:gettingstartedwitharduino:overview

In terms of packaging, i would stay away from installers - choco is the way to go for this kind of tools.

from platformio-core.

pelikhan avatar pelikhan commented on May 10, 2024

Yesterday, the getplatformio.python script failed on a machine on the fix path step. It simply got stuck. Why do you need this step?

from platformio-core.

ivankravets avatar ivankravets commented on May 10, 2024
  1. It doesn't available by default. User should install it with .NET Framework. http://en.wikipedia.org/wiki/Windows_PowerShell
  2. It's OK 😄
  3. Thanks a lot!!! It is the best gift for me 👍
    I've just made a few corrections to docs. How I can merge my changes with the original?
  4. I want to create a separated page on the PlatformIO site like "Who uses PlatformIO?". Can I put the information about TouchDevelop project on this page?

from platformio-core.

ivankravets avatar ivankravets commented on May 10, 2024

Yesterday, the getplatformio.python script failed on a machine on the fix path step. It simply got stuck.

How I can reproduce it? I want to fix it.

Why do you need this step?

A Python-Installer will install Python to C:\Python27\ by default. The python.exe isn't visible from cmd.exe without C:\Python27\ in the $PATH environment. Then, the platformio.exe will be installed to C:\Python27\Scripts folder by pip packages manager.

The get-platformio.py auto-installer script will add all of these dirs to $PATH env automatically. See Full Installation Guide.

from platformio-core.

pelikhan avatar pelikhan commented on May 10, 2024
  1. I believe it is built-in starting with Windows Vista.
  2. In the publish dialog, check the send pull request checkbox. If you don't see this option, go to the hub and select the expert skill.

from platformio-core.

pelikhan avatar pelikhan commented on May 10, 2024

There is no easy repro but for sure it will fail in weird cases. IT administration can create an infinite amount of different configurations.

The biggest problem of platform is that it is hard to install in a restricted environment like schools: no command prompt, strict enforcement of security rules, daemons monitoring variables, etc...

Arduino IDE provides a xcopy deployment which makes it much easier.

This is a hard problem and might be beyond the scope of platformup BUT a installation process that does not require any system wide changes would help.

from platformio-core.

ivankravets avatar ivankravets commented on May 10, 2024

The biggest problem of platform is that it is hard to install

Yes, you are right. I received a lot of feedbacks about installation process. Windows users don't like it :( For Unix systems is easy to perform single command and PlatformIO will be installed automatically. I will work on it. I have a good news - I will have more "working hours" for PlatformIO in the new year 👍

I'm happy that PlatformIO is interesting for people and huge companies/manufactories. I see a big future of PlatformIO and SmartAnthill.

Thanks a lot for your ideas, issues and the nice discussions 😊

Marry Christmas 🎄

from platformio-core.

pelikhan avatar pelikhan commented on May 10, 2024

When I triedo ino, easy_install worked quite well. I am really not a fan of the "download a python script and run it to install my tool". It means you are probably messino around with my machine.

from platformio-core.

ivankravets avatar ivankravets commented on May 10, 2024

When I triedo ino, easy_install worked quite well. I am really not a fan of the "download a python script and run it to install my tool". It means you are probably messino around with my machine.

You can also use pip for PlatformIO:

$ pip install platformio && pip install --egg scons

By default, pip isn't available in standard Python 2.7 distribution.

The get-platformio.py script doesn't depend on any Python libs. It will install pip if it isn't available, and then platformio + SCons. This script is useful for Windows OS.

from platformio-core.

pelikhan avatar pelikhan commented on May 10, 2024

Unfortunately, the script fails on some Windows machine and I don't why precisely. It fails when trying to update the path.

from platformio-core.

pelikhan avatar pelikhan commented on May 10, 2024

Out of curiosity, why does scon need the --egg option?

from platformio-core.

ivankravets avatar ivankravets commented on May 10, 2024

Out of curiosity, why does scon need the --egg option?

SCons doesn't support pip yet :( See discussion:
https://bitbucket.org/scons/scons/pull-request/113/fix-for-bug-2769-which-should-allow-scons

from platformio-core.

ivankravets avatar ivankravets commented on May 10, 2024

Unfortunately, the script fails on some Windows machine and I don't why precisely. It fails when trying to update the path.

Can you give me a traceback?

from platformio-core.

pelikhan avatar pelikhan commented on May 10, 2024

No access to that machine anymore unfortunately.

from platformio-core.

Bonehead5338 avatar Bonehead5338 commented on May 10, 2024

I had the hang on updating paths on my work laptop earlier which may have some restrictions though I have full administrator privileges and was able to update $PATH manually.

Ivan,

I can get anything you need from that machine of you let me know what and how

from platformio-core.

ivankravets avatar ivankravets commented on May 10, 2024

@dave93cab Have you tried to run cmd with Administrative privileges?

from platformio-core.

Bonehead5338 avatar Bonehead5338 commented on May 10, 2024

Hi Ivan,

When I installed platformio and the script ran I just updated the PATH manually and installed with pip. It was only that I saw this issue I commented and I just tried the script on this laptop again, running cmd with administrator privileges and it hangs on the path step..

image

Let me know if theres anything I can give you to diagnose if you want or have time to :)

from platformio-core.

ivankravets avatar ivankravets commented on May 10, 2024

Does pip work for you? If yes, just install PlatformIO via:

pip install platformio
pip install --egg http://sourceforge.net/projects/scons/files/latest/download

from platformio-core.

Bonehead5338 avatar Bonehead5338 commented on May 10, 2024

I got it installed fine, I just wanted to let you know that the issue @pelikhan reported with the script is not isolated to him only :)

from platformio-core.

ivankravets avatar ivankravets commented on May 10, 2024

@dave93cab I got you! Sorry.

@valeros Please contact with @dave93cab and try to reproduce this error #36 (comment)

from platformio-core.

ivankravets avatar ivankravets commented on May 10, 2024

@platformio 2.3.0 has been released with simplified installation procedure. Just single command:

# please upgrade pip & setuptools before
pip install -U pip setuptools

# now install/upgrade PlatformIO to the latest version
pip install -U platformio

No additional steps, no special installation scripts! Just one command! 👍

If you still have problems with PlatformIO installation, please reopen this issue.

from platformio-core.

kaline avatar kaline commented on May 10, 2024

Hi @pelikhan
That command doesn't works to me:

@PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "((new-object net.webclient).DownloadFile('https://raw.githubusercontent.com/ivankravets/platformio/master/scripts/get-platformio.py','get-platformio.py'));(New-Object -com Shell.Application).ShellExecute('python', 'get-platformio.py')"
Can you help me? Because I tried install platformio core using the script in windows 10 x64, althought failed. The picture below:

erro

from platformio-core.

ivankravets avatar ivankravets commented on May 10, 2024

@kalineBr something is wrong with SSL certificates.

Please provide an output from system Terminal cmd

echo %PATH%
echo %PYTHONPATH%
python --version
pip --version
pip list

from platformio-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.