Code Monkey home page Code Monkey logo

pymakr's Introduction

# deprecated This project is no longer maintained. Pymakr has been replaced by plugins for Atom and VSCode:

https://github.com/pycom/pymakr-atom/ https://github.com/pycom/pymakr-vsc/

README for the eric6 IDE

1. Installation

Installing eric6 is a simple process. Just execute the install.py script (type python install.py -h for some help). Please note that the installation has to be performed using the administrators account (i.e. root on linux). This installs a wrapper script called eric6 in the standard executable directory.

If you want to uninstall the package just execute the uninstall.py script. This gets rid of all installed files. In this case please send an email to the below mentioned address and tell me your reason. This might give me a hint on how to improve eric6.

eric6 may be used with any combination of Python 3 or 2, Qt5 or Qt4 and PyQt5 or PyQt4. If the required packages (Qt5/4, QScintilla2, sip and PyQt5/4) are not installed, please get them and install them in the following order (order is important).

  1. Install Qt5 (from The Qt Company)
  2. Build and install QScintilla2 (from Riverbank Computing)
  3. Build and install sip (from Riverbank Computing)
  4. Build and install PyQt5 (from Riverbank Computing)
  5. Build and install QScintilla2 Python bindings (part of the QScintilla2 package)
  6. Install eric6

If you want to use the interfaces to other supported software packages, you may install them in any order and at any time.

Please note, that the QScintilla2 Python bindings have to be rebuild, if the PyQt5 package gets updated. If this step is omitted, a bunch of strange errors will occur.

1.1 Installation on Windows®

Installing eric6 on Windows® is even easier. Just download the PyQt5 installer from Riverbank Computing and use it to install PyQt5. This includes all the required Qt5 libraries and tools as well as QScintilla. Once this installation is completed install eric6. That's all.

2. Installation of translations

Translations of the eric6 IDE are available as separate downloads. There are two ways to install them.

The first possibility is to install them together with eric6. In order to do that, simply extract the downloaded archives into the same place as the eric6 archive and follow the installation instructions above.

The second possibility is to install them separately. Extract the downloaded archives and execute the install-i18n.py script (type python install-i18n.py -h for some help). This way you can make the translations available to everybody or just to the user executing the installation command (if using the -p switch).

3. Running

Just call up eric6, which will start the IDE. Use the "what is"-help (arrow with ?) to get some help. The eric web site provides some documents describing certain aspects of eric. To start the unit test module in a standalone variant simply call up eric6_unittest. This will show the same dialog (though with a little bit less functionality) as if started from within eric6. The web browser can be started as a standalone program by executing the pymakr_webbrowser script.

Please note, the first time you start eric6 it will recognize, that it hasn't been configured yet and will show the configuration dialog. Please take your time and go through all the configuration items. However, every configuration option has a meaningful default value.

4. Running from the sources

If you want to run eric6 from within the source tree you have to execute the compileUiFiles.py script once after a fresh checkout from the source repository or when new dialogs have been added. Thereafter just execute the pymakr.py script.

5. Tray starter

eric6 comes with a little utility called "eric6_tray". This embeds an icon in the system tray, which contains a context menu to start eric6 and all it's utilities. Double clicking this icon starts the eric6 IDE.

6. Autocompletion/Calltips

eric6 provides an interface to the QScintilla auto-completion and calltips functionality. QScintilla2 comes with API files for Python and itself. PyQt4 and PyQt5 contain API files as well. These are installed by default, if the correct installation order (see above) is followed. An API file for eric6 is installed in the same place.

In order to use autocompletion and calltips in eric6 please configure these functions in the "Preferences Dialog" on the "Editor -> APIs", "Editor -> Autocompletion" and "Editor -> Calltips" pages.

7. Remote Debugger

In order to enable the remote debugger start eric6, open the preferences dialog and configure the settings on the debugger pages.

The remote login must be possible without any further interaction (i.e. no password prompt). If the remote setup differs from the local one you must configure the Python interpreter and the Debug Client to be used in the Preferences dialog. eric6 includes two different versions of the debug client. DebugClient.py is the traditional debugger and DebugClientThreads.py is a multithreading variant of the debug client. Please copy all needed files to a place accessible through the Python path of the remote machine and set the entries of the a.m. configuration tab accordingly.

8. Passive Debugging

Passive debugging mode allows the startup of the debugger from outside of the IDE. The IDE waits for a connection attempt. For further details see the file README-passive-debugging.rst.

9. Plug-in System

eric6 contains a plug-in system, that is used to extend eric6's functionality. Some plug-ins are part of eric6. Additional plugins are available via the Internet. Please use the built-in plug-in repository dialog to get a list of available (official) plug-ins and to download them. For more details about the plug-in system please see the documentation area.

10. Interfaces to additional software packages

At the moment eric6 provides interfaces to the following software packages.

Qt-Designer
This is part of the Qt distribution and is used to generate user interfaces.
Qt-Linguist
This is part of the Qt distribution and is used to generate translations.
Qt-Assistant
This is part of the Qt distribution and may be used to display help files.
Mercurial
This is a distributed version control system available from <http://mercurial.selenic.com>. It is the one used by eric6 itself.
Subversion
This is a version control system available from <http://subversion.apache.org>. eric6 supports two different Subversion interfaces. One is using the svn command line tool, the other is using the PySvn Python interface <pysvn.tigris.org>. The selection is done automatically depending on the installed software. The PySvn interface is prefered. This automatism can be overridden an a per project basis using the "User Properties" dialog.
coverage.py
This is a tool to check Python code coverage. A slightly modified version is part of the eric6 distribution. The original version is available from <http://www.nedbatchelder.com/code/modules/coverage.html>
tabnanny
This is a tool to check Python code for white-space related problems. It is part of the standard Python installation.
profile
This is part of the standard Python distribution and is used to profile Python source code.

11. Internationalization

eric6 and its tools are prepared to show the UI in different languages, which can be configured via the preferences dialog. The Qt and QScintilla translations are searched in the translations directory given in the preferences dialog (Qt page). If the translations cannot be found, some part of the MMI might show English texts even if you have selected something else. If you are missing eric6 translations for your language and are willing to volunteer for this work please send me an email naming the country code and I will send you the respective Qt-Linguist file.

12. Window Layout

eric6 provides different window layouts. In these layouts, the shell window and the file browser may be embedded or be separat windows.

13. Source code documentation

eric6 has a built in source code documentation generator, which is usable via the commandline as well. For further details please see the file README-eric6-doc.rst.

14. License

eric6 (and the others) is released under the conditions of the GPL. See separate license file for more details. Third party software included in eric6 is released under their respective license and contained in the eric6 distribution for convenience.

15. Bugs and other reports

Please send bug reports, feature requests or contributions to eric bugs address. After the IDE is installed you can use the "Report Bug..." entry of the Help menu, which will send an email to <[email protected]. To request a new feature use the "Request Feature..." entry of the Help menu, which will send an email to <[email protected].

pymakr's People

Contributors

detlevo avatar ralphhogenbirk avatar tobiasrzepka avatar jaimoten avatar

Stargazers

Paweł Wodnicki avatar  avatar  avatar Jakub Vávra avatar  avatar 不知火 Shiranui avatar Marcin Bielak avatar Heri avatar tosh shimayama (satake) avatar Jonathan Fernandes avatar Elijah Wilt avatar huyunlei avatar  avatar Youness avatar  avatar José Ángel Jiménez avatar  avatar Person avatar  avatar Bright Li avatar DasK avatar Dan Ramanayake avatar Pavel Baramov avatar Jason Ray avatar Chufan Zhou avatar xsteadfastx avatar  avatar Austin Shapiro avatar Shaun Wakashige avatar James avatar William Unsworth avatar Dickson avatar Fernando Mumbach avatar Tang Zheng'en avatar S. Zhang avatar Onofre Souza avatar  avatar Caio Carvalho avatar Ricardo Lobo avatar Blake Cannon avatar  avatar  avatar  avatar  avatar Kipling avatar  avatar GP avatar  avatar  avatar Robin Cole avatar Alex avatar Alex Bucknall avatar

Watchers

Erdal Yildiz avatar James Cloos avatar  avatar Christian Ehlers avatar Jakob Rosenberg avatar  avatar GP avatar  avatar  avatar

pymakr's Issues

Pymakr serial port module not loading anymore after upgrade of Visual Studio 1.4

After automatic update of Visual Studio code to 1.4 version . I constantly get error's loading pymakr serial port module. I worked for months without issues. Uninstalling and reinstalling the extension did not help. Trying to access pymakr global settings ctrl shift G gives pymakr.globalsettings not found.. Version pymakr 1.1.4
image

Don't ship eric binary with pymakr

# dpkg -i pymakr_1.0.0.b8-1_all.deb 
Selecting previously unselected package pymakr.
(Reading database ... 899947 files and directories currently installed.)
Preparing to unpack pymakr_1.0.0.b8-1_all.deb ...
Unpacking pymakr (1.0.0.b8-1) ...
dpkg: error processing archive pymakr_1.0.0.b8-1_all.deb (--install):
 trying to overwrite '/usr/bin/eric6_re', which is also in package eric 6.1.8-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 pymakr_1.0.0.b8-1_all

I understand that pymakr is based on eric, but it should be usable next to the eric package and officially shiped binary.

Node check errorloop

I noticed a minor issue while installing on Windows, I didn't had node.js installed. This gives an errorloop, easy to solve by installing node but the loop it self made vscode unworkable.

OSError: [Errno 22] EINVAL

Hi Ralph,
I have this error today. I am can't to flash all my files.

I am using:
Pymakr: 1.3.2
Atom: 1.27.2

Connecting on /dev/tty.usbserial-DQ0056JT...

>>>
Uploading project (flash)...
Not safe booting, disabled in settings

Reading file status
Failed to read project status, uploading all files
Creating dir examples
Creating dir lib
[1/10] Writing file connection_tests.py
[2/10] Writing file lib/OTA.py
[3/10] Writing file lib/mqtt.py
[4/10] Writing file lib/mqtt_core.py
[5/10] Writing file lib/pybytes.py
[6/10] Writing file lib/pybytes_library.py
Upload failed.: OSError: [Errno 22] EINVAL
 Please reboot your device manually.
OKTraceback (most recent call last):
  File "<stdin>", line 2, in <module>
OSError: [Errno 22] EINVAL
>OKTraceback (most recent call last):
  File "<stdin>", line 2, in <module>
OSError: [Errno 22] EINVAL
>OKTraceback (most recent call last):
  File "<stdin>", line 2, in <module>
OSError: [Errno 22] EINVAL
>OK>OKets Jun  8 2016 00:22:57

rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff8028,len:8
load:0x3fff8030,len:1728
load:0x4009fa00,len:0
load:0x4009fa00,len:14584
entry 0x400a059c
Pycom MicroPython 1.18.0 [v1.8.6-849-046b350] on 2018-06-01; LoPy4 with ESP32
Type "help()" for more information.
>>>

QLabel module is missing

Hi,

after installation (under ArchLinux) the start of pymakr stops working because it can not find the module QLabel.
I figured out that there was a change on QLabel, it now belongs to the widget class of qt

in ../pymakr/UI/SplashScreen.py

from PyQt5.QtGui import QPixmap, QColor, QLabel
from PyQt5.QtWidgets import QApplication, QSplashScreen

has to be changed to

from PyQt5.QtGui import QPixmap, QColor
from PyQt5.QtWidgets import QApplication, QSplashScreen, QLabel

would be glad if you could confirm this.

Unable to run on Mac with Apple Silicon due to serial port bindings and latest VS Code update

Hi there,

I have a MacBook Air with an Apple Silicon M1 chip in it. After updating to the latest version of VS Code (which is the first native ARM build) I can no longer use pymakr.

VS Code: 1.54.1
PyMakr: 1.1.11
macOS: 11.2.2 (Big Sur)

I keep receiving the following error in the developer console:

Activating extension 'pycom.pymakr' failed: dlopen(/Users/jabelone/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/Release/bindings.node, 1): no suitable image found.  Did find:
	/Users/jabelone/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/Release/bindings.node: mach-o, but wrong architecture
	/Users/jabelone/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/Release/bindings.node: mach-o, but wrong architecture.

I believe this is because now that VS Code is running natively, the add-on is no longer running through the Rosetta 2 translation layer. I've tried to run npm install serial port from within the .vscode/extensions/pycom.pymakr-1.1.11 folder through Rosetta, and tried an electron rebuild, but that doesn't seem to work. I don't know much about PyMakr or serialport internally, but I'd guess that one of them is trying to load an AMD64/x86 binding instead of an ARM64 binding. I am unsure if this is a PyMakr or a serialport issue, so feel free to tell me to file this with serialport if that's where the problem is.

This is for a personal project, but we've used pycom boards at work before so I hope this is resolved before we get another project that uses them.

Pymakr Console in endless loop in Visual Studio Code 1.44.2 on OSX 10.14.6

I've just started Visual Studio Code with a project that was working fine last night and the terminal is in an endless loop. The Terminal output is "execvp(3) failed: No such file or directory" and I then get a box popping up with "The terminal process exited with exit code: 1". The 'terminal selector' - not sure of the proper name - the widget to the lower RHS of the bottom panel keeps flipping between "1. bash" and "2. Pymakr Console". (see attached screenshot).

I've had this before and had no idea what caused it/how I fixed it, but regardless of what caused it, it really shouldn't be going into an endless loop.

Screenshot 2020-05-02 at 10 07 13

error with serial port module - VSCode

error message "There was an error with your serial port module, Pymakr will likely not work properly...." shows up when starting visual studio code. Tried to reinstall but doesn't work.

VSCode:
Version: 1.59.0 (user setup)
Commit: 379476f0e13988d90fab105c5c19e7abc8b1dea8
Date: 2021-08-04T23:13:12.822Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.19042

Pymakr:
v1.1.12

Unidentifiable Chinese code

What are the steps to reproduce this issue?

1.new a python file, eg main.py
2.input print('xxx') xxx is chinese chars
3.run current file with pymakr plugin

What happens?

print unidentifiable code on REPL with window10
print Chinese char on REPL with linux

What were you expecting to happen?

print Chinese char on any platform

What versions of software are you using?

Operating system:
window 10
VSCode version:
1.44.2
Pymakr version:
1.1.6

Define multiple targets for devices - fallback mode

It would be nice to have pymakr be able to get a list of devices so that when one is not available it switches to the next. For example sometimes the device over serial (after a reset) will show as /dev/ttyUSB1 instead of /dev/ttyUSB0. If we could avoid going and changing the preference in the settings, that would be nice. Or maybe it's just simply a simple way in the UI to switch between devices.

error with serial port module - VSCode with wsl2

I have the following config:

Pymakr: v1.1.12
VSCode:
Version: 1.56.2 (user setup)
Commit: 054a9295330880ed74ceaedda236253b4f39a335
Date: 2021-05-12T17:13:13.157Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Windows_NT x64 10.0.19042

running VScode from wsl2 (Windows10)

Getting this error:
There was an error with your serialport module, Pymakr will likely not work properly. Please try to install again or report an issue on our github (see developer console for details)

any help to resolve the above would be much appreciated.

pymakey.globalSettings not found

Installed via Visual Code.

I have installed Pymakr but can't do anything with it. When I attempt to go to settings I get the error below:

Command 'Pymakr > Global settings' resulted in an error (command 'pymakr.globalSettings' not found)

image

Pymakr freeze (on too much data going over serial ?)

Trying out the pycom.rgbled over the interactive terminal I get a rather long freeze of the pymakr interface. The code is not smart, and goes as follows :

import pycom
for i in range(0xffffff):
  print(i)
  pycom.rgbled(i)

I don't know if it's of any use but it froze on 63818. pymakr.py gets stuck on 100% CPU.

Standard install path conflict

Hi again,

the standard install paths of pymakr does conflict with package managers and other installations of eric6.
I guess it would been a better idea to isolate the pymakr install thus, people can run eric 6 and pymakr side by side.

PyMakr crashes on Win10

Hi,

I downloaded and installed PyMakr but as soon as I try to switch to the expert interface or try to connect to a device, the IDE stops working.
Do I have to install PyQt5? download the PyQt5 installer is written on the github README but not on the downloads page. Also there is no Windows installer, only the option to install via pip, which I don't have, when I use the Python distributed with Pymakr?

Upload fails on ESP32 USB connection when file is in subdirectory

Hi,

I wonder if this repo/extension is still active...

I've been using this expansion for some months now and I had no issues with Raspberry Pico or ESP32 over serial, when uploading files. Today I got my hands on a Seeed Xiao ESP32 which is directly connected to ESP32 USB. I've flashed micropython v1.2.0 for ESP32 USB and successfully connected to the device in VS Code using this extension. So far, everything is okay:
grafik

But today I got a problem: uploading a file, which is located within a folder (of the project) the upload stops / hangs forever.
OF course this is the latest VS Code (v1.78.1) and extension (v2.22.5) and please remember the same project can be uploaded without issues in the same window to a RP2040 device or any other ESP32 connected over an serial/USB Bridge.

This is how VS Code looks in the "stuck" state:
grafik

The device is stuck as well at this point and can only be recovered via reset on the board.

I then went ahead and tried to upload my project with Thonny (4.0.1) - worked without any issue.
A single upload of the same file e.g. boot.py which is on the root folder that is opened in vs code (and which represents my workspace) works without issues.
After a reset, uploading a file located in a folder, it looks like this:
grafik

uninstall.py fails

Hi, today is issue day ;)
python uninstall.py fails to uninstall pymakr.

Uninstalling eric6 ...
Error: [Errno 2] No such file or directory
Try uninstall with admin rights.
An internal error occured.  Please report all the output of the program,
including the following traceback, to [email protected].

Traceback (most recent call last):
  File "uninstall.py", line 219, in uninstallEric
    removePluginDirectories()
  File "uninstall.py", line 244, in removePluginDirectories
    localPluginsDir = os.path.join(getConfigDir(), "eric6plugins")
  File "uninstall.py", line 317, in getConfigDir
    os.path.expanduser("~{0}".format(os.getlogin())), cdn)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "uninstall.py", line 359, in <module>
    main(sys.argv)
  File "uninstall.py", line 350, in main
    uninstallEric()
  File "uninstall.py", line 231, in uninstallEric
    exit(7)
  File "uninstall.py", line 70, in exit
    os.chdir(currDir)
NameError: name 'currDir' is not defined

Also note, that there is still the reference to eric 6 instead of pymakr

File "/usr/share/pymakr/modules/Plugins/REPL/Shell.py", line 607, in __simulateVT100 numChars = int(s[:pos])

When trying to use the Ctrl-E paste mode, lost the focus, did a reset on the board.

Warning:
An unhandled exception occurred. Please report the problem
using the error reporting dialog or via email to <[email protected]>.
A log has been written to "/home/arthur/.pymakr/pymakr_error.log".

Error information:
--------------------------------------------------------------------------------
2017-01-24, 22:05:53
--------------------------------------------------------------------------------
<type 'exceptions.ValueError'>: 
invalid literal for int() with base 10: 'A === Traceback (most recent call last): File "<stdin>", line 1 SyntaxError: invalid syntax >>> >>> PYB: soft reboot MicroPython v1.8.6-379-gc44ebac on 2017-01-13; WiPy with ESP32 Type "'
--------------------------------------------------------------------------------
File "/usr/share/pymakr/modules/Plugins/REPL/Shell.py", line 635, in __write
advance = self.__simulateVT100(s[i:])
File "/usr/share/pymakr/modules/Plugins/REPL/Shell.py", line 607, in __simulateVT100
numChars = int(s[:pos])

--------------------------------------------------------------------------------
Version Numbers:
Python 2.7.12
Qt 4.8.7
PyQt 4.11.4
sip 4.18
QScintilla 2.9.1
WebKit 537.21
Pymakr 1.0.0.b8

Platform: linux2
2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609]
--------------------------------------------------------------------------------
Plugins Version Numbers:
PluginAbout 6.1.0
PluginAboutPymakr 1.0.0
PluginCodeStyleChecker 6.1.0
PluginCompletionJedi 1.0.3
PluginEricapi 6.1.0
PluginEricdoc 6.1.0
PluginFeedback 1.0.0
PluginFullUI 1.0.0
PluginLiteUI 1.0.0
PluginPycomDevice 1.0.0
PluginPycomStyle 1.0.0
PluginPycomSync 1.0.0
PluginREPL 1.0.0
PluginSyntaxChecker 6.1.0
PluginTabnanny 6.1.0
PluginUpdate 1.0.0
PluginVcsMercurial 6.1.0
PluginVcsPySvn 6.1.0
PluginVcsSubversion 6.1.0
PluginVmListspace 6.1.0
PluginVmTabview 6.1.0
PluginWizardE5MessageBox 6.1.0
PluginWizardPyRegExp 6.1.0
PluginWizardQColorDialog 6.1.0
PluginWizardQFileDialog 6.1.0
PluginWizardQFontDialog 6.1.0
PluginWizardQInputDialog 6.1.0
PluginWizardQMessageBox 6.1.0
PluginWizardQRegExp 6.1.0
PluginWizardQRegularExpression 6.1.0
--------------------------------------------------------------------------------
Distribution Info:
/etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"

/etc/os-release
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Pymakr commands not working with VS Code

I'm currently running:
VS Code version 1.69.0.
PyMakr extension version 2.12.3

I noticed that most of the Pymakr commands in the command palette no longer have the "PyMakr:" prefix:
Screen Shot 2022-07-03 at 12 09 17 PM
Screen Shot 2022-07-03 at 12 09 48 PM

Whenever I attempt to run any of the commands that now are missing the "PyMakr:" prefix, I see this error in the PyMakr log:

error: PyMakr (335384) > command > Failed to run command: disconnect with params: 
error: PyMakr (335384) > command > Cannot destructure property 'device' of 'undefined' as it is undefined.
error: PyMakr (341992) > command > Failed to run command: connect with params: 
error: PyMakr (341992) > command > Cannot destructure property 'device' of 'undefined' as it is undefined.
error: PyMakr (358711) > command > Failed to run command: uploadPrompt with params: 
error: PyMakr (358711) > command > projectRef did not match an accepted type

Any time I try to add a new device, nothing happens. I'm out of ideas on how to get this extension to work again, please help!

Error with SerialPort Module

Hello,

VSCode 1.59.1
Pymaker 1.1.12
Ubuntu 20.04

I get the serial port error. After opening Developer Tools, the following specific error messages occur:

Activating extension 'pycom.pymakr' failed: Could not locate the bindings file. Tried:
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/build/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/build/Debug/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/build/Release/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/out/Debug/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/Debug/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/out/Release/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/Release/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/build/default/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/compiled/14.16.0/linux/x64/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/addon-build/release/install-root/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/addon-build/debug/install-root/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/addon-build/default/install-root/bindings.node
→ /home/moefear85/.vscode/extensions/pycom.pymakr-1.1.12/node_modules/@serialport/bindings/lib/binding/node-v89-linux-x64/bindings.node.

I checked the @serialport/bindings folder, there is no folder named build, nor "out", nor "debug", nor "Releases". there is only "lib". Within it there is a folder named binding. Within that there are version and os specific folders, one is called "node-v87-linux-x64". Inside it there is a bindings.node file. So I copied into a newly created "build" folder within @serialport/bindings. After that, upon restart, PyMakr found the file, but gave another error that the bindings.node file did not self-register.

Can't start pymakr on Linux

When starting PyMakr on Archlinux (fully updated to date), I get this message:

Python 2.7.13
libpng warning: iCCP: known incorrect sRGB profile
Warning: translation file 'eric6_fr_FR'could not be loaded.
Using default.
BackgroundService listening on: 35163
Traceback (most recent call last):
  File "/usr/share/pymakr/modules/Utilities/BackgroundClient.py", line 193, in <module>
    backgroundClient.run()
  File "/usr/share/pymakr/modules/Utilities/BackgroundClient.py", line 178, in run
    'EXCEPTION', '?', [str(exctype), str(excval), tbinfo])
  File "/usr/share/pymakr/modules/Utilities/BackgroundClient.py", line 81, in __send
    self.connection.sendall(header)                                             
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 32] Broken pipe

And the application stop.
What can I do ?

Micropython libraries

I am completely new to the use of PYMAKR

In VS Code Windows 11
Micropython libraries are unknown ?!?!
In my project (developped with Thonny) all these libraries fail: network, esp, umqtt.simple, ubinascii, machine, ujson
Answer "Import "esp" could not be resolvedPylance[reportMissingImports]"
But my script works perfectly, I think I have a configuration issue !!

Does someone could help me ?

many thnks in advance

./pymakr_webbrowser.desktop missing

Compiling pymaker, I get the following message:

An internal error occured. Please report all the output of the program,
including the following traceback, to [email protected].


Traceback (most recent call last):
  File "./install.py", line 1523, in <module>
    main(sys.argv)
  File "./install.py", line 1493, in main
    res = installEric()
  File "./install.py", line 845, in installEric
    marker)
  File "./install.py", line 289, in copyDesktopFile
    f = open(src, "r", encoding="utf-8")
FileNotFoundError: [Errno 2] No such file or directory: './pymakr_webbrowser.desktop'

Since I do not use any desktop, I simply created /pymakr_webbrowser.desktop' in the root of the git repository
by
touch /pymakr_webbrowser.desktop'
after that the installation seems to be successful.

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.