• Register
0 votes
2k views

Problem :

I am very new to Quartz. So whenever I try to install Quartz on my system using pip install Quartz, I face the following error.

Complete output from command python setup.py egg_info:

Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/sb/llj7h5px227_5b0__3v0sw5r0000gn/T/pip-build-qf8ezbu5/Quartz/setup.py", line 35, in <module>
install_requires=read_dependencies("requirements.txt"), File "/private/var/folders/sb/llj7h5px227_5b0__3v0sw5r0000gn/T/pip-build-qf8ezbu5/Quartz/setup.py", line 7, in read_dependencies
with open(req_file) as req:
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

 

I am using Mac OSX with Anaconda. Does anyone have any clue on this issue?

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I have lots of industry experience in writing complex Python code.

I have gone through your post and understood your problem.

So to begin with you must follow below approach to resolve your issue:

I did lot of research and ultimately found that there is a bug in the setup.py of the package, so I tried the following:

1.      Run the following command: pip download quartz.

2.      Find your downloaded quartz-0.0.1.dev0.tar.gz.

3.      Extract it and in the setup.py find the following line:

install_requires=read_dependencies(“requirements.txt")

and just change it to following line:

install_requires=read_dependencies("quartz.egg-info/requires.txt")

4.      Run the following command: pip install -e /path/to/quartz-0.0.1.dev0.

After this your setup should be completed without any errors.

Alternatively you can try following (this will fix ImportError: No module named 'Quartz' when installing pyautogui I encountered it for you when installing pyautogui):

1.      pip install pyobjc-core

2.      pip install pyobjc-framework-Quartz

 

9 7 4
38,600 points

Related questions

0 votes
1 answer 43 views
43 views
Problem: any help : Python: can't open file 'get-pip.py': [errno 2] no such file or directory.
asked Mar 6 Wafa Abu Yousef 6.1k points
2 votes
1 answer 3.7K views
3.7K views
Problem: When I try to run the below command on my command prompt: python get-pip.py It shows the following message: C:\Users\ASUS>python get-pip.py python: can't open file 'get-pip.py': [Errno 2] No such file or directory How can I have pip installed in my system. Then why am I getting this error message and why I can not open this file. Thanks in advance.
asked May 6, 2020 samhaz 5k points
0 votes
1 answer 14 views
14 views
Problem; HELP! I need help understanding this error and why it still happened to me : Fatal error c1083: cannot open include file: 'mysql.h': no such file or directory.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 2.9K views
2.9K views
Problem : Following is my issue: I tried to install mysqlclient like below : C:\Users\alecxe>pip install mysqlclient Collecting mysqlclient Using cached https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d1 cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz Installed ... beginner to this and would be very happy if any input as to how to go about fixing above error.
asked Dec 27, 2019 alecxe 7.5k points
0 votes
1 answer 79 views
79 views
Problem : I was installing pyswip and needed to run a setup.py file.Using the command "python setup.py", I'm getting the following message: "python: can't open file 'setup.py': [Errno 2] No such file or directory." Trying to run other .py files from the terminal gives me the same results.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 2K views
2K views
I was creating a new project in django. Firstly I installed django in my system but when I run the command : python manage.py runserver It does not work It shows a message : python: can't open file 'manage.py': [Errno 2] No such file or directory ... django and I started a project by running the command : django-admin startproject Utility Why am I seeing this error message, do anyone know?
asked Mar 18, 2020 LizzyM 6.1k points
0 votes
1 answer 5.9K views
5.9K views
Problem : I was installing pyswip and needed to run a setup.py file.Using the command "python setup.py", I'm getting the following message: "python: can't open file 'setup.py': [Errno 2] No such file or directory." Trying to run other .py files from the terminal gives me the same results.
asked Oct 21, 2019 peterlaw 6.9k points
1 vote
1 answer 7 views
7 views
Problem: I am facing this fatalerror. Do not know why? Fatal error: adafruit_sensor.h: no such file or directory.
asked Mar 24 PkGuy 13.1k points
0 votes
1 answer 69 views
69 views
Problem: I am trying to open a CSV file but for some reason python cannot locate it. Here is my code (it's just a simple code but I cannot solve the problem): import csv with open('address.csv','r') as f: reader = csv.reader(f) for row in reader: print row
asked Jan 10 Mashhoodch 13k points
1 vote
1 answer 148 views
148 views
Problem: Hello Kodlogs, I just joined this forum. I found you people knowledgeable and friendly alongside. Well, I am a new python developer. Well, it could be exaggerative if I address me as a developer, I am a new student perhaps. I have to learn a lot ... The above open command producing an error of filenotfounderror: [errno 2] no such file or directory: But why? Could you identify the problem?
asked Jun 29, 2020 adamSw 11.3k points