Summarizing the problem :
By trying to do "from scapy.all import *" I got the following error :
Hi,
I'm trying to do project with scapy, but unfortuently I had a porblem so I decided to delete my python and pycharm and install everything again. This didn't work too and after installing him with pip and trying to run, I got the error above...
someone know what to do? I'm desperate :(
This bug was fixed in January: https://github.com/secdev/scapy/issues/1819
You should try using the github dev version. Here's the doc on how to use it: https://scapy.readthedocs.io/en/latest/installation.html#current-development-version
Related
I am having trouble when using Pushbullet in my VS-Code project, it's having a problem with importing pushbullet. I am using Python 3.8.2 on Windows 10, Python 2.7 is also installed, there are two types of error and I have no clue at all
But when I try it manually in python 3.8.2 IDE, it works perfectly. Can someone help me to fix this issue
I have looked through some of the similar post, saying this is the PATH problem and try to uninstall numpy , I also couldn't uninstall numpy because of having no permission problem.
So I am not able to import BeautifulSoup after I have installed bs4.
I have tried installing bs4 using pip, pip3, and pip3.6. All successfully install bs4, but I still get the error saying there is no module named bs4 when I try and import it.
I have also tried doing it by using "pip install beautifulsoup4" with no luck.
I am using python 3.6.5 on Windows 10.
This is the output of my pip commands
Let me know things I can try differently to get this working.
Thanks for any help.
Had two installs of Python. Man I feel like an idiot haha. The second install was hidden in a visual studio folder.
I had a similar issue - but switched my interpreter (in pycharm) from the 'local' to the global python scripts.
Successful running of script on local html files and on requests.
Thank you to this thread and one other for helping me fix the issue.
First I installed the coinmarketcap from the pycharm project interpreter.
Then I run the code below:
>>> from coinmarketcap import Market
>>> coinmarketcap = Market()
>>> coinmarketcap.ticker(<currency>, limit=3, convert='EUR')
But I got this:
ImportError: cannot import name Market
Then I thought it is not the right library, so I installed the following API from https://github.com/mrsmn/coinmarketcap-api thinking that pycharm might have installed some other library.
So I downloaded the library from Github and I used the python setup.py install command and installed the library from Github without any problems.
I tried to rerun the code, but the problem still persists:
ImportError: cannot import name Market
I have finally solved it. Actually I needed to uninstall it within pycharm. Then I installed it using the pip install coinmarketcap and after that it works.
Thank you for your help!
I have installed it using pip and tried to import it and did not get any error.so, can you check whether the installation is done with out any error
I am trying to download the Pygraphics module using Python 2.7.6 and have been heretofore unsuccessful. Below I detail the steps I have taken so far. Any help with this would be most appreciated.
First, I tried the typical install using pip
sudo pip install Pygraphics
When I try to import the module, I receive an error saying ImportError: No module named Pygraphics.
To test whether the module was installed I ran the following code: print sorted(["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()]) which showed me all of my installed distributions.
This code returned the following list of all the distributions and clearly showed that Pygraphics is installed:
['altgraph==0.10.2', 'bdist-mpkg==0.5.0', 'bonjour-py==0.3', 'brewer2mpl==1.4', 'certifi==14.05.14', 'datetime==4.0.1', 'flask==0.10.1', 'ggplot==0.6.5', 'ipython==2.0.0-dev', 'itsdangerous==0.24', 'jdcal==1.0', 'jinja2==2.7.3', 'macholib==1.5.1', 'markupsafe==0.23', 'matplotlib==1.4.x', 'mock==1.0.1', 'modulegraph==0.10.4', 'nose==1.3.4', 'numpy==1.9.0.dev-297f54b', 'openpyxl==2.1.2', 'pandas==0.14.1', 'pandasql==0.6.1', 'patsy==0.3.0', 'pika==0.9.14', 'py2app==0.7.3', 'pygments==1.6', 'pygraphics==2.1']
After this, I tried using the GUI installer located on the following Pygrahpics install website. While going through the installer, I received an error message saying "PyGraphics requires System Python 2.7 to install" despite the fact that I have downloaded Python 2.7.6.
At this point I don't know what to do and was hoping someone who may have had a similar issue might be able to help me out.
Thank you for your time.
It looks like you've successfully install PyGraphics. Now import picture :)
so I am new to both programming and Python, but I think I have the issue narrowed down enough to ask a meaningful question.
I am trying to use MySQLdb on my computer. No problem, right? I just enter:
import PyMySQL
PyMySQL.install_as_MySQLdb()
import MySQLdb
At the top of the script.
But here is the problem. I installed Anaconda the other day to try to get access to more stats packages.
As a result, on the command line, "which python" returns:
/Users/vincent/anaconda/bin/python
Based on reading other people's questions and answers, I think the problem is caused by being through Anaconda and not usr/bin/python, but I have no idea if this is correct... I would rather not uninstall Anaconda as I know that is not the right solution.
So, I would like to ask for a very basic list of steps of how fix this if possible.
I am on OSX (10.9) Anaconda is 1.9.1 and I think python is 2.7
Thank you!
You don't need to uninstall anaconda. In your case, Try pip install PyMySql. If which pip return /Users/vincent/anaconda/bin/pip, this should work.