Comments (7)
Hi there,
could you give me a bit more information on your environment?
I quick check on Debian with Python 3.9 in a new virtualenv turned out ok, I could just pip install ccd_tools and installation was successful.
thanks and cheers
from ccd_tools.
I'm using anaconda as my base.
Python 3.7 with added pyqt 5 and pyopus packages.
When doing the pip install ccd-tools I get the errors I posted above.
Interestingly enough - I tried the same command in 3.8 conda environment and it compiled without trouble. Perhaps this is 3.7 specific?
from ccd_tools.
Strange, the problem is that I don't have a Python 3.7 environment here to test this and am unsure what to do. From what I see there are no hard dependencies that prevent Python 3.7 from working - only the metadata is out of date in the setup.py.
Could you try installing the sip_models package by hand in the 3.7 environment?
pip install sip_models
from ccd_tools.
(py37) C:\Users\matev>pip install sip_models
Collecting sip_models
Using cached sip_models-0.1.2.tar.gz (9.7 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Anaconda3\envs\py37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\matev\AppData\Local\Temp\pip-install-xn6yg43f\sip-models_28583f9419af485c9f0263e512e7aabd\setup.py'"'"'; file='"'"'C:\Users\matev\AppData\Local\Temp\pip-install-xn6yg43f\sip-models_28583f9419af485c9f0263e512e7aabd\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\matev\AppData\Local\Temp\pip-pip-egg-info-9awk9u9_'
cwd: C:\Users\matev\AppData\Local\Temp\pip-install-xn6yg43f\sip-models_28583f9419af485c9f0263e512e7aabd
Complete output (2 lines):
error in sip_models setup command: use_2to3 is invalid.
V3
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/ee/d2/6750c7b55a1166955fbbf9373ce560f227d3dfcced82b3acc6fe7590bbff/sip_models-0.1.2.tar.gz#sha256=0e8ed4a9e02f1a6137a126814b51325130e54c2f9b5c44a988dce46d4e6feb4d (from https://pypi.org/simple/sip-models/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached sip_models-0.1.1.tar.gz (8.6 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Anaconda3\envs\py37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\matev\AppData\Local\Temp\pip-install-xn6yg43f\sip-models_35043bee890d45288a830092f457a537\setup.py'"'"'; file='"'"'C:\Users\matev\AppData\Local\Temp\pip-install-xn6yg43f\sip-models_35043bee890d45288a830092f457a537\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\matev\AppData\Local\Temp\pip-pip-egg-info-p7680r9a'
cwd: C:\Users\matev\AppData\Local\Temp\pip-install-xn6yg43f\sip-models_35043bee890d45288a830092f457a537
Complete output (2 lines):
error in sip_models setup command: use_2to3 is invalid.
V3
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/21/ec/4af03266cd9a118996938972e6afb70690c62cbba1b8fef854cb063714f7/sip_models-0.1.1.tar.gz#sha256=134f96e039b67923f30dff8c9cf644a1929711d5b5770c049bcc93aa3b8be306 (from https://pypi.org/simple/sip-models/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached sip_models-0.1.0.tar.gz (5.1 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Anaconda3\envs\py37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\matev\AppData\Local\Temp\pip-install-xn6yg43f\sip-models_b8630145699844e582669a97ce6bc959\setup.py'"'"'; file='"'"'C:\Users\matev\AppData\Local\Temp\pip-install-xn6yg43f\sip-models_b8630145699844e582669a97ce6bc959\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\matev\AppData\Local\Temp\pip-pip-egg-info-tmfq1su7'
cwd: C:\Users\matev\AppData\Local\Temp\pip-install-xn6yg43f\sip-models_b8630145699844e582669a97ce6bc959
Complete output (2 lines):
error in sip_models setup command: use_2to3 is invalid.
V3
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/85/54/b07a4876b8589f50532d31e79864a6d88910beab8139cb5cc165929c3c31/sip_models-0.1.0.tar.gz#sha256=34e98fc918f51ffb44e1bb4eb33157553bc7ece8c22186ab0f5b2d17f7de23e0 (from https://pypi.org/simple/sip-models/). 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 sip_models
ERROR: No matching distribution found for sip_models
from ccd_tools.
It would seem that the problem lies in the sip depedency which has an error that prevents it from being built...
from ccd_tools.
Could you please try to install from git (within the 3.7 environment):
pip install git+https://github.com/m-weigand/sip_models
I removed the arcane call to 2to3 in setup.py
from ccd_tools.
Yup, that did it!
Was able to install both tools and they work just fine with my 3.7 code now. Was able to reproduce graphs from my previous experiments.
RESOLVED.
Thanks for a quick reply/support!
from ccd_tools.
Related Issues (10)
- homepage: add examples
- add jupyter examples
- jupyter example garbles plots
- python interface: document usage of environment variables
- check if we can provide pex-binaries
- provide terminal examples
- make sure to always require newest geccoinv version
- ccd_time: check creation of figures
- Incompatibility with Numpy 18.0. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccd_tools.