I recently tried to install the NetBeans plugin described in: https://blogs.oracle.com/geertjan/entry/python_in_netbeans_ide_8
However when I now try and start NetBeans I get a horrendous error that starts like this:
Warning - could not install some modules: Java Source Queries - None of the modules providing the capability org.netbeans.modules.java.source.queries.spi.QueriesController could be installed. Debugger Core API - The module named org.openide.filesystems.compat8 was needed and not found. Resource Bundles - The module named org.openide.filesystems.compat8 was needed and not found. Quick Search API - The module named org.openide.filesystems.compat8 was needed and not found. Quick Search API - The module named org.netbeans.api.progress.compat8 was needed and not found. XML Core - The module named org.netbeans.api.xml.ui/1 was needed and not found. XML Core - The module named org.openide.filesystems.compat8 was needed and not found. XML Multiview Editor - The module named org.openide.filesystems.compat8 was needed and not found. Common Palette - The module named org.openide.filesystems.compat8 was needed and not found. Templates - The module named org.openide.filesystems.compat8 was needed and not found. Settings API - The module named org.openide.filesystems.compat8 was needed and not found. Auto Update Services - The module named org.openide.filesystems.compat8 was needed and not found. Auto Update Services - The module named org.netbeans.api.progress.compat8 was needed and not found. REST Application Platform Sample - The module named org.openide.filesystems.compat8 was needed and not found. .manifest file Editor Support - The module named org.openide.filesystems.compat8 was needed and not found. .diff File Editor Support - The module named org.openide.filesystems.compat8 was needed and not found. Java Support APIs - The module named org.openide.filesystems.compat8 was needed and not found. Java Platform - The module named org.openide.filesystems.compat8 was needed and not found. User Utilities - The module named org.openide.filesystems.compat8 was needed and not found. js-test-driver Wrapper - The module named org.openide.filesystems.compat8 was needed and not found. Editor Settings - None of the modules providing the capability org.netbeans.api.editor.settings.implementation could be installed. Editor Library 2 - None of the modules providing the capability org.netbeans.modules.editor.actions could be installed. HTTP Server - The module named org.openide.filesystems.compat8 was needed and not found. HTTP Server-Side Monitor - None of the modules providing the capability org.openide.util.HttpServer$Impl could be installed. HTTP Server-Side Monitor - The module named org.openide.filesystems.compat8 was needed and not found.
And goes on for pages and pages and pages.
I am running this on OS X.
I have deleted the directories /Users/<MyUser>/Library/Application Support/NetBeans and /Users/<MyUser>/Library/Caches/NetBeans, as I have seen mentioned in a few places, but I still receive the same error.
This is completely crippling me and preventing me from doing any work, I have no idea what has happened or how to resolve it.
Any help will be massively appreciated.
Having hit the same impasse, I searched up and down netbeans.org and other sites, provided my logs to bugs https://netbeans.org/bugzilla/show_bug.cgi?id=248986 and https://netbeans.org/bugzilla/show_bug.cgi?id=248291#c5
I exhaustively searched esp. jar and xml files in my %appdata%/Netbeans , sorted by latest modification times,
and found files like :
C:\Users\master\AppData\Roaming\NetBeans\8.0\modules
org-netbeans-modules-jira-rest.jar
org-netbeans-modules-jira-xmlrpc.jar
org-netbeans-modules-scanondemand.jar
etc.
but removing them, or swapping them out with a prior versions, did not help.
Seeing no real solution to even roll back failed updates, at least to get my Netbeans started at all again, I installed the nightly build http://bits.netbeans.org/download/trunk/nightly/latest/ elsewhere to compare (on a virtual machine, my "spare" PC).
Continued to compare the fresh installation with my broken installation.
No changes to my broken %appdata% seemed to allow NB to start.
Finally I compared the system-wide installation folders and found that in my broken copy, not only were many .jar files different in size, but some were missing altogether, including this one implicated widely in the startup errors I was getting:
C:\ProgramFiles\NetBeans\platform\core\org-openide-filesystems-compat8.jar
That was the strongest hint there won't easily be a "fix"....
It's as if some of the sources in https://forums.netbeans.org/posting.php?mode=quote&p=79922 should never have been allowed to make it into the Update Center. ( http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz in my case....though the chain of dependencies is totally unclear.)
Eventually I overwrote the entire C:\ProgramFiles\NetBeans\ folder from the fresh installation to the broken one, and started successfully.
It needed a few updates, then another restart.
Most of my settings were still there, Dark Theme, recent files list, etc.
Except the Ruby on Rails plugin, which had remained disabled, and I am still trying to re-add and enable it, since it is blocking even the opening of my ROR projects.
So in summary that awful partial workaround was probably equivalent to a re-installation of Netbeans using the development edition (previously I was on 8.0.2).
Please note well that you should not install development plugins (like Python or Scan-on-Demand) into a production installation. Doing so will most likely break your installation and you will be sad.
If you want to use development plugins, use a development distribution of NetBeans IDE from
bits.netbeans.org/download/trunk/nightly/latest/
There is currently a Python plugin made specifically for IDE 8.0.2; for more on this, visit Geertjan's blog at Oracle: https://blogs.oracle.com/geertjan/entry/python_in_netbeans_ide_81
If you are interested in developing or testing the NEW Python plugin, join the NetBeans Python Project at https://netbeans.org/projects/python/pages/Home
Related
I tried to load an external dll with Python3.7 but it failed
My env :
win10 64bit
python 3.75 64bit
My code :
if path_dll is not None:
path_dll += "xxxx.dll"
print(path_dll)
self.pDll = WinDLL(path_dll)
This raises the following error : the specified module could not be found
The same code works on Python3.9.
Why am I getting this error on Python3.7 ?
I already tried change the path to raw, and all other format, but it still failed.
The "WindowsError: [Error 126] The specified module could not be found" error typically indicates that Python is unable to locate a specific module or library that is needed to run your code. This can be caused by a number of factors, such as:
Incorrect module or library name: Make sure that you have spelled the name of the module or library correctly and that it is imported correctly in your code.
Missing module or library: If you are using a module or library that is not part of the Python standard library, make sure that it is installed on your system and is available to Python.
Incorrect module or library path: If you are using a module or library from a specific location on your system, make sure that the path to the module or library is correct.
Permissions issue: Make sure that you have the necessary permissions to access the module or library.
To troubleshoot this error, you may want to try the following:
Double-check the name and spelling of the module or library to make sure that it is imported correctly.
Check to see if the module or library is installed on your system and is available to Python.
Check the path to the module or library to make sure it is correct.
Check the permissions on the module or library to make sure that you have the necessary access.
If you are still having trouble after trying these steps, you may want to try searching online for more specific troubleshooting advice or consider seeking help from other Python users or developers.
I have a project written in Python 3.9 and C++ 17, with pybind11 as the glue. It works just fine when running alone or through various debuggers, like VS's debugger and NVIDIA Nsight. However, when running through RenderDoc (a graphics API debugger, with it's own Python bindings which I don't use) I get the following error in the terminal:
ImportError: DLL load failed: The operating system cannot run %1
The error if given out for modules in my project trying to import modules from my project.
At first the error message feels similar to ImportError: DLL load failed: The specified module could not be found, so I investigated in Process Monitor, but the module seems to be found just fine.
So I'm wondering, what on earth does this error message mean? What is the OS trying to do but failing at? What might cause it? How might I debug it?
Some other threads suggest it might be to do with Python 3.8's new add_dll_directory, but I don't see why adding some specific debugger would cause this when everything runs fine without it?
I don't think it is an environment issue, as I've run everything through the same terminal. Also, it ran through RenderDoc just fine before performing various library upgrades, including an upgrade over the Python 3.8 boundary.
For a python project I am using the module pyenchant. When using pyenchant within a jupyter notebook it works fine. When launching the project through command prompt(so outside the anaconda environment), I get the following error:
(I edited the path for obvious reasons)
** (python3.10.exe:1552): WARNING **: Error loading plugin: C:\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\enchant\data\mingw64/lib/enchant-2\enchant_hunspell.dll': The specified module could not be found.
What I find weird is that there are forward AND backward slashes in the path, however when using only backwards slashes the path exists. I have tried reinstalling the module multiple times but to no avail unfortunately. Anybody here have an idea of what might be going wrong?
ImportError: No module named Processing
I am using QGIS APIs for developing my application in Python. Eclipse is the IDE that I have been using for other projects. Now, I am trying to connect eclipse to the packages and libraries of QGIS but it is not going well.
the error I currently get is:
ImportError: No module named Processing
I have included all libraries, packages, DLLs and so on.
below you can see a snapshot of a piece of my code.
I have no idea how to fix it.
I have checked this configuration as well.
I also read almost all the related topics in the stackoverflow...I set the processing in my python path (both in the beginning and at the end)..
I have been restarting my system every time I changed the setting...
what is wrong!
To work with processing package, you should add it in a level higher than processing package like:
C:\OSGeo4W\apps\qgis\python\plugins
where processing is in plugins. then import processing will perfectly work.
I'm trying to install the icalendar Python module for use in my Google App Engine project. I have created a Python virtual environment in my project folder, and installed the icalendar package in it. If I run the Python interpreter from the venv, I can import icalendar and use it just fine (help(icalendar) shows it's getting the module from the correct path: venv/lib/python2.7/site-packages/icalendar). I have created a symlink called icalendar pointing to that directory in my project root (same place as app.yaml). The project can deploy and run on GAE, but anytime it tries to use icalendar, I get "Cannot import module 'icalendar'".
I used the exact same steps to install the Twilio library in my app, which worked fine. If I don't include the symlink to the Twilio module, the error message is actually 'No module named twilio', instead of "Cannot import..". Not sure if that's relevant.
I've seen this: https://groups.google.com/forum/?fromgroups=#!topic/google-appengine/FM_NXd9cbus, which is exactly my problem, but there was no solution!
What am I doing wrong?
Edit: I also tried just putting the icalendar module directory in the project root, w/o the symlink. No difference.
You need to check how to use python libraries in GAE.
Pay attention as the docs are a bit confusing, you need to pick one (and only one) solution for a library, you can't mix both (they're both chapters on the above-mentioned page):
Requesting a library - for libs supplied by GAE - for these check notes for what you may need to do for your local development server
Installing a library - for additional libraries you need to include in your app - for these check also the restrictions the library needs to meet