qtpylib icon indicating copy to clipboard operation
qtpylib copied to clipboard

Fatal Errors during installation (after preparing isolated conda environment for pip installation) [BUG]

Open richlysakowski opened this issue 2 years ago • 2 comments

Describe the bug

Installing the package using the recommended command "pip install qtpylib --upgrade --no-cache-dir" gives a Fatal error and stops with the final message: "ERROR: No matching distribution found for qtpylib" after re-trying every available of the package that exists on pypi.org.

Steps to reproduce the behavior:

  1. create a new conda virtual environment and activate the new environment: conda create -n qtpylib python=3.8 ```activate qtpylib`

  2. add all available conda packages in the requirements.txt file conda install flask pandas pytz requests python-dateutil pymysql pyzmq beautifulsoup4 twilio

  3. try to install Interactive Brokers packages using conda: conda install ibpy2` (FAILED, but used pip later.) conda install -c conda-forge ibpy2 (FAILED, with PackagesNotFoundError: The following packages are not available from current channels:

  • ibpy2
  1. install workaround for pip-anaconda known interoperability bug recommended by Ran Aroussi (SUCCEEDED with a WARNING:
(qtpylib) c:\Users\richadmin>pip install --ignore-installed --upgrade pip setuptools
Collecting pip
  Using cached pip-21.3.1-py3-none-any.whl (1.7 MB)
Collecting setuptools
  Downloading setuptools-59.7.0-py3-none-any.whl (952 kB)
     |████████████████████████████████| 952 kB 3.3 MB/s
Installing collected packages: setuptools, pip
  WARNING: Failed to write executable - trying to use .deleteme logic
  WARNING: Failed to write executable - trying to use .deleteme logic
Successfully installed pip-21.3.1 setuptools-59.7.0
  1. install qtpylib using suggested pip install command: (qtpylib) c:\Users\richadmin>pip install qtpylib --upgrade --no-cache-dir

### This resulted in many failed attempts to install the qtpylib package, all the way from the newest to the oldest version available.

  Downloading QTPyLib-1.5.83.tar.gz (118 kB)
     |████████████████████████████████| 118 kB 819 kB/s
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\ProgramData\Anaconda3\envs\qtpylib\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\richadmin\\AppData\\Local\\Temp\\pip-install-nktyiutn\\qtpylib_d778f2ceffcc4df7a3498a461bf7bf8c\\setup.py'"'"'; __file__='"'"'C:\\Users\\richadmin\\AppData\\Local\\Temp\\pip-install-nktyiutn\\qtpylib_d778f2ceffcc4df7a3498a461bf7bf8c\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\richadmin\AppData\Local\Temp\pip-pip-egg-info-tjd18yy6'
       cwd: C:\Users\richadmin\AppData\Local\Temp\pip-install-nktyiutn\qtpylib_d778f2ceffcc4df7a3498a461bf7bf8c\
  Complete output (1 lines):
  error in QTPyLib setup command: "values of 'package_data' dict" must be a list of strings (got 'qtpylib/_webapp/*')
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/71/86/621ac3870dad934da7b53b23d4a25c2182bab8c538d3971b05b51213f735/QTPyLib-1.5.83.tar.gz#sha256=4a4a65f564a7f8fece3cabc2c783584cc158b8c6d356c29c2e0f8e1c4a1b339c (from https://pypi.org/simple/qtpylib/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading QTPyLib-1.5.82.tar.gz (118 kB)
     |████████████████████████████████| 118 kB ...
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\ProgramData\Anaconda3\envs\qtpylib\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\richadmin\\AppData\\Local\\Temp\\pip-install-nktyiutn\\qtpylib_1a1f9e0033ec4a34bc1fdbe83a59e630\\setup.py'"'"'; __file__='"'"'C:\\Users\\richadmin\\AppData\\Local\\Temp\\pip-install-nktyiutn\\qtpylib_1a1f9e0033ec4a34bc1fdbe83a59e630\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\richadmin\AppData\Local\Temp\pip-pip-egg-info-806cxfos'
       cwd: C:\Users\richadmin\AppData\Local\Temp\pip-install-nktyiutn\qtpylib_1a1f9e0033ec4a34bc1fdbe83a59e630\
  Complete output (1 lines):
  error in QTPyLib setup command: "values of 'package_data' dict" must be a list of strings (got 'qtpylib/_webapp/*')
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/09/80/c546d891ff66bb88f4f4b87537b30de4575c40d7b9ddb43f17938257a32b/QTPyLib-1.5.82.tar.gz#sha256=d3b3749934684bc305b769c6fbb8b251ea6d7e2fc9b80226fc7a2acf4668f6c4 (from https://pypi.org/simple/qtpylib/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.```

**### DOWN TO THE OLDEST AVAILABLE PACKAGE:**

```https://files.pythonhosted.org/packages/45/5d/73ff6c99fa4c8751128d1d800e6566888f3711ae66dee01d3402222d8913/QTPyLib-1.2.5.tar.gz#sha256=91f8a0be9dbca6b69a334157d084c635941a6ee5ef858e06d838a39c928f2449 (from https://pypi.org/simple/qtpylib/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading QTPyLib-1.2.4.tar.gz (90 kB)
     |████████████████████████████████| 90 kB ...
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\ProgramData\Anaconda3\envs\qtpylib\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\richadmin\\AppData\\Local\\Temp\\pip-install-nktyiutn\\qtpylib_d6eb248867834b31b99801168cc0ef2f\\setup.py'"'"'; __file__='"'"'C:\\Users\\richadmin\\AppData\\Local\\Temp\\pip-install-nktyiutn\\qtpylib_d6eb248867834b31b99801168cc0ef2f\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\richadmin\AppData\Local\Temp\pip-pip-egg-info-t28ahbi9'
       cwd: C:\Users\richadmin\AppData\Local\Temp\pip-install-nktyiutn\qtpylib_d6eb248867834b31b99801168cc0ef2f\
  Complete output (1 lines):
  error in QTPyLib setup command: "values of 'package_data' dict" must be a list of strings (got 'qtpylib/_webapp/*')
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/f4/8f/ad6a95fd8bf31b8bafb8ca68072a94ce100f05b561a01f2133b4dbe01d87/QTPyLib-1.2.4.tar.gz#sha256=51a17aa3cb16679373997daeaf9f440d4d652b47edcb6b57c4ddd1661f58946f (from https://pypi.org/simple/qtpylib/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement qtpylib (from versions: 1.1.9a0, 1.2.0a0, 1.2.1a0, 1.2.3a0, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.2.9, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8, 1.3.9, 1.3.91, 1.3.92, 1.3.93, 1.3.94, 1.3.95, 1.3.96, 1.3.97, 1.3.98, 1.3.99, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.4.9, 1.4.91, 1.4.92, 1.4.93, 1.4.94, 1.4.95, 1.4.96, 1.4.97, 1.4.98, 1.4.99, 1.5.0, 1.5.1, 1.5.2, 1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.21, 1.5.22, 1.5.23, 1.5.24, 1.5.25, 1.5.26, 1.5.27, 1.5.28, 1.5.29, 1.5.30, 1.5.31, 1.5.32, 1.5.33, 1.5.34, 1.5.35, 1.5.36, 1.5.37, 1.5.38, 1.5.39, 1.5.40, 1.5.41, 1.5.42, 1.5.43, 1.5.44, 1.5.45, 1.5.46, 1.5.47, 1.5.48, 1.5.49, 1.5.51, 1.5.52, 1.5.53, 1.5.54, 1.5.55, 1.5.56, 1.5.57, 1.5.58, 1.5.59, 1.5.71, 1.5.72, 1.5.73, 1.5.74, 1.5.75, 1.5.76, 1.5.77, 1.5.78, 1.5.79, 1.5.80, 1.5.81, 1.5.82, 1.5.83)
ERROR: No matching distribution found for qtpylib```





1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
 - OS: [e.g. Windows/macOS/Linux]
 - Version [e.g. 22]

**Additional context**
Add any other context about the problem here.

richlysakowski avatar Dec 19 '21 04:12 richlysakowski

Getting a similar fatal error when trying to install the library. Shame, it seems very capable, is Ran still active on this repo?

miali88 avatar Apr 01 '22 01:04 miali88

Looks like this reop is not under maintainance now.

Alexader avatar Nov 20 '22 09:11 Alexader