I tried running a python script that imports maya.cmds and maya.mel as Maya python script in windows. (Maya - animation software by Autodesk)
I am getting errors while importing the modules. Can someone help me figure out this error?
Error screenshot
Please do not post screenshots with errors or code. Just post the code here.
Do you work with mayapy? And do you set your pythonpath appropriately?
Related
I wanted to make an Instagram bot so I can automate my posts and whatever. My problem is, I get the following Error when I try importing the module/library named "instagrapi":
Exception has occurred: ModuleNotFoundError
No module named 'instagrapi'
File "C:\Users\Simon\Desktop\Py\bot.py", line 1, in <module>
from instagrapi import Client
the error is in line 1 of my code, which simply states "from instagrapi import Client"
Now to my question: I already installed instagrapi, but VSCode tells me I didn't. I installed Python 3.11 but it runs in 3.10 or what so ever.
If someone can help me, please do so, thanks in advance
I tried reinstalling the library and restarting vscode, but it didn't help.
I'm running out of ideas
I recently downloaded and installed gmsh for a research project. I specifically want to work on the gmsh module in python. So I started with its first tutorial, but when I trying to run it is giving the "Modulenotfounderror: No module named 'gmsh'. I've been looking for what I might've done wrong for hours but no success.
here's the screenshot of the code from spyder
i am having error in VS code python
ModuleNotFoundError: No module named 'playsound'
while running code
from playsound import playsound
#playsound('D:\learning\code with herry\ad5262f8da78d9830bb38723f33fe6ca\1. Chapter 1\play.mp3')
I have already installed playsound module, installation and uninstallation done many time. already taken actionas as per existing similar question and answer. still receiving this error, can anyone help me with same.
I am trying to convert my .py code to .exe. I tried all the options from posts on here and on the web, and all I could up with was the error below when I used cx_Freeze, and the .exe not opening when I used pyinstaller.
can someone help with the error below or give an alternative that works?
PS: my py code is actually ipython code from my jupyter notebook, but I'm trying not to share the code source.
Finally got it working while using pyinstaller, the key was to open the .exe file from the command window to be able to see the warning, which was "Import cv2 not found" after I deleted that line(since I was not using that module) and re built it, the .exe file now works. Hope this will help someone one day
I could use (troubleshooting)help with getting Kivy imported in PyCharm. I am using:
Anaconda with Python 3 on 64-bit Windows 10 Pro
PyCharm 2017.1
Packages: NumPy, SciPy, BeautifulSoup, Pandas, Scrapy, Pattern, NetworkX, NLTK, scikit-learn, Selenium
I have installed Kivy following the instructions at https://kivy.org/docs/installation/installation-windows.html#installation
As evident from the screen shot, no errors occurred.
Still, when I run "import kivy" from PyCharm I get "ModuleNotFoundError: No module named 'kivy'".
I ran through the installation with someone on the #kivy channel and was assured that kivy is successfully installed.
When I pass import kivy; print(kivy.file) to the interpreter (opened from the CMD command line), I get returned among others:
C:\Users\Steve\Anaconda3\lib\site-packages\kivy\__init__.py
Someone on #kivy suggested I check where PyCharm looks for kivy. How do I figure that out?
I'd appreciate any suggestions to identify the problem / resolve my issue.
Indeed, the installation of Kivy went fine. The problem turned out to be that I had to select the correct (updated) interpreter in the PyCharm settings.