Python can't find automlconfig and automlrun - python

I'm working on azure from past few months, and everything was working fine, and now I'm having issues, I cant import automlconfig and automlrun from azureml.train.automl. I have tried all possible solutions, even azure jupyter-vm which by default must have all these libraries but no success yet. I cant find this issue on there forums, any help or advice would be great.
error text:- (cannot import name 'AutoMLConfig',cannot import name 'AutoMLrun')

Could you please try following steps to see if it helps or not?
Completely uninstalled conda and reinstalled
Built the azure_automl env using azure_automl.cmd
Got from azureml.train.automl import AutoMLConfig to work.
Please let me know if you still have problem.
Regards,
Yutong

Related

is there another way to to fix the import matplotlib error in python?

I already uninstalled and re-installed the matplotlib module on main terminal and in vs code as well but it still doesn't work. Is there another way to fix this error like creating a virtual environment or it's not required? Please bear with me because I'm just starting haha. I'd appreciate your help, thank you!

Python "ImportError: cannot import name 'pnoise1' from 'noise'"

I have been trying to use the noise module in Python for a game I was making. I am on the Mac OS, and I used pip3 install noise to download the module. I uninstalled and reinstalled it multiple times, without the wheel library, and with, as it recommended. The noise module itself downloads fine, but every time I try to import pnoise from it, I get an ImportError.
Just straight up importing noise (import noise) gives me no error, it just prints a string of numbers to my console. Also, downloading and running the module in a virtual environment works, so it must be something on my computer or OS.
Code: from noise import pnoise1
Error: ImportError: cannot import name 'pnoise1' from 'noise'
I have looked for a while for a solution, but nothing has seemed to help, it just doesn't work. The only information I have found is that this may be a file problem, but I haven't found out how to fix it.
Any help would be greatly appreciated.
Edit:
I ended up figuring it out. I was importing a file by the same name instead of the library. Thanks for the help, everyone!
To me it works ok. Have you installed it correctly via pip/pip3?
Ended up figuring it out, I was importing a file of mine instead of the library. Thanks for the help!

Unable to import pycolors (Pyling import error) Python error

I am currently trying to import some libraries/modules and everytime I try, it wont work and displays the pylint import error.
Here is what im trying to do:
import pycolors
I am using pylint, and I don't know how to fix this. I have watched several videos and done a ton of research, but none of them helped.
Pylint need to be in an environment where Pycolor is installed in order to not raise a warning . It's not clear whether the problem is when launching with python or analysing with pylint but in both case the solution is to install Pycolor: pip install Pycolor (If this is the one you want : https://pypi.org/project/Pycolor/)

Am receiving an error when trying to run a command saying 'ctx is a required argument that is missing'. [Python, discord.py]

Hi I am getting this error when I try to run a command:
Ignoring exception in command greet discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing
And when I try to manually pass the context with pass_context=True (I know this is outdated I think)It comes up with:
AttributeError: 'Context' object has no attribute 'send'
I have looked everywhere on various forums and I have found others with the same problem but the answers were always specific to that one user's issue and so were useless to me or were outdated, not using the rewrite. I would really appreciate it if someone could help.
Does anyone know why I am getting this and how I could fix it?
Here is what I think is the useful part of the code:
#client.command()
async def greet(ctx):
await ctx.send("Hello")
Here is the full code: https://pastebin.com/fQc4vE7F
Edit: I am on discord version 1.4.1 in case that might be useful
you should try re-installing discord.py, also make sure to put the following at the top:
from discord.ext import commands
import discord
The problem seemed to be my IDE. I ran my code in repl and it worked perfectly. Repl automatically installed all the modules. So the issue I think is likely to have been either my installations and imports running on pycharm conflicting with eachother or my pycharm version being outdated since I had not updated it in quite some time. PyCharm had been telling me that the version which I was on being outdated had some bugs with pip...
Anyway, in case anyone else has a similar issue I would recommend to try run your code in repl or some other IDE as the issue in this case was not my code but rather the setup. If you are encountering the same issue on a different IDE I would recommend repl as you do not have to install anything to your computer. Repl is entirely on the cloud and will only install and import what is necessary. And you should probably update the IDE which you already have. I hope I could help anyone else with a similar issue as I could find no solutions online, but I hope I could change this.

PyAutoGUI isn't working, always getting attribute error: CGDisplayPixelsWide

I've been reading through the internet for an answer and I cannot find anything! So I'm hoping you can help me with this problem. Finally, I've successfully installed it, but now I can not run ANY function and it's getting very annoying. I'll do something as simple as:
import pyautogui
pyautogui.onScreen(0, 2)
And boom! Error, I try every function on their "Cheat Sheet" and the same error!
AttributeError: CGDisplayPixelsWide
I've searched through the module, I've searched through the internet, and now I'm going to you! Please help me, I was really excited to use the functions this module offers.
PS - I'm on macOS Sierra

Categories

Resources