I'm using Ubuntu 20.10 and I am relatively new to Linux so I would like to kindly ask you to tell me if there is any info needed.
I am trying to install Ableton Live 10 in Ubuntu but I get this when I try to wine program_name.exe
wine Ableton\ Live\ 10\ Suite.exe
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "ssl\__init__.py", line 59, in <module>
import os, sys
ImportError: No module named os
wine: Unhandled exception 0x80000003 in thread 2b at address 000000007BCDDFCC (thread 002b), starting debugger...
0x000000007bcddfcc DbgBreakPoint in ntdll: int $3
Modules:
Module Address Debug info Name (171 modules)
ELF 7a800000- 7aa0e000 Deferred opengl32<elf>
\-PE 7a850000- 7aa0e000 \ opengl32
ELF 7b000000- 7b0e2000 Dwarf kernelbase<elf>
\-PE 7b010000- 7b0e2000 \ kernelbase
.... and at the end
System information:
Wine build: wine-5.0 (Ubuntu 5.0-3ubuntu1)
Platform: x86_64
Version: Windows 7
Host system: Linux
Host version: 5.8.0-43-generic
I think that I need to have to install a os and sys file but I have no idea what these are except that there maybe python files. I had the same error with a not existing ssl file which I downloaded and it worked but now I am stuck here.
I've tried to look for some solution online but there are either not the right error or the problem has to do with writing code instead of installing and so I don't know to solve it by myself. I hope you guys can help me out..
Can anyone suggest a solution? Thanks :D
Related
Currently I am using Python 3.7, and Ubuntu 18.04. I downloaded wxPython from pip, but when I tried to import wx in my terminal, I get this error:
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/aleejandrof/anaconda3/lib/python3.7/site-packages/wx/__init__.py", line 17, in <module>
later on, when I tried other ways like and "._core import" I received an error like this:
ImportError: /home/aleejandrof/anaconda3/bin/../lib/libpangoft2-1.0.so.0: undefined symbol: pango_font_description_set_variations
After reading some posts here, I tried deleting the wx.py and wx.pyc files, which didn't work. The same happened when I read that downloading the main excecutable file would make the import occur with no errors, but it popped the same errors.
AttributeError: module 'wx' has no attribute '__version__'
I am trying to run a GUI pipeline, which works with wxPython. I'm thankful in advance, if any of you has suggestions.
When I made an environment of ubuntu18.04 using docker, ran into the same problem.
I had multiple libpangoft2-1.0.so.0 files.
It seemed the problem was /opt/conda/lib/libpangoft2-1.0.so.0 was looked up.
To change the name of the file solved the problem.
find / -name libpangoft2-1.0.so.0
/opt/conda/lib/libpangoft2-1.0.so.0
/opt/conda/pkgs/pango-1.42.4-h049681c_0/lib/libpangoft2-1.0.so.0
/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0
mv /opt/conda/lib/libpangoft2-1.0.so.0 /opt/conda/lib/libpangoft2-1.0.so.0-void
You may want to try:
conda install -c asmeurer pango
I updated to El Capitan a few days ago, and, Pelican hasn't worked ever since. I asked a question on SO already about disabling SIP (rootless) thinking that it was the cause of the problem; but the answers on that question said they didn't think SIP was the culprint.
So does the Pelican community have any thoughts? make devserver yields the following result:
Last login: Wed Dec 23 22:30:30 on ttys003
Mischas-MacBook-Pro:~ mischa$ pwd
/Volumes/Macintosh HD/Home
Mischas-MacBook-Pro:~ mischa$ cd /Volumes/SSD/users/mischa/Dropbox/website
Mischas-MacBook-Pro:website mischa$ ls
Makefile pelican.pid srv.pid
content pelicanconf.py subdirectory.txt
develop_server.sh pelicanconf.pyc themes
fabfile.py publishconf.py
output publishconf.pyc
Mischas-MacBook-Pro:website mischa$ make devserver
/Users/mischa/Dropbox/website/develop_server.sh restart
Stale PID, deleting
Stale PID, deleting
Starting up Pelican and HTTP server
/usr/bin/python: No module named html_parser
Traceback (most recent call last):
File "/usr/local/bin/pelican", line 7, in <module>
from pelican import main
File "/Library/Python/2.7/site-packages/pelican/__init__.py", line 20, in <module>
from pelican.generators import (ArticlesGenerator, PagesGenerator,
File "/Library/Python/2.7/site-packages/pelican/generators.py", line 22, in <module>
from pelican.readers import Readers
File "/Library/Python/2.7/site-packages/pelican/readers.py", line 24, in <module>
from six.moves.html_parser import HTMLParser
ImportError: No module named html_parser
Pelican didn't start. Is the Pelican package installed?
make: *** [devserver] Error 1
Mischas-MacBook-Pro:website mischa$
I'm running Mac OSX 10.11.2, Python 2.7.10, Pelican 3.6.3
I tried all three of the solutions suggested here: Error using pelican-quickstart "No module named html_parser" and no luck so far.
Thoughts?
I had the same problem and the hint of #jonrsharpe helped to solve it. I had to start with virtualenv -p /usr/bin/python3 XXX.
I'm fairly new to Linux but really willing to understand what's going on. I usually spend a lot of time on Google trying to solve the problem myself but this time, I really don't get it.
I'm running Linux debian-pierre 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) i686 GNU/Linux
Here is my problem:
When importing libraries I added myself (eg request, psutil, serial) in a Python script, I get :
Traceback (most recent call last):
File "/home/pierre/documents/script/xbee/comm.py", line 9, in <module>
import serial
File "/usr/local/lib/python2.7/site-packages/serial/__init__.py", line 21, in <module>
from serial.serialposix import *
File "/usr/local/lib/python2.7/site-packages/serial/serialposix.py", line 15, in <module>
import sys, os, fcntl, termios, struct, select, errno, time
ImportError: /usr/local/lib/python2.7/lib-dynload/select.so: undefined symbol: _PyInt_AsInt
I can't import them either when running Python from the command line.
Those modules are stored in /usr/local/lib/python2.7/site-packages/.
sys.path gives:
[
'',
'/usr/local/lib/python27.zip',
'/usr/local/lib/python2.7',
'/usr/local/lib/python2.7/plat-linux3',
'/usr/local/lib/python2.7/lib-tk',
'/usr/local/lib/python2.7/lib-old',
'/usr/local/lib/python2.7/lib-dynload',
'/home/pierre/.local/lib/python2.7/site-packages',
'/usr/local/lib/python2.7/site-packages'
]
so the path to the folder containing the modules is included. The thing I really don't understand is that one of the libraries in this path can be loaded while the others not. I'm totally confused.
After rebuilding my laptop I installed another version of Python 2.7 because I didn't know it was already installed with Debian. The problems started from then. It really seems like Python doesn't fetch the modules from the right place, but why?
If anyone can help it would be much appreciated.
I built myself a server (cubieboard) with Cubian on it, wrote scripts, installed those libraries, use them without a problem... So I'm REALLY confused.
I would like to ask if somebody has similar problem like me and if there is any solution for this.
When I used Windows XP (32bit) before I have installed Windows 7 (64bit), I've used following program in Python 2.7.8 without any error:
from ctypes import *
kernel = windll.kernel32
...
When I run this sequence on my current version OS I've get an error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'windll' is not defined
Could somebody know where is the root cause of this error and how to fix this?
The error message appears while short script described in comments (proposed by jedwards) is run under mobaxterm terminal. When the script is ran in cmd.exe console, no errors appears.
Thanks, guys, for heads up...
I'm trying to configure and run SVN post-commit hook sending mails. I've downloaded class mailer.py, installed Python 2.7 and svn-win32 bindings for svn. The machine is Windows-7 64 bit, the Python is 32 bit. Now the mailer.py ends with error, which is caused by import problem.
When I in python console type "import svn.core" I have following error:
>>> import svn.core
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\tools\Python27\lib\site-packages\svn\core.py", line 19, in <module>
from libsvn.core import *
File "c:\tools\Python27\lib\site-packages\libsvn\core.py", line 5, in <module>
import _core
ImportError: No module named _core
while in directory site-packages/libsvn are files such as: _core.dll
I've installed other bindings, pysvn, that was installed correctly, but as far as I've noticed, it's the totally other API so I can't use that for python.py
Does someone had similar problem and knows how to deal with it?
The Python bindings need to load the native Subversion libraries (DLL's). If your Python is 32-bit then you would need 32-bit versions of the native Subversion libraries on PATH.
I have problem like this. Trouble was that python just can not import this library (svn.core and other).
I just make:
import sys
sys.path.append("C:\csvn\lib\svn-python").
My file core.pyc was in C:\csvn\lib\svn-python\svn. Hope it helps somebody. Such behacior for me is strange because there is no "init.py" or "init.pyc" file in svn-python directory. But it works.