I get the following error at the end of installing pywin32-216.win32-py2.6.exe for python-2.6.msi for WinXP.
Traceback (most recent call last):
File "<string>", line 604, in <module>
File "<string>", line 314, in install
File "<string>", line 152, in LoadSystemModule
ImportError: DLL load failed: The specified module could not be found
Screenshot: https://picasaweb.google.com/lh/photo/mvQziLhUnX8DN8otUhaJSg?feat=directlink
I tried the advice in Post-install errors while installing pywin32-216 on Windows XP and it did not work. How can I resolve this error?
As Ignacio suggested
here you should run
Dependency Walker to understand what's amiss.
Related
Someone could help me, please? I was running some python scripts and I found the following warning:
Traceback (most recent call last):
File "/Users/yohelcruz/opt/anaconda3/lib/python3.9/site.py", line 169, in addpackage
exec(line)
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named '_distutils_hack'
Remainder of file ignored```
I ended up creating an issue on conda: https://github.com/conda/conda/issues/11931
After some additional digging, I found that running
pip install -U pip setuptools
solved the issue
So after I compiled the program I wrote using pyinstaller in one-file mode, The program doesn't seem to function at all.
When I try to execute it, I receive the following Exception in a Window:
Traceback (most recent call last):
File "main.py", line 6, in <module>
File "PyInstaller\loader\pyimod03_importers.py", line 546, in exec_module
File "pystray\__init__.py", line 48, in <module>
File "pystray\__init__.py", line 44, in backend
ImportError: this platform is not supported: No module named 'pystray._win32'
What could be the issue here? I mean how do I solve this problem?
I'm currently running:
Python 3.9
Windows 10 (the latest version)
Visual Studio Code
Try using the git bash or command prompt. I don't think PyInstaller works with the VSC terminal.
I tried installing pandas_datareader in Anaconda using conda install -c anaconda pandas-datareader. It gives me this result:
Traceback (most recent call last):
File "C:\Users\Peter\Anaconda3\lib\site.py", line 168, in addpackage
exec(line)
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pywin32_bootstrap'
Remainder of file ignored
Error processing line 7 of C:\Users\Peter\Anaconda3\lib\site-packages\pywin32.pth:
Traceback (most recent call last):
File "C:\Users\Peter\Anaconda3\lib\site.py", line 168, in addpackage
exec(line)
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pywin32_bootstrap'
Remainder of file ignored
Okay, bad luck I thought, and I tried installing something else (plotly). And this gave me exactly the same result.
Try:
conda remove [-c anaconda] pywin32
conda install -c anaconda pywin32
Code in brakets is not necessary.
This should reinstall pywin32. And go for another try. It worked for me using pip.
I just installed pip with ubuntu onto my laptop. Whenever I try to use pip in the terminal, I keep getting this error:
lopuj#lopuj-Dell-System-XPS-L502X:~$ pip
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg/pkg_resources.py", line 357, in load_entry_point
def get_entry_info(dist, group, name):
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg/pkg_resources.py", line 2394, in load_entry_point
break
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg/pkg_resources.py", line 2108, in load
name = some.module:some.attr [extra1,extra2]
ImportError: No module named 'pip'
lopuj#lopuj-Dell-System-XPS-L502X:~$ ^C
lopuj#lopuj-Dell-System-XPS-L502X:~$
How can I stop this from happening so i can just type in commands like 'pip install Django==1.7.1'?
Your referencing
usr/local
but pip is installed at
usr/lib
Check your installation. I would reinstall using esay_install and then open/close terminal.
I tried to install pygments-ipython-console.
In requirements it says:
This needs IPython 1.0+ for sphinxext module
How can I install this module?
I dont find anything in my packet manager (yum).
The following error indicates that the module is not installed:
An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "/usr/share/anki/aqt/addons.py", line 39, in loadAddons
__import__(file.replace(".py", ""))
File "/home/cmueller/Anki/addons/Syntax Highlighting for Code.py", line 2, in <module>
import code_highlight_addon.code_highlight_addon
File "/home/cmueller/Anki/addons/code_highlight_addon/code_highlight_addon.py", line 211, in <module>
for lex in get_all_lexers():
File "/home/cmueller/Anki/addons/code_highlight_addon/pygments/lexers/__init__.py", line 45, in get_all_lexers
for lexer in find_plugin_lexers():
File "/usr/lib/python2.7/site-packages/pygments/plugin.py", line 53, in find_plugin_lexers
yield entrypoint.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2108, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "build/bdist.linux-x86_64/egg/lexer.py", line 4, in <module>
ImportError: No module named sphinxext.ipython_console_highlighting
Thanks to pokoli I realized that my version was not recent enough.
In the README of pygments-ipython-console it still says version 1.0+ is required, that's a mistake.
I have now updated to version 2.2 but still got an Error:
ImportError: cannot import name IPythonConsoleLexer.
That is because there was a renaming in IPython. There is a fork in the pygments-ipython-console repository where this is fixed. So I had to clone the forked repository instead of the initial one.
I reinstalled according to the readme and now everything works fine.