Getting an error in Python library Installation - python

Am getting the following and trying to install a new library in PyCharm. I have never came across this error before. I have tried going to google for a solution, but I can't find any that helps. The error is below
Error loading package list:unknown protocol: c
Please I need help to finish a project am working on.

You might need to set up a proxy in PyCharm. Here is a similar issue with details on JetBrains Comunity site:
Error Loading Package List

Related

Why am I unable to run the .login() attribute for robin_stocks?

I'm trying to import data from Robinhood through robin_stocks. I was able to import the package, but when I try to use the .login() attribute, it returns this error message in the Jupyter Notebook: error
module 'robin_stocks' has no attribute 'login'
I'm certain that robin_stocks does, indeed have the attribute that Python is telling me doesn't exist. Where did I go wrong here?
I'm relatively new to programming, but usually I can find an answer to my questions pretty quickly on StackOverflow or any other resource. I can't seem to figure this one out, though.
Any help would be greatly appreciated. Thank you!
I had the same error when upgrading from 1.7.x to 2.0.3
I was able to solve this by changing the import from:
import robin_stocks as rs
To:
import robin_stocks.robinhood as rs
Check the version of the package that you are using. I actually had the same issue when I migrated to a new laptop and installed packages again. I turned out that a newer robin-stocks python package got installed and resulted in an attribute error for my previously functioning code. When I reverted back to the older version of the package (1.5.5) my code worked like a charm.
Bro, we can't guess what you has typed in your code, please link it to us.
But if you have some issues with basic method of module, i think some thing gone wrong with import

Error initializing ctypes in pybuilder

A couple of days ago I cloned a git repository and tried to make a build out of that code with PyBuilder; however, I have not been able to do so.
Every time I run pyb -X -E jenkins-zipfile-release in Bash I get the following error: BUILD FAILED - Error initializing ctypes. The thing is, none of my colleagues have this problem, we don't know why.
The traceback tells me the problem is here: .../pyenv/versions/2.7.14/lib/python2.7/site-packages/oscrypto/_openssl/_libcrypto_ctypes.py
We thought the problem that my python was not correctly compiled with SSL. We even had a different SSL version. I replaced LibreSSL with OpenSSL, but the problem persists.
Another person told me that maybe the oscrypto libraries are conflicting (one from the environment and the other one from the project's lib directory) How can I check that?
I would deeply appreciate if someone could point me in the right direction, I've been trying for two days now.
There was an issue with regards to running oscrypto in a High Sierra. The issue was fixed and it will be a part of the next release.
More info: https://github.com/wbond/oscrypto/issues/22

Fixing broken django module that was installed from pip, where is the code?

I have been trying to use the django-visits module, though I seem to not even get this to run cause the minute I follow the instructions for just adding it to my application here:
https://bitbucket.org/jespino/django-visits/src/c3ac83b91969?at=default
It gives me an error when I try to run server:
ERRORS:
visits.Visit.ip_address: (fields.E900) IPAddressField has been removed
except for support in historical migrations.
HINT: Use GenericIPAddressField instead.
Their hint was helpful enough, but I have no idea where pip instaleld my django-visits to where I can change the model code of this module to fix the IPAdressField
Am I approaching solving this error wrong? Should I not be looking for the original code that was installed somewhere on my machine? Do I need to somehow install this from source and not use Pip since I have to change the models.py in this module?
(I am trying to make this work on my OS X machine but ultimately will need to get this to work on CentOS box). Also the database is postgres/postgis

Python 2.7.9 troubles importing pysftp

I've been having troubles import pysftp. I currently have a server running some python scripts on a database, and decided to try and update this module which some of the scripts use. It broke a bunch of the scripts and then I had to go back and fix the versioning and to allow everything to function.
So far the only module I'm not able to import or use is pysftp. It throws the attached error. I've tried going into sites-manager and removing the files from there, however it has yet to help. Everything else has been working. Updating doesn't work either.
Any indication on how to resolve this error is greatly appreciated.
Error is:
ImportError: cannot import name util
I haven't been able to find a package called util to install. Please help! Attached link is of the trace.
http://imgur.com/a/9lQUj

ImportError when installing newspaper

I am pretty new to python and am trying to import newspaper for article extraction. Whenever I try to import the module I get ImportError: cannot import name images. Anyone come across this problem and found a solution?
I was able to fix this problem by creating an images directory in /usr/local/lib/python2.7/dist-packages/newspaper , moving images.py to this directory, and placing a blank __init__.py in this directory.
I know this is a dated entry, but to anyone else that faced the same issue as me, I initially fumbled with resolving this issue. When I first run import newspaper, I faced this error. lxml runtime error: Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0
When I tried to re-run my code (without correcting anything), I got the error found on this article. I have no idea why this was the case, and I wasn't able to resolve my issue using the above method (it didn't work for me, but it could still work for you). If anyone was fumbling like me on Jupyter on getting newspaper to work, do consider the link below. Hope this is helpful.
https://stackoverflow.com/a/31607751/6143792

Categories