Coder Social home page Coder Social logo

Portable Sublime and Python about deviot HOT 17 CLOSED

gepd avatar gepd commented on May 29, 2024
Portable Sublime and Python

from deviot.

Comments (17)

gepd avatar gepd commented on May 29, 2024

HI @eusebiotebar

I've added a fix for this issue. Please overwrite the file Packages/Deviot/libs/Install.py for this one

And sets the env_path var in this way:
"env_path": "E:\\MyTools\\Python\\App;E:\\MyTools\\Python\\App\\Scripts"

Let me know if it worked for you

from deviot.

eusebiotebar avatar eusebiotebar commented on May 29, 2024

Same result

Output from console

================
C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
================

from deviot.

gepd avatar gepd commented on May 29, 2024

I'm sorry, I just realized now you are editing the wrong file, the Deviot Preferences.sublime-settings is located in: E:\MyTools\Sublime Text 3\Data\Packages\User\Deviot

The file should looks like this:

{
    "env_path": "E:\\MyTools\\Python\\App;E:\\MyTools\\Python\\App\\Scripts", 
    "id_lang": "en"
}

from deviot.

eusebiotebar avatar eusebiotebar commented on May 29, 2024

It works.... more or less 💯.. I mean that now it tries to install PlatformIO but after a while, the installation says

Error Creating the virtualenv

I don't think so it is a problem from Deviot but a PlatformIO issue. Probably it tries to install it over the hard disk (which I don't have the proper rights) instead the 'portable' disk.

from deviot.

gepd avatar gepd commented on May 29, 2024

It may be a permission issue, can you see if the console shows any aditional information? (and paste here)

Can't you run ST as administrator?

from deviot.

eusebiotebar avatar eusebiotebar commented on May 29, 2024

I can't run ST as admin in this computer. I will try this afternoon at home.

The only output from consoly is this:
[ Deviot 1.1.10 ] Instalación
11:36:39 PlatformIO no está instalado
Preparándose para instalarlo. Por favor sea paciente esto podría demorar un poco
11:36:39 Extrayendo archivos...
11:36:39 Instalando PlatformIO...
11:37:07 Error Creating the virtualenv

from deviot.

gepd avatar gepd commented on May 29, 2024

The ST console can show extra information ST Menu View > Show Console it's different from deviot console

from deviot.

eusebiotebar avatar eusebiotebar commented on May 29, 2024

My mistake, I was thinking that the output was from ST console.

This is the ST console Output.

================
""E:\MyTools\Sublime Text 3\Data\Packages\User\Deviot\penv\Scripts\pio"" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

Package Control: Skipping automatic upgrade, last run at 2016-07-07 11:36:49, next run at 2016-07-07 12:36:49 or after
New python executable in E:\MyTools\Sublime Text 3\Data\Packages\User\Deviot\penv\Scripts\python.exe
ERROR: The executable "E:\MyTools\Sublime Text 3\Data\Packages\User\Deviot\penv\Scripts\python.exe" could not be run: [Error 5] Acceso denegado

It seems that I should have admin rights, but I can execute from external the command
"E:\MyTools\Sublime Text 3\Data\Packages\User\Deviot\penv\Scripts\python.exe"

from deviot.

eusebiotebar avatar eusebiotebar commented on May 29, 2024

The same result and console output in a personal home computer.

from deviot.

gepd avatar gepd commented on May 29, 2024

It's possible we can schedule a teamviewer meeting so I can debug this problem? you can write me to [email protected]

from deviot.

eusebiotebar avatar eusebiotebar commented on May 29, 2024

The error message says:
New python executable in E:\MyTools\Sublime Text 3\Data\Packages\User\Deviot\penv\Scripts\python.exe
ERROR: The executable "E:\MyTools\Sublime Text 3\Data\Packages\User\Deviot\penv\Scripts\python.exe"

So in some part you do copy for python.exe in that folder, why?

from deviot.

gepd avatar gepd commented on May 29, 2024

To install platformio, the core of deviot, the plugin creates a virtual environment. The virtual environment install python inside of that folder. All that, is to install deviot and the dependencies automatically.

from deviot.

asrimane avatar asrimane commented on May 29, 2024

Hi,
I have the same error:

New python executable in C:\Users\***\AppData\Roaming\Sublime Text 3\Packages\User\Deviot\penv\Scripts\python.exe
ERROR: The executable "C:\Users\***\AppData\Roaming\Sublime Text 3\Packages\User\Deviot\penv\Scripts\python.exe" could not be run: [Error 5] Accès refus

what is the script that runs the executable Deviot\penv\Scripts\python.exe ?
I want to try to copy it somewhere else.
The problem does not come from the apparently antivirus

@+

from deviot.

gepd avatar gepd commented on May 29, 2024

The whole plugin uses that executable, I've tried to reproduce this issue but I can't, are you using Windows 10 too?

One command can be

C:\Users\***\AppData\Roaming\Sublime Text 3\Packages\User\Deviot\penv\Scripts\python --version
or
C:\Users\***\AppData\Roaming\Sublime Text 3\Packages\User\Deviot\penv\Scripts\pio --version

If you want we can check this by Teamviewer
you can contactme at [email protected]

from deviot.

asrimane avatar asrimane commented on May 29, 2024

No i have Windows 8.1 64bit

from deviot.

gepd avatar gepd commented on May 29, 2024

I'm sorry, as I can't replicate this issue isn't much I can do by now

from deviot.

gepd avatar gepd commented on May 29, 2024

Re open this issue if you have new information or if you are willing to arrange a meeting with me in teamviewer or something similar.

from deviot.

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.