I am trying to install this Python Package:
https://pypi.org/project/SalesforcePy/#install
I am running on python 3.7 on macOS Mojave, I've never experienced an issue downloading a package from github before.
When I tried pip install git+ssh://git#github.com/forcedotcom/SalesforcePy.git
I get this:
Collecting git+ssh://git#github.com/forcedotcom/SalesforcePy.git
Cloning ssh://git#github.com/forcedotcom/SalesforcePy.git to /private/var/folders/xb/_9gc6p552hz8m7vjc5wbgjbm0000gp/T/pip-req-build-ly43g63b
Running command git clone -q ssh://git#github.com/forcedotcom/SalesforcePy.git /private/var/folders/xb/_9gc6p552hz8m7vjc5wbgjbm0000gp/T/pip-req-build-ly43g63b
git#github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ERROR: Command "git clone -q ssh://git#github.com/forcedotcom/SalesforcePy.git /private/var/folders/xb/_9gc6p552hz8m7vjc5wbgjbm0000gp/T/pip-req-build-ly43g63b" failed with error code 128 in None
I also tried downloading it on my desktop and got this:
pip install Desktop/SalesforcePy-1.1.1
Processing ./Desktop/SalesforcePy-1.1.1
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/xb/_9gc6p552hz8m7vjc5wbgjbm0000gp/T/pip-req-build-n3xo0za2/setup.py", line 7, in <module>
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/xb/_9gc6p552hz8m7vjc5wbgjbm0000gp/T/pip-req-build-n3xo0za2/requirements.txt'
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/xb/_9gc6p552hz8m7vjc5wbgjbm0000gp/T/pip-req-build-n3xo0za2/
The second error message is tracked by forcedotcom/SalesforcePy issue 41 and is still pending.
The first one should work though (it is a public repository), and is the recommended method. The syntax is correct (using '/' everywhere).
It might be a consequence of the second error message: an error from requirement.txt, which might needs a preprocessing, as in this project.
Related
This is my first time to develop a PyPI package and ask a question on StackOverflow...
I'm developing a package named tttk. After I uploaded v1.0.0 and tried to install it, pip told me there's an error in setup.py. Then I changed setup.py, and rebuild, upload v1.0.1. When I try to install it again, the error appears again. I read everything in cmd, then I found that pip downloaded the package of v1.0.0 after it runs the setup.py of v1.0.1.
here's the screenshot of cmd when I tried to install v1.0.1.
I'm just trying to install tttk (the package I uploaded). Why is it soooo hard!?
I retried like this:pip install -v -v -v tttk...
here's everything I found that might be useful:
Skipping link: not a file: https://pypi.org/simple/tkinter/
Given no hashes to check 0 links for project 'tkinter': discarding no candidates
Created temporary directory: C:\Users\Len\AppData\Local\Temp\pip-unpack-sdbco3t1
Looking up "https://files.pythonhosted.org/packages/78/e2/748aaa5d447f3ff3b0e997cbafd8b0f8cead796b059b92514c83d6411f07/tttk-1.0.0.tar.gz" in the cache
Current age based on date: 4074
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 4074
Using cached tttk-1.0.0.tar.gz (16 kB)
Added tttk from https://files.pythonhosted.org/packages/78/e2/748aaa5d447f3ff3b0e997cbafd8b0f8cead796b059b92514c83d6411f07/tttk-1.0.0.tar.gz to build tracker 'C:\\Users\\Len\\AppData\\Local\\Temp\\pip-build-tracker-6md7cbrk'
Running setup.py (path:C:\Users\Len\AppData\Local\Temp\pip-install-7f41cz28\tttk_c1fc2afbed064900bbc613a248233cca\setup.py) egg_info for package tttk
Created temporary directory: C:\Users\Len\AppData\Local\Temp\pip-pip-egg-info-3e78aanv
Running command python setup.py egg_info
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\Len\AppData\Local\Temp\pip-install-7f41cz28\tttk_c1fc2afbed064900bbc613a248233cca\setup.py", line 4, in <module>
with open("./README.md", "r",encoding='utf-8') as fh:
FileNotFoundError: [Errno 2] No such file or directory: './README.md'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: 'D:\Python37\python.exe' -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
...
SOLVED
First, thanks to every reply...
I'm not an English speaker, and I wrote this without any help from translation software, so if you can't understand what I'm talking about, just read the last paragraph to find out the main reason and how did it caused the problem...
Maybe I forgot to write this in my question. In fact, I have already fixed the README.MD not found problem in v1.0.1 (and newer), but v1.0.0 still has this bug. pip downloaded both v1.0.1 and 1.0.0 so this error appears again.
The output in my question is just a part of all of them...
I went to pypi.org and yank every older versions (v1.0.0 and v0.1.0), then retried, and seems pip couldn't find tkinter. And here's what I've got:
screenshot again
The main reason of this problem is I wrote tkinter in requirements.txt (remember this is my first time to develop a PyPI package). pip couldn't found tkinter on its server ,so it tried to install the older version automatically. But the README file not found problem is still exists in the older version, so that's why it failed...
First time when I downloaded Anaconda and tried to install scikit-learn (version 0.24.2) in my own environment I realized that it is not checking but installing through Anaconda Navigator. Then I tried to install it manually with help of cmd and conda.exe (conda install -n DeepLearning scikit-learn) and started to get super strange errors, which I can't find in Google.
I decided to do some work that can help, install Conda on C (SSD) and not installing anything but just update all libraries (conda update --all) as scikit-learn is always being installed not up to date. And that is what I am getting:
ERROR conda.core.link:_execute(699): An error occurred while installing package 'defaults::scikit-learn-0.24.2-py38hf11a4ad_0'.
Rolling back transaction: / menuinst Exception
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\conda\gateways\disk\create.py", line 246, in make_menu
menuinst.install(join(prefix, win_path_ok(file_path)), remove, prefix)
File "C:\Anaconda\lib\site-packages\menuinst\__init__.py", line 74, in install
_install(path, remove, prefix, mode='user')
File "C:\Anaconda\lib\site-packages\menuinst\__init__.py", line 33, in _install
data = json.load(open(path))
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Anaconda\\Menu\\notebook.jso| menuinst Exception
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\conda\gateways\disk\create.py", line 246, in make_menu
menuinst.install(join(prefix, win_path_ok(file_path)), remove, prefix)
File "C:\Anaconda\lib\site-packages\menuinst\__init__.py", line 74, in install
_install(path, remove, prefix, mode='user')
File "C:\Anaconda\lib\site-packages\menuinst\__init__.py", line 33, in _install
data = json.load(open(path))
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Anaconda\\Menu\\notebook.jsodone
LinkError: post-link script failed for package defaults::scikit-learn-0.24.2-py38hf11a4ad_0
location of failed script: C:\Anaconda\Scripts\.scikit-learn-post-link.bat
==> script messages <==
<None>
==> script output <==
stdout:
stderr: "chcp" �� ���� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.
"chcp" �� ���� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.
"find" �� ���� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.
return code: 255
()
I've tried almost everything and do not know what to do. Please, help me.
P.S. I haven't encoded anything it is how it looks like.
Screen of cmd
The issue is caused by the conda installation/update script incorrectly pass in path of "C:\Anaconda\Menu\notebook.json" as "C:\Anaconda\Menu\notebook.jso". Even if you fix this error, the next error it is going to complain is "C:\Anaconda\Menu\anaconda-navigator.jso"
The workaround is:
Navigate to C:\Anaconda\Menu\
Rename notebook.json to notebook.jso
Rename anaconda-navigator.json to anaconda-navigator.jso
Rerun conda installation/update
Revert step #2 and #3 once #4 is successful
Try this in order:
conda config
conda init
conda update conda
i trying to clone https://github.com/zhangchiyu10/pyC45 this repo to my python.
i was using
pip install git+https://github.com/zhangchiyu10/pyC45.git
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\python37\lib\tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\YULIAN~1\\AppData\\Local\\Temp\\pip-req-build-sqgmxgf8\\setup.py'
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\YULIAN~1\AppData\Local\Temp\pip-req-build-sqgmxgf8\
any idea about how to use github library?
that's not really a "package" (i.e. it does not provide tools to install via pip like proper setup.py). just download pyC45.py into your working directory/project
My problem is:
I am having trouble for installing RDF package. I am using python 3.6.3.
C:\Users\suresh\Downloads>pip --no-cache-dir install RDF
Collecting RDF
Downloading rdf-0.9a6.tar.gz (48kB)
100% |████████████████████████████████| 51kB 749kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\suresh\AppData\Local\Temp\pip-build-62ewx87w\RDF\setup.py",
line 1, in <module>
from ez_setup import use_setuptools
File "C:\Users\suresh\AppData\Local\Temp\pip-build-62ewx87w\RDF\ez_setup.py",
line 97
except pkg_resources.VersionConflict, e:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\suresh\AppData\Local\Temp\pip-build-62ewx87w\RDF\
Any suggestions to solve this problem, so that I can install the RDF package? Please suggest me any solution if you have ever encounter this problem before.
Setup script of RDF package is erroneous. It is specified to work with Python3 but uses the try...catch syntax of Python2. You can either use the package with Python2 or follow up with the developer of RDF package to fix the install issue for Python3. The package is broken for Python3 at the moment.
When I check 3331 port is using for transporting data or not, I use the command.
sudo /usr/sbin/tcpdump -n -X port 3331
I'd like to this command but I don't like to use subprocess.popen command.
Could you tell me the way that satisfy my requirements?
I tried to install pypcap.
But, error occurred.
pip install pypcap
Collecting pypcap
Downloading pypcap-1.1.1.tar.gz (44kB)
100% |################################| 45kB 1.1MB/s
pcap.h not found
Complete output from command python setup.py egg_info:
pcap.h not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-MW1HMb/pypcap
I installed pcap-devel and installing pypcap was successfully.
Later I tried the script.
import pcap
for ts, pkt in pcap.pcap():
print ts, `pkt`
But, OSError happened
Traceback (most recent call last):
File "pypcap_test.py", line 3, in <module>
for ts, pkt in pcap.pcap():
File "pcap.pyx", line 189, in pcap.pcap.__init__ (pcap.c:1689)
OSError: no suitable device found
I should have Authority for tcpdump?